]> git.sev.monster Git - dotfiles.git/blame - base/.vimrc
code cleanup, add su support
[dotfiles.git] / base / .vimrc
CommitLineData
1b8a4102 1source $VIMRUNTIME/defaults.vim
2
3packadd matchit
4
fef7b7c4 5set modeline "!!!
6
1b8a4102 7set backup
84251d17 8set backupdir=$HOME/var/tmp/vim//
1b8a4102 9set undofile
84251d17 10set undodir=$HOME/var/tmp/vim//
1b8a4102 11
12set autoindent
1b8a4102 13set colorcolumn=80
ddcfe43c 14highlight ColorColumn term=NONE ctermbg=0
fef7b7c4 15" filetype should be on from defaults.vim
1b8a4102 16autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab
17autocmd FileType markdown setlocal tabstop=4 shiftwidth=4 expandtab
18autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab
19autocmd FileType json setlocal tabstop=2 shiftwidth=2 expandtab
20autocmd FileType html setlocal tabstop=2 shiftwidth=2 expandtab
ddcfe43c 21autocmd FileType todo setlocal colorcolumn=0
1b8a4102 22
23set cursorline
24set hlsearch
1b8a4102 25set list
26set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■
27set number
28set relativenumber
ddcfe43c 29autocmd InsertEnter * setlocal norelativenumber
30autocmd InsertLeave * setlocal relativenumber
31autocmd FocusLost * setlocal norelativenumber
32autocmd FocusGained * setlocal relativenumber
fab483dd 33highlight WhiteSpaceBol ctermfg=DarkBlue
34highlight WhiteSpaceMol ctermfg=Black
35match WhiteSpaceMol / /
362match WhiteSpaceBol /\(^ \+\)\|\( \+$\)/
ddcfe43c 37
fef7b7c4 38let g:Modeliner_format='ft= fenc= et ts= sts= sw= tw='
39
40" vim: set et fenc=utf-8 ft=vim sts=4 sw=4 ts=8 tw=79 :
This page took 0.034056 seconds and 4 git commands to generate.