aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 00:33:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 00:33:53 +1200
commitc84b1aaed9eea0220e3346848d119e0debb970a9 (patch)
treef13bf0bfbb4a564ddd44eee5c23e8a8005635364
parent63279b9d9aca72e608fd40cd1b0ec593320fdca0 (diff)
downloaddotfiles-c84b1aaed9eea0220e3346848d119e0debb970a9.tar.gz
dotfiles-c84b1aaed9eea0220e3346848d119e0debb970a9.zip
Add [a, ]a shortcuts to cycle through Vim arg list
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 63adff53..67a0910e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -208,6 +208,9 @@ nnoremap <silent> & :<C-U>&&<CR>
" Stack normal Ctrl-L to clear search highlighting before redraw
nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
+" Cycle through argument list
+nnoremap [a :<C-U>previous<CR>
+nnoremap ]a :<C-U>next<CR>
" Cycle through buffers
nnoremap [b :<C-U>bprevious<CR>
nnoremap ]b :<C-U>bnext<CR>