Friday, December 7, 2012

Re: calling a function on bufenter,bufnew,bufread

On Friday, December 7, 2012 9:46:10 AM UTC-6, Chris Lott wrote:
>
> au BufNewFile,BufEnter,BufRead vimperator.txt :call WW()<cr>
>

Autocmds take ex commands, not normal mode mapping sequences. So, this code should be:

au BufNewFile,BufEnter,BufRead vimperator.txt call WW()

In the future, or if this doesn't solve your problem, "it isn't working" is not helpful at all to anybody trying to solve your problem. Tell us what happened, any error messages you see, and what you expected to happen instead.

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

No comments:

Post a Comment