Re: Switching off auto-indent within vim script...

2015-10-09 Thread Erik Christiansen
On 08.10.15 14:56, Sonny Chee wrote: > > But all of the text is auto-indented. Any help would be appreciated Have you tried "set paste", instead? If pasting from the X Clipboard, there's also: "+p (That was "*p in old Vim versions, IIRC.) Erik -- -- You received this message from the

Re: Switching off auto-indent within vim script...

2015-10-09 Thread Simon Ruderich
On Fri, Oct 09, 2015 at 06:27:15PM +1100, Erik Christiansen wrote: > (That was "*p in old Vim versions, IIRC.) Are you sure? According to the Vim help, "* is the primary X selection and "+ is the X clipboard. Regards Simon -- + privacy is necessary + using gnupg http://gnupg.org + public key

Re: Switching off auto-indent within vim script...

2015-10-09 Thread Ben Fritz
On Thursday, October 8, 2015 at 4:56:20 PM UTC-5, Sonny Chee wrote: > Hey Guys, > > When I want to insert text from my clipboard, I turn off auto-indenting with > the following: > > :setl noai nocin nosi inde= > > That works great. > > I'm working on a vimscript that inserts (prettily)

Re: Switching off auto-indent within vim script...

2015-10-09 Thread Sonny
Thanks guys for the pointer to :set paste. Also appreciate the help debugging the issue with my script Ben. On Fri, Oct 9, 2015 at 7:26 AM, Ben Fritz wrote: > On Thursday, October 8, 2015 at 4:56:20 PM UTC-5, Sonny Chee wrote: > > Hey Guys, > > > > When I want to

Switching off auto-indent within vim script...

2015-10-08 Thread Sonny Chee
Hey Guys, When I want to insert text from my clipboard, I turn off auto-indenting with the following: :setl noai nocin nosi inde= That works great. I'm working on a vimscript that inserts (prettily) formatted text into a buffer. I tried to execute the above before the inserts with the