I downloaded this vimrc file. It contains entries for mapping comma seperated keys to certain commands. ie:
map ,e :e <C-R>=expand("%:p:h") . "/" <CR>
What i can't figure out is how to run these commands in Vim.
How to i run ",e"?
I downloaded this vimrc file. It contains entries for mapping comma seperated keys to certain commands. ie:
map ,e :e <C-R>=expand("%:p:h") . "/" <CR>
What i can't figure out is how to run these commands in Vim.
How to i run ",e"?
You would just type ,
and then e
. To verify that it's actually being mapped, you can use the command :map ,e
.
just type it
,e
thats it, since the map is a normal mapping, it ought to work in normal, visual and operator pending mode. see
:h 40.1
in vim, for the help on map modes
Press the ESCAPE key and then type ,e
The escape will confirm you are out of insert mode (if you entered it)