On Thu, Mar 24, 2011 at 20:51, mathneuro <[email protected]> wrote:
> Hello, I have a series of commands in an old vimrc I've been using on
> my OS X box (vim 7.2.264):
>
> au BufRead,BufNewFile [Mm]akefile* set noexpandtab
> au BufRead,BufNewFile *.tex set tabstop=2
> au BufRead,BufNewFile *.tex set shiftwidth=2
>
> that are now throwing the error:
>
> Error detected while processing .vimrc:
> E319: Sorry, the command is not available in this version: au
> BufRead,BufNewFile [Mm]akefile* set noexpandtab
>
> for each line.
This command is optional, it is only available if you configured vim
at compile time to include it.
> Any idea/suggestion on how to make this work? Thanks in advance.
Recompile vim with at least --with-features=normal flag or higher.
Alternatively, you can surround the offending commands with if
has("autocmd") ... endif, so that vim will skip them if it doesn't
support this feature.
--
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