[wellylug] Staircase effect in vim...

Grant McLean grant at mclean.net.nz
Thu Feb 19 14:29:57 NZDT 2004


> On Thu, 19 Feb 2004 07:17, Grant McLean wrote:
>> Cameron Hart wrote:
>>> But then you have to forsake lovely autoindent!  :)
>>>
>>> Try using vim's paste mode. In vim type
>>>
>>> :set paste
>>>
...
>>> :set nopaste
>>>
>>> refer to ":help paste" in vim, and ":help set" if need be.
>>
>> Unfortunately, the original poster was using vim via an ssh
>> connection.
...
>> In this case I'd recommend:
>> :set noai
>>
>> paste
>>
>> :set ai

You're right.  Following Ewen's reply, I actually read the documentation on
the paste option and it seems to be a good answer.  Since I mostly use gvim
and don't have a problem with pasting indented text, I assumed that
paste/nopaste was the option that caused autoindent to be automatically
disabled when pasting into the GUI.  I was wrong.

Regards
Grant





More information about the wellylug mailing list