Reputation: 1031
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"?
Upvotes: 6
Views: 11096
If you use these maps, you'll also want to use
nnoremap ,, ,
So you can have the , functionality (repeat latest fFtT
motion, but in the opposite direction). This is occasionally useful, though not as useful as that edit file in current file's directory map you have there.
Upvotes: 7
Reputation: 13468
Press ESC and then type ,e
The ESC will confirm you are out of insert mode (if you entered it)
Upvotes: 4
Reputation: 8349
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
Upvotes: 3
Reputation: 311645
You would just type ,
and then e
. To verify that it's actually being mapped, you can use the command :map ,e
.
Upvotes: 8