<div dir="auto">expandtab must appear after 'set paste' is what I remember...<div dir="auto">BTW, do you put your personal settings like .vimrc .bashrc or .tmux.conf on Github? I even created a bit.do short URL for my .bashrc so I can just curl it whenever I need it on a new machine</div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 20, 2018 14:45, "Khalid Baheyeldin" <<a href="mailto:kb@2bits.com">kb@2bits.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Before I discovered that deleting my .vimrc (and now adding a minimal one) fixed the pasting issue, I used a shell workaround, like so:<br><br></div>:r !cat<br>pasted text goes here<br></div><div>and here<br></div><div>and here<br></div></div>Ctrl-D<br><br></div>That always allowed me to paste stuff without vim's autoindent messing it up.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 20, 2018 at 2:39 PM, Adam Glauser <span dir="ltr"><<a href="mailto:adamglauser@gmail.com" target="_blank">adamglauser@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span><div dir="ltr">On Tue, Feb 20, 2018 at 12:44 PM doug moen <<a href="mailto:doug@moens.org" target="_blank">doug@moens.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>I have autoindent turned on by default, but it gets in the way if I paste text from the clipboard.<br></div>So I got used to typing<br></div>   :se noai<br></div>to turn off autoindent, and<br></div>   :se ai<br></div>to turn it back on.</div></blockquote><div><br></div></span><div>I've used always used `:set paste` for this, if it is ever a problem. I'm on Vim 8+, and usually it "just works". I've never figured out why it sometimes works and sometimes doesn't. It seems[1] `:set paste` may prevent other unwanted completions as well (braces and friends for source code).</div><div><br></div><div>Now that I think about it, I wonder if it is the difference between using the terminal emulator's paste (type the clipboard into the terminal) vs. Vim's clipboard support ("*p).</div><div><br></div><div>[1] <a href="https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim" target="_blank">https://stackoverflow.com/<wbr>questions/2514445/turning-off-<wbr>auto-indent-when-pasting-text-<wbr>into-vim</a></div></div></div>
<br>______________________________<wbr>_________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">http://kwlug.org/mailman/listi<wbr>nfo/kwlug-disc_kwlug.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="m_1093216145703694865gmail_signature" data-smartmail="gmail_signature">Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br></div>
</div>
<br>______________________________<wbr>_________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">http://kwlug.org/mailman/<wbr>listinfo/kwlug-disc_kwlug.org</a><br>
<br></blockquote></div></div>