Skip to content

Instantly share code, notes, and snippets.

@koturn
Created March 22, 2017 14:49
Show Gist options
  • Save koturn/e29ddf629ee598642afb44274f7a068a to your computer and use it in GitHub Desktop.
Save koturn/e29ddf629ee598642afb44274f7a068a to your computer and use it in GitHub Desktop.
previous,next,first,last系へのキー割り当て
nnoremap [a :<C-u>previous<CR>
nnoremap ]a :<C-u>next<CR>
nnoremap [A :<C-u>first<CR>
nnoremap ]A :<C-u>last<CR>
nnoremap [b :<C-u>bprevious<CR>
nnoremap ]b :<C-u>bnext<CR>
nnoremap [B :<C-u>bfirst<CR>
nnoremap ]B :<C-u>blast<CR>
nnoremap [l :<C-u>lprevious<CR>
nnoremap ]l :<C-u>lnext<CR>
nnoremap [L :<C-u>lfirst<CR>
nnoremap ]L :<C-u>llast<CR>
nnoremap [q :<C-u>cprevious<CR>
nnoremap ]q :<C-u>cnext<CR>
nnoremap [Q :<C-u>cfirst<CR>
nnoremap ]Q :<C-u>clast<CR>
nnoremap [t :<C-u>tprevious<CR>
nnoremap ]t :<C-u>tnext<CR>
nnoremap [T :<C-u>tfirst<CR>
nnoremap ]T :<C-u>tlast<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment