71318Re: Can't put text with P, but p still works
- Jul 14 7:42 AMOn Fri, 14 Jul 2006, Benji Fisher wrote:
> On Fri, Jul 14, 2006 at 10:02:48AM +0800, Dr Bean wrote:It appears to be a sessions problem. I only have it when I run
> > map P reveals no mappings.
> > This is the vim on Fedora Core 3.
> > :version
> > VIM - Vi IMproved 6.3 (2004 June 7, compiled Oct 19 2004 17:17:57)
> > 適用済パッチ: 1-21, 23-24, 26, 28-30
> > Modified by <bugzilla@...>
> > Compiled by <bugzilla@...>
> > Huge 版 without GUI. 機能の一覧 有効(+)/無効(-)
> Please try starting vim with
> $ vim -u NONE
> and see whether the problem persists. If it does, please give a very
> explicit example of how "p" works but "P" does not.
vim -S Sessions.vim.
With vim -u NONE -U NONE the problem with P in a session goes away. BUt I get
vi-undo with u.
This suggests session monkeying with cpoptions is to blame.
And I have in my vimrc:
map \P :set paste!<CR>: se paste?<CR>
And although P doesn't do anything except in ex: mode, I see it is toggling
the paste option.
I wonder if this is cpo flag B.
Dr Bean Doing things right is doing the right thing.
Doing things wrong is education.
- << Previous post in topic Next post in topic >>