]> git.sev.monster Git - dotfiles.git/blame - base/.vimrc
vim: enable backupcopy
[dotfiles.git] / base / .vimrc
CommitLineData
189288f7 1source $VIMRUNTIME/defaults.vim
2
3packadd matchit
4
f993e922 5set modeline "!!!
6
189288f7 7set backup
1f8bf106 8set backupdir=$HOME/var/tmp/vim//
b777e363 9set backupcopy=yes
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
f993e922 16" filetype should be on from defaults.vim
189288f7 17autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab
18autocmd FileType markdown setlocal tabstop=4 shiftwidth=4 expandtab
19autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab
20autocmd FileType json setlocal tabstop=2 shiftwidth=2 expandtab
21autocmd FileType html setlocal tabstop=2 shiftwidth=2 expandtab
25599a8f 22autocmd FileType todo setlocal colorcolumn=0
189288f7 23
24set cursorline
25set hlsearch
189288f7 26set list
27set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■
28set number
29set relativenumber
25599a8f 30autocmd InsertEnter * setlocal norelativenumber
31autocmd InsertLeave * setlocal relativenumber
32autocmd FocusLost * setlocal norelativenumber
33autocmd FocusGained * setlocal relativenumber
1f53b630 34highlight WhiteSpaceBol ctermfg=DarkBlue
35highlight WhiteSpaceMol ctermfg=Black
36match WhiteSpaceMol / /
372match WhiteSpaceBol /\(^ \+\)\|\( \+$\)/
25599a8f 38
f993e922 39let g:Modeliner_format='ft= fenc= et ts= sts= sw= tw='
40
41" vim: set et fenc=utf-8 ft=vim sts=4 sw=4 ts=8 tw=79 :
This page took 0.033721 seconds and 4 git commands to generate.