Wednesday, June 26, 2013

Re: autocmd useage

wangjun850725 wrote:
> au VimEnter * call feedkeys('\ca', 't')
>
Please bottom post! That's the consensus vim list policy.

I believe your problem is that you're trying to execute a mapping,
'\ca', that has not been defined at the time the VimEnter event fires.

What you want is for the mapping to execute -after- its been defined.
It just so happens that vim supports that sort of thing.

(untested) Try putting

norm \ca

in $HOME/.vim/after/plugin/NERDcomment.vim . You may have to create a
directory or two.

C Campbell

--
--
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