Skip to main content

vim キーマップ vimgrep cnext

vim
nnoremap <silent> [b :bprevious<CR>
nnoremap <silent> ]b :bnext<CR>
nnoremap <silent> ]B :bfirst<CR>
nnoremap <silent> ]B :blast<CR>

nnoremap <silent> [q :cprevious<CR>
nnoremap <silent> ]q :cnext<CR>
nnoremap <silent> ]Q :cfirst<CR>
nnoremap <silent> ]Q :clast<CR>

unimpaired.vim の設定例

  • バッファ : [b -> bnext
  • 引数リスト : [a ->
  • QuickFix : [q -> cnext
  • ロケーション : [l -> lnext
  • タグリスト : [t ->

QuickFix 関連その他

  • :cnfile : 次のファイルへ
  • :cpfile : 前のファイルへ

バッファ関連その他

  • buffers : バッファ一覧
  • TODO:操作試す

    • :copen:cw との違い?
    • make:make!
  • TODO: 矢印は いまは buffer にしているが、:cn とか割り当てた方が便利か

    • 上下が cn, cp 、左右が cnfile cpfile とか