Whenever I read an encrypted file, I want to 'setlocal viminfo='. If I always
know the name of the file, I can put something like this in .vimrc:
au! BufRead thefile setlocal viminfo=
What if I don't always know the name of the file? Is there some 'if' operand
that I can use, maybe like this?:
au! BufRead * if &encrypted | setlocal viminfo= | endif
(I'm not sure that syntax is even correct.)
--
.
--
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