Thursday, September 10, 2015

Should 'paste' disable 'smarttab'?

Hello,

I wonder if there's any reason that smarttab is enabled in paste mode? Consider:

$ vim -u NONE
:set nocp
:set sw=2
:set smarttab
:set paste
i<tab>

This inserts two spaces rather than a tab character in paste-mode, seemingly in contradiction of the paste-mode's purpose. There's a number of options that are temporarily disabled when paste mode is entered, shouldn't 'smarttab' be added to the list?

(if it was discussed in the past, please point me; I couldn't find anything)

Thanks.
Alexander

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

Post a Comment