samuelprakoso.com

[vi editor] Remove Auto Indent

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.

To turn off the indents, just type this command:

:set noautoindent

And it’s disappear like magic..

Imagine, before I know this command, I have to fix the indents on 2000++ line of code using vi..

*sigh*

Keep reading

  1. 15 Aug 2023Apa Bedanya yum update dan upgrade?linux
  2. 7 Oct 2022Perintah untuk Split dan Join File di Linuxlinux
  3. 23 Sep 2022Extend Linux file system setelah resizing volumelinux

All posts

Need a hand with this?

I’ve been doing this since 2000. Tell me what you’re stuck on.