My sessionoptions is:

        set
sessionoptions=winsize,winpos,resize,globals,buffers,slash,localoptions,folds,tabpages,unix

I have a buffer with a mapping :

        map <buffer> ,h :call FlipHeader()<cr>

This is saved to the session as:

         map <buffer> ,h :call FlipHeader() ^V^M

And when the session file is re-read, the map is:

       map <buffer> ,h :call FlipHeader()<nl>setlocal keymap=

Note that the "<cr>" became "<nl>", and  then vim read the next line
of the session file "setlocal keymap=" as if it were part of the
mapping.

What am I doing wrong here?
Thanks!

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

Raspunde prin e-mail lui