Thursday, July 12, 2012

Overriding setlocal in session files

For a long time I have had the following in my .vimrc
autocmd BufRead,BufNewFile *.js setlocal shiftwidth=2 tabstop=2
Thus, numerous session files have those settings.
Now I have changed my .vimrc to
autocmd BufRead,BufNewFile *.js setlocal shiftwidth=4 tabstop=4

*But* the now-desirable setting above are being overriden by the session files with the old settings.
I could manually edit each session file and remove the 'old'
settings, but is there an easier or more 'vimish' solution?

thanks
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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