Duane Johnson wrote:
> cmap vimrc e ~/.vimrc

I just use ':e $MYVIMRC' with command completion:
http://vim.wikia.com/wiki/Open_vimrc_file

You need 'cnoremap' rather than 'cmap' (and $MYVIMRC). However,
the mapping applies wherever you might type 'vimrc' in the
command line and I generally find that irritating.

You could just have a simple mapping:

:nnoremap <F8> :e $MYVIMRC<CR>

so you press F8 in normal mode.

For an actual command alias, you need to muck about, for example
(although I would not bother):
http://vim.wikia.com/wiki/Replace_a_builtin_command_using_cabbrev

John

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

Reply via email to