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
No comments:
Post a Comment