1 source $VIMRUNTIME/defaults.vim
8 set backupdir=$HOME/var/tmp/vim//
10 set undodir=$HOME/var/tmp/vim//
14 highlight ColorColumn term=NONE ctermbg=0
15 " filetype should be on from defaults.vim
16 autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab
17 autocmd FileType markdown setlocal tabstop=4 shiftwidth=4 expandtab
18 autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab
19 autocmd FileType json setlocal tabstop=2 shiftwidth=2 expandtab
20 autocmd FileType html setlocal tabstop=2 shiftwidth=2 expandtab
21 autocmd FileType todo setlocal colorcolumn=0
26 set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■
29 autocmd InsertEnter * setlocal norelativenumber
30 autocmd InsertLeave * setlocal relativenumber
31 autocmd FocusLost * setlocal norelativenumber
32 autocmd FocusGained * setlocal relativenumber
34 let g:Modeliner_format='ft= fenc= et ts= sts= sw= tw='
36 " vim: set et fenc=utf-8 ft=vim sts=4 sw=4 ts=8 tw=79 :