8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails.vim 移動元のファイルに戻るには

Posted at

rails.vimというかvimでのファイル移動した際の戻り方

:bp 前のバッファ(ファイル)に戻る.
:bn 次のバッファ(ファイル)に進む.
:ls バッファリストの表示.

ショートカットキーを割り当てると楽に戻れます。

"gfと相性が良い.
nnoremap <silent> gp :bprevious<CR>
nnoremap <silent> gn :bnext<CR>

"元のコマンドに近いイメージ.
nnoremap <silent> bp :bprevious<CR>
nnoremap <silent> bn :bnext<CR>
8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?