Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1017 Bytes

G902 - Appendix 02 ~ Vim vimrc configuration.md

File metadata and controls

28 lines (19 loc) · 1017 Bytes

G902 - Appendix 02 ~ Vim .vimrc configuration

A very practical .vimrc configuration for VIM is the following.

" Configuration for tabs, always 4 spaces (like in the Python standard)
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab

" Show line numbers
set nu

Just create a .vimrc file, with the lines above, in any user's $HOME folder.

References

Navigation

<< Previous (G901. Appendix 01) | +Table Of Contents+ | Next (G903. Appendix 03) >>