Skip to content
Snippets Groups Projects
Commit 5e9e233f authored by nimrod's avatar nimrod
Browse files

Modular Vim config.

- Set filetype to unix by default.
- Use the filetype plugin to have per-filetype configuration.
- Use 2 spaces for YAML and Terraform files.
- Move Python configuration from .vimrc to filetype plugin.
parent 4cfebb43
No related branches found
No related tags found
No related merge requests found
setlocal smartindent
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class
setlocal nocindent
setlocal tabstop=2
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal tabstop=2
setlocal softtabstop=2
setlocal shiftwidth=2
"autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
"autocmd BufRead *.py set nocindent
"autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
filetype plugin indent on filetype plugin indent on
setlocal tabstop=4 setlocal tabstop=4
setlocal softtabstop=4 setlocal softtabstop=4
...@@ -12,3 +9,4 @@ setlocal incsearch ...@@ -12,3 +9,4 @@ setlocal incsearch
syntax on syntax on
setlocal modeline setlocal modeline
set viminfo='20,<9999,s1024,h set viminfo='20,<9999,s1024,h
setlocal fileformat=unix
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment