Vim Comma Control Keys

I downloaded this vimrc file. It contains entries for matching comma-separated keys to specific commands. i.e:

map ,e :e <CR>=expand("%:p:h") . "/" <CR> 

I cannot figure out how to run these commands in Vim.

How to run ", e"?

+6
vim
source share
4 answers

You just type, and then e . To make sure that it is actually displayed, you can use the command :map ,e .

+7
source share

If you use these cards, you will also want to use

 nnoremap ,, , 

Thus, you can have functionality (repeat the last fFtT movement, but in the opposite direction). This is sometimes useful, although not as useful, as this edit file on the current file directory map that you have.

+4
source share

Press ESC and then enter ,e

ESC will confirm that you are out of insert mode (if you entered it)

+3
source share

just enter it

 ,e 

thats it, since the display is a normal display, it should work in normal, visual, and operator-pending mode. cm.

 :h 40.1 

in vim, for help on map modes

+2
source share

All Articles