On 15/04/11 12:47, rameo wrote:
On Apr 15, 11:31 am, rameo<[email protected]> wrote:
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
I restore my sessions using VimEnter/VimLeave --> see 1st message.
I just checked what it does when I do it manually..
Syntax works. (maybe because it uses the sessionoptions "localoptions"
or "options")
If you're using gvim, try making a desktop icon which would call it as
gvim -S d:\Session.vim
If you're using Console Vim, try making... well, I was about to say a
shell alias, but maybe these don't exist on Windows. You can make a bat
script, however, named maybe svim.bat, which would call Vim as
vim -S d:\Session.vim
In all cases, you may need to call vim, svim or gvim with a full path if
its executable's directory is not in your PATH environment variable.
see :help -S
Best regards,
Tony.
--
"When are you BUTTHEADS gonna learn that you can't oppose Gestapo
tactics *with* Gestapo tactics?"
-- Reuben Flagg
--
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