126313Re: replace e flag works in command but fails if that command in key mapping
- Oct 2, 2011On 02/10/11 16:04, porphyry5 wrote:
> Well, I think I finally have this figured out. If I'm using sessions,On the contrary, starting Vim with -S will source your vimrc first; but
> any session includes its own .vimrc, being that .vimrc in effect when
> the session was first begun. Then changing the actual .vimrc file has
> no effect on the session, because it will never reload the
> actual .vimrc. So if I want to change a mapping in .vimrc, and have
> the benefit of that change in my session, I must make the new mapping
> explicitly in the current session, as well as in .vimrc.
then it will proceed with your session file, which may override anything
your vimrc has set.
You may use sessions without running :mksession -- a session file is
just a Vim script sourced after your vimrc, usually to set up your
windows and tabs and such. You can create one by hand, e.g. as
tabnext " wrap around to first tab
wincmd w " wrap around to first window
You can even name it ~/Session.vim, then "vim -S" or "gvim -S" will run
it; and they will use all the settings of your vimrc too.
There's only one way to have a happy marriage and as soon as I learn
what it is I'll get married again.
-- Clint Eastwood
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
- << Previous post in topic Next post in topic >>