vim:config:indentation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vim:config:indentation [2022/10/08 13:41] – created peter | vim:config:indentation [2022/10/08 17:28] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Config - Indentation ====== | ====== VIM - Config - Indentation ====== | ||
- | <file ~/.vimrc> | + | The indent features of Vim are very helpful for indenting source code. |
- | :set shiftwidth=2 | + | |
- | :set autoindent | + | |
- | :set smartindent | + | |
- | </ | + | |
- | <WRAP info> | + | ---- |
- | **NOTE:** | + | |
- | **set expandtab** allows to replace the tabs by white spaces characters | + | * [[VIM:Config: |
- | **set shiftwidth=2** makes the tabulations be 2 white spaces | + | * [[VIM: |
+ | | ||
- | </ | + | * [[VIM: |
+ | * [[VIM: | ||
+ | * [[VIM: | ||
+ | ---- | ||
+ | |||
+ | ===== To get help ===== | ||
+ | |||
+ | < | ||
+ | :help autoindent | ||
+ | :help smartindent | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// |
vim/config/indentation.1665236513.txt.gz · Last modified: 2022/10/08 13:41 by peter