I'd like to create a new symbol to use in my vimrc that's <normal>
, so I do not have to type <C-\><C-N>
to get to do the "go to normal mode" command, nor clutter the vimrc file with combinations that I might not remember.
In C it would have been done with #define
, how is this done in VimL?
C like example:
#define <normal> <C-\><C-N>
nmap <leader>q <normal>@q
instead of
nmap <leader>q <C-\><C-N>@q
<C-\><C-N>
instead of <Esc> because you don't like the beep? Also, surely an nmap means you'll already be in normal mode? Is that just a typo, or am I missing something?