On Jun 26, 2013 6:57 PM, "Xell Liu" <xell.liu@gmail.com> wrote:
  >
  > On Wed, Jun 26, 2013 at 10:36 PM, wangjun850725 <wangjun850725@gmail.com> wrote:
  > > 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?
  >
  > Maybe feedkeys() would help here, e.g. au VimEnter * call
  > feedkeys('\ca', 'n') or something like that. Good luck.
Wondering how feedkeys(, *'n'*) is supposed to execute a *mapping*. You should have suggested feedkeys(, 't').
> > "
  > > 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
  > > "
  > >
  > > --
  > > --
  > > 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
  > >
  > > ---
  > > You received this message because you are subscribed to the Google Groups
  > > "vim_use" group.
  > > To unsubscribe from this group and stop receiving emails from it, send an
  > > email to vim_use+unsubscribe@googlegroups.com.
  > > For more options, visit https://groups.google.com/groups/opt_out.
  > >
  > >
  >
  > --
  > --
  > 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
  >
  > ---
  > You received this message because you are subscribed to the Google Groups "vim_use" group.
  > To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
  > For more options, visit https://groups.google.com/groups/opt_out.
  >
  >
  
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment