Skip to content

Commit

Permalink
✅test:
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Dec 3, 2024
1 parent 50bd5a9 commit 7fc2696
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .vim/autoload/vimrc/lazyload.vim
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ au vimrc SafeState * ++once B()
enddef
au vimrc BufReadPost * C()
C()
nm <SID>(buf)n <Cmd>bnext<CR><Cmd>call vimrc#bufline#Show()<CR><SID>(buf)
nm <SID>(buf)p <Cmd>bprevious<CR><Cmd>call vimrc#bufline#Show()<CR><SID>(buf)
nm gn <SID>(buf)n
nm gp <SID>(buf)p
Each n,p nmap g{} <SID>(buf)n|nm <SID>(buf){} <Cmd>b{}<CR><Cmd>call vimrc#bufline#Show()<CR><SID>(buf)
g:recentBufnr = 0
au vimrc BufLeave * g:recentBufnr = bufnr()
nn <expr> gr $"\<Cmd>b{g:recentBufnr}\<CR>"
Expand Down
5 changes: 1 addition & 4 deletions src/.vim/autoload/vimrc/lazyload.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,7 @@ SetupTabstopLazy()
# ------------------------------------------------------
# バッファ操作 {{{
# gnとgpで移動
nmap <SID>(buf)n <Cmd>bnext<CR><Cmd>call vimrc#bufline#Show()<CR><SID>(buf)
nmap <SID>(buf)p <Cmd>bprevious<CR><Cmd>call vimrc#bufline#Show()<CR><SID>(buf)
nmap gn <SID>(buf)n
nmap gp <SID>(buf)p
Each n,p nmap g{} <SID>(buf)n|nmap <SID>(buf){} <Cmd>b{}<CR><Cmd>call vimrc#bufline#Show()<CR><SID>(buf)
# grで直前のバッファ
g:recentBufnr = 0
au vimrc BufLeave * g:recentBufnr = bufnr()
Expand Down
4 changes: 3 additions & 1 deletion test/vimrc.test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ suite.TestMapping = () => {
# n gn バッファ移動
# n gp バッファ移動
# n gr バッファ移動
# n gt タブ移動
# n gT タブ移動
# n g; 折り畳みを開くように修正
# n i _cc
# n m '
Expand Down Expand Up @@ -138,7 +140,7 @@ suite.TestMapping = () => {
# i <C-G> 色付きで表示
var default_ignore = '\C' .. [
'n \([abBehijklmnopqswAMOPQSTY;''/?:%,+]\)',
'n \(g[acdesinpr;]\)',
'n \(g[acdesinprtT;]\)',
'n \(zd\|zf\|ZZ\)',
'n \(G[ai%]\)',
'n \(<C-[AWXG]>\)',
Expand Down

0 comments on commit 7fc2696

Please sign in to comment.