[kwlug-disc] Syntax and indenting in vim 8.0 driving me crazy ...
Bob Jonkman
bjonkman at sobac.com
Wed Feb 21 02:45:05 EST 2018
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Now *that* sounds like a short presentation topic!
- --Bob.
On 2018-02-20 10:10 PM, Raymond Chen wrote:
> expandtab must appear after 'set paste' is what I remember... 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
>
>
> On Feb 20, 2018 14:45, "Khalid Baheyeldin" <kb at 2bits.com> wrote:
>
>> Before I discovered that deleting my .vimrc (and now adding a
>> minimal one) fixed the pasting issue, I used a shell workaround,
>> like so:
>>
>> :r !cat pasted text goes here and here and here Ctrl-D
>>
>> That always allowed me to paste stuff without vim's autoindent
>> messing it up.
>>
>> On Tue, Feb 20, 2018 at 2:39 PM, Adam Glauser
>> <adamglauser at gmail.com> wrote:
>>
>>> On Tue, Feb 20, 2018 at 12:44 PM doug moen <doug at moens.org>
>>> wrote:
>>>
>>>> I have autoindent turned on by default, but it gets in the
>>>> way if I paste text from the clipboard. So I got used to
>>>> typing :se noai to turn off autoindent, and :se ai to turn it
>>>> back on.
>>>>
>>>
>>> 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).
>>>
>>> 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).
>>>
>>> [1] https://stackoverflow.com/questions/2514445/turning-off-
>>> auto-indent-when-pasting-text-into-vim
>>>
>>> _______________________________________________ kwlug-disc
>>> mailing list kwlug-disc at kwlug.org
>>> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>>>
>>>
>>
>>
>> -- Khalid M. Baheyeldin 2bits.com, Inc. Fast Reliable Drupal
>> Drupal optimization, development, customization and consulting.
>> Simplicity is prerequisite for reliability. -- Edsger
>> W.Dijkstra Simplicity is the ultimate sophistication. --
>> Leonardo da Vinci For every complex problem, there is an answer
>> that is clear, simple, and wrong." -- H.L. Mencken
>>
>> _______________________________________________ kwlug-disc
>> mailing list kwlug-disc at kwlug.org
>> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>>
>>
>
>
>
> _______________________________________________ kwlug-disc mailing
> list kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
- --
Bob Jonkman <bjonkman at sobac.com> Phone: +1-519-635-9413
SOBAC Microcomputer Services http://sobac.com/sobac/
Software --- Office & Business Automation --- Consulting
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Ensure confidentiality, authenticity, non-repudiability
iEYEARECAAYFAlqNI34ACgkQuRKJsNLM5ep4FwCg9KAduAfHNhJXK8Ah1kASb9BJ
YZIAn2brDNdv/1aalmY1TQqhzExrSj+h
=JnXj
-----END PGP SIGNATURE-----
More information about the kwlug-disc
mailing list