On 02/01/10 22:20, Sean DeNigris wrote:
 > Hi list!
 >
 > I'm trying to have vim automatically source session files on opening
 > them.
 >
 > I save all my session files as .vis and added "autocmd BufRead
 > *.vis :so %" to my .vimrc file.
 >
 > When I open the file in vim, it restores the session, but all
 > filetypes are not set.
 >
 > I want this to work by double-clicking the find on a mac, so I can't
 > use vim -S (as far as I know).
 >
 > Any ideas?
 >
 > Thanks!
 >
 > - Sean
 >
Hi,

Does the :so % works otherwise ? If no, maybe vim does not store the ft
info in your session file, did you try one of these in vimrc :

set sessionoptions+=globals
set sessionoptions+=localoptions
set sessionoptions+=options

hope it helps

--
David

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to