Thursday, October 8, 2015

Switching off auto-indent within vim script...

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 following:

execute "normal :setl noai nocin nosi inde="
execute 'normal! ' . l:start . 'Gg0o' . "\t" . join(l:cols, "\n\t, ")


But all of the text is auto-indented. Any help would be appreciated....

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: