Tip #330: how to stop auto indenting
tip karma |
Rating 173/63, Viewed by 1754
|
created: |
|
September 20, 2002 13:01 |
|
complexity: |
|
intermediate |
author: |
|
Francis |
|
as of Vim: |
|
6.0 |
Since VIM 6.0 the indent has been improved so much.
But sometimes when we are pasting formated text (source code or HTML etc)
into a buffer, VIM indents again so that lines will be padded with too
much spaces.
Setting nocindent, noautoindent, nosmartindent still cannot stop this.
All you need to do is "set paste", then paste your stuff, and then
"set nopaste" again.
Ref: indentexpr
<<A map for swapping words |
modline magic... >>
Additional Notes
|