X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/fef6b2b53013bce95a0b0d99a3c2c928665416b1..1f53b63076926ef107edd4f2ff38f8cd73ef7234:/base/.vimrc?ds=inline diff --git a/base/.vimrc b/base/.vimrc index c3cff3f..0affbd2 100644 --- a/base/.vimrc +++ b/base/.vimrc @@ -1,10 +1,9 @@ -if v:progname =~? "evim" - finish -endif source $VIMRUNTIME/defaults.vim packadd matchit +set modeline "!!! + set backup set backupdir=$HOME/var/tmp/vim// set undofile @@ -13,6 +12,7 @@ set undodir=$HOME/var/tmp/vim// set autoindent set colorcolumn=80 highlight ColorColumn term=NONE ctermbg=0 +" filetype should be on from defaults.vim autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab autocmd FileType markdown setlocal tabstop=4 shiftwidth=4 expandtab autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab @@ -30,5 +30,11 @@ autocmd InsertEnter * setlocal norelativenumber autocmd InsertLeave * setlocal relativenumber autocmd FocusLost * setlocal norelativenumber autocmd FocusGained * setlocal relativenumber +highlight WhiteSpaceBol ctermfg=DarkBlue +highlight WhiteSpaceMol ctermfg=Black +match WhiteSpaceMol / / +2match WhiteSpaceBol /\(^ \+\)\|\( \+$\)/ + +let g:Modeliner_format='ft= fenc= et ts= sts= sw= tw=' -" vim:sts=4:sw=4:et:tw=79 +" vim: set et fenc=utf-8 ft=vim sts=4 sw=4 ts=8 tw=79 :