Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remapping :help in Vim to open in a new tab [duplicate]

Tags:

vim

The default behaviour of :help in Vim opens the help in a horizontal split.

I need to remap :help to instead execute :tab help as to always open the help in a new tab.

How can I remap this command?

like image 671
Andreas Grech Avatar asked Jun 28 '10 09:06

Andreas Grech


People also ask

How do I open a new tab in Vim?

Opening a tab Probably the easiest to remember is to run the :tabnew command while in normal mode. This will open a new tab with an empty buffer. If you want to edit a file in the new tab, you can run :tabnew filename and Vim will load the file in the new tab.

How do I open a terminal tab in Vim?

Ctrl-w N or Ctrl-\ Ctrl-n put the buffer in the terminal-normal mode: Keystrokes are not forwarded to the shell, but are used by Vim as in a normal buffer (although the shell job is still running). Then you can use gt to change tabs, type Ex commands such as :ls , etc.


1 Answers

:cabbrev help tab help
like image 191
sleepynate Avatar answered Sep 19 '22 23:09

sleepynate