Tuesday, March 28, 2017

vim indentation



-----------------------------------
To temporarily turn off automatic indenting by typing
:set paste
in command mode.

To turn back on:
:unset paste  
-----------------------------------

According to filetype indenting happens.
:filetype indent on

want to know file type? try :set filetype - you will get answer.

-----------------------------------

not so sophisticated:
set ai
set si

-----------------------------------

source: http://www.serverwatch.com/tutorials/article.php/3845506/Automatic-Indenting-With-Vim.htm


No comments:

Post a Comment