On Tue, 4 Nov 2008 13:11:36 -0800 (PST), "fritzophrenic"
<[EMAIL PROTECTED]> said:
>
>
>
> On Nov 4, 2:42 pm, Charles Campbell <[EMAIL PROTECTED]>
> wrote:
> >
> > As Fritzophrenic pointed out, plugins apparently have the potential to
> > interfere. Try:
> >
> > vim -u NONE
> > (:set nocp, set up tabs and whatnot)
> > :mks! ses.S
> > :q
> >
> > If that works (vim -S ses.S), try
> >
> > vim --noplugin
> > (same as above)
> >
> > If the first case worked, then there's likely to be a conflict with
> > something in your .vimrc or plugins. If the second case works, that'll
> > narrow it down to your plugins. Further narrowing is an exercise in
> > disabling plugins and re-enabling them.
> >
> > Regards,
> > Chip Campbell
>
> After some _very_ brief experimentation, I determined that on my
> setup :mksession works if I do not have the Taglist window open, and
> all the files are in the same directory. It also works with gvim -N -u
> NONE.
>
> This leads me to believe that the TagList plugin does not work well
> with mksession, and that the autochdir option also causes problems.
>
> I might sometime play with this some more, if I feel the need to make
> a session file, but it's good enough for me for now.
I found out that it wasn't one of my plugins, but rather my vimrc. I
disabled a couple
of things and then it worked. But then I enabled them again and it
worked as well (???).
So I'm afraid I can't really narrow it down. I've moved all my plugins
out of my plugin-
directory and moved them in again, does it re-initalize them maybe? I
don't have a clue.
Nevertheless, here are the things that I believed caused the problem
(either/or):
-----------------------------------------
set viminfo='100,f1
augroup JumpCursorOnEdit
au!
autocmd BufReadPost *
\ if expand("<afile>:p:h") !=? $TEMP |
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ let JumpCursorOnEdit_foo = line("'\"") |
\ let b:doopenfold = 1 |
\ if (foldlevel(JumpCursorOnEdit_foo) >
foldlevel(JumpCursorOnEdit_foo - 1)) |
\ let JumpCursorOnEdit_foo = JumpCursorOnEdit_foo - 1 |
\ let b:doopenfold = 2 |
\ endif |
\ exe JumpCursorOnEdit_foo |
\ endif |
\ endif
" Need to postpone using "zv" until after reading the modelines.
autocmd BufWinEnter *
\ if exists("b:doopenfold") |
\ exe "normal zv" |
\ if(b:doopenfold > 1) |
\ exe "+".1 |
\ endif |
\ unlet b:doopenfold |
\ endif
augroup END
au BufWinLeave ?* mkview
au BufWinEnter ?* silent loadview
-----------------------------------------
Because that's every entry that could remotely affect this behaviour. My
vimrc is not
very big.
--
Rebecca Poole
[EMAIL PROTECTED]
--
http://www.fastmail.fm - Does exactly what it says on the tin
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---