Tuesday, August 27, 2019

Re: 回复:auto indent

On Tue, Aug 27, 2019 at 10:54 AM Eliza <eli@chinabuckets.com> wrote:
>
> yes. The first time I used "set noautoindent" but found not much useful.
> Then I searched and found "set paste" which did work fine.
> How to setup it by global? thanks.

You shouldn't set it permanently, because it has a lot of
side-effects: it sets a lot of options to off or to 0, and in
addition, in 'paste' mode, mappings don't work.

What you can do is ":set paste" just before pasting and ":set nopaste"
afterwards. Or use a 'pastetoggle' as explained in the help.

Best regards,
Tony.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXsOYRYq5btqroziBMNO6fQqrsx0B85LSdRiJk-caMB3Yw%40mail.gmail.com.

No comments: