I set up my ~/.vim/filetype.vim to include these lines:

aug views
   au!

   au BufWinLeave  *    if expand("%") != "" |
                        \ mkview |
                        \ endif
   au BufWinLeave  *    if expand("%") != "" |
                        \ silent loadview |
                        \ endif
aug END

So that every time I stopped editing/viewing a file, vim would save my
folds, options, etc. in a file in ~/.vim/view/

But if I edit a file in gvim and then open it again in console vim, I
get the following error:

Error detected while processing /home/h3xx/.vim/view/[filename]=:
line 6:
E518: Unknown option: balloonexpr=
line 46:
E474: Invalid argument: imsearch=2


I looked it up and both those options refer to things only available
in gvim. My question is whether there is a way to either omit those
options when saving the view with gvim, or to suppress those errors
when editing in console vim.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to