VIM:Lexploreの新しいタブでファイルを開く方法

VIM:Lexploreの新しいタブでファイルを開く方法

asを使用するnetrwと、:Lexファイルを開くと現在開いているファイルが置き換えられます。 Lexの新しいタブまたは新しい垂直分割でファイルを開くにはどうすればよいですか?

ベストアンサー1

バラより:h netrw-t:

BROWSING WITH A NEW TAB                         netrw-t

Normally one enters a file or directory using the <cr>.  The "t" map
allows one to open a new window holding the new directory listing or file in
a new tab.

If you'd like to have the new listing in a background tab, use gT.

そして:h netrw-v

BROWSING WITH A VERTICALLY SPLIT WINDOW                 netrw-v

Normally one enters a file or directory using the <cr>.  However, the "v" map
allows one to open a new window to hold the new directory listing or file.  A
vertical split is used.  (for horizontal splitting, see netrw-o)

Normally, the v key splits the window vertically with the new window and
cursor at the left.

t押すのではなく押すだけで、新しいEnterタブまたはv新しい垂直分割が開きます。

おすすめ記事