version number 7.2 on slackware 13.0.
I have the following lines in my .vimrc
autocmd BufNewFile,BufRead *.lsp setf newlisp
autocmd BufNewFile,BufRead *.lsp so ~/.vim/syntax/newlisp.vim
autocmd BufRead,BufNewFile *.lsp setlocal shiftwidth=2 tabstop=2
autocmd BufRead,BufNewFile *.lsp setlocal iskeyword+=:
If a open a file with an extension of .lsp and from ex
:set shiftwidth
I see that indeed, shiftwidth is set to 2
but
if I invoke
:echo &ft
I see that the filetype is *lisp* not newlisp. And it does not
appear that ~/.vim/syntax/newlisp.vim has been sourced.
What am I doing wrong here?
thanks
--
Tim
tim@johnsons-web.com
http://www.akwebsoft.com
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment