Wednesday, June 26, 2013

autocmd useage

Hi :
I want to execute "\ca" when I opened gvim.
I set:
autocmd VimEnter * exe "normal \\ca"
or
autocmd VimEnter * normal \ca
that are all failed.
 
How to write this command?
"
3.2.11 Use alternate delims map                              *NERDComAltDelim*
Default mapping: <leader>ca
Mapped to: <plug>NERDCommenterAltDelims
Applicable modes: normal.
 
Changes to the alternative commenting style if one is available. For example,
if the user is editing a c++ file using // comments and they hit <leader>ca
then they will be switched over to /**/ comments.
 
the plugin is NERDcomment
"

No comments: