On Apr 15, 11:17 am, Tony Mechelynck <[email protected]>
wrote:
> On 15/04/11 09:06, rameo wrote:
>
>
>
>
>
> > When I start VIM it shows my tabs and reloads my buffers from the last
> > time.
>
> > I use a session to do this.
>
> > au VimEnter * exe "so d:\\Session.vim"
> > au VimLeave * exe "'mksession! d:\\Session.vim'"
>
> > My reopened files do not have syntax coloring.
> > I have to do ":e" in every file where I need syntax coloring to view
> > syntax coloring.
>
> > I know that I can add "localoptions" in sessionoptions but this slows
> > down my vim (I noted that it uses 20-25% more CPU). Without
> > "localoptions" my vim is much faster.
>
> > How do you resolve this?
> > Don't you use sessions?
>
> try adding either
>
>         syntax on
>
> or (near the top)
>
>         runtime vimrc_example.vim
>
> (it's not necessary to use both) to your vimrc (or make one if you don't
> yet have one, using
>
>         :e ~/_vimrc
>
> inside Vim).
>
> Best regards,
> Tony.
> --
> Dimensions will always be expressed in the least usable term.
> Velocity, for example, will be expressed in furlongs per fortnight.

Hello Tony,

I already had "syntax on" near the top of my _vimrc file.

...
I noted that vim doesn't detect filetypes at startup when files are
restored (by sourcing a session).

I have
filetype on
filetype plugin on
written in my _vimrc

Best regards,
Rameo

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

Reply via email to