Marius Roets wrote:
Hi everybody,
I have several sessions that I have been using for quite some time. My
.vimrc and plugins/ftplugins change constantly, and I am missing
several more recent features in some of my saved sessions. Is there a
way I can make a saved session forget all it's settings, and read the
latest .vimrc/plugins/ftplugins/syntax files, and then overwrite the
previous session file. There are several cumbersome ways to do this, I
was just wondering if there was a quick way.

Thanks
Marius


A session is not only a number of settings, it's also one or more editfiles etc. To make a session forget all that makes it a session, use

        :qa

followed by

        vim

or

        gvim

(the latter may be entered in an Alt-F2 popup). Once you are satisfied that you have what you want, use the ":mksession" command (q.v.). Or, if you have a GNOME build of gvim, you can log out of the (kde or GNOME) window manager and let gvim save its session transparently.

See
        :help :mksession
        :help :mkview
        :help -o
        :help -S
        :help gnome-session

If the above (starting a new session afresh) is too drastic for you, you may _first_ use :mksession, then edit the session file (e.g. by removing the settings you don't want anymore) and finally :qa and gvim -S

Best regards,
Tony.

Reply via email to