]> git.sev.monster Git - dotfiles.git/blame - base/.vimrc
move vim tmp to var/tmp/vim, softlink tmp to /tmp
[dotfiles.git] / base / .vimrc
CommitLineData
189288f7 1if v:progname =~? "evim"
2 finish
3endif
4source $VIMRUNTIME/defaults.vim
5
6packadd matchit
7
8set backup
1f8bf106 9set backupdir=$HOME/var/tmp/vim//
189288f7 10set undofile
1f8bf106 11set undodir=$HOME/var/tmp/vim//
189288f7 12
13set autoindent
189288f7 14set colorcolumn=80
25599a8f 15highlight ColorColumn term=NONE ctermbg=0
189288f7 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
25599a8f 21autocmd FileType todo setlocal colorcolumn=0
189288f7 22
23set cursorline
24set hlsearch
189288f7 25set list
26set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■
27set number
28set relativenumber
25599a8f 29autocmd InsertEnter * setlocal norelativenumber
30autocmd InsertLeave * setlocal relativenumber
31autocmd FocusLost * setlocal norelativenumber
32autocmd FocusGained * setlocal relativenumber
33
34" vim:sts=4:sw=4:et:tw=79
This page took 0.04478 seconds and 4 git commands to generate.