]>
Commit | Line | Data |
---|---|---|
1b8a4102 | 1 | source $VIMRUNTIME/defaults.vim |
2 | ||
3 | packadd matchit | |
4 | ||
fef7b7c4 | 5 | set modeline "!!! |
6 | ||
1b8a4102 | 7 | set backup |
84251d17 | 8 | set backupdir=$HOME/var/tmp/vim// |
1b8a4102 | 9 | set undofile |
84251d17 | 10 | set undodir=$HOME/var/tmp/vim// |
1b8a4102 | 11 | |
12 | set autoindent | |
1b8a4102 | 13 | set colorcolumn=80 |
ddcfe43c | 14 | highlight ColorColumn term=NONE ctermbg=0 |
fef7b7c4 | 15 | " filetype should be on from defaults.vim |
1b8a4102 | 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 | |
ddcfe43c | 21 | autocmd FileType todo setlocal colorcolumn=0 |
1b8a4102 | 22 | |
23 | set cursorline | |
24 | set hlsearch | |
1b8a4102 | 25 | set list |
26 | set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■ | |
27 | set number | |
28 | set relativenumber | |
ddcfe43c | 29 | autocmd InsertEnter * setlocal norelativenumber |
30 | autocmd InsertLeave * setlocal relativenumber | |
31 | autocmd FocusLost * setlocal norelativenumber | |
32 | autocmd FocusGained * setlocal relativenumber | |
fab483dd | 33 | highlight WhiteSpaceBol ctermfg=DarkBlue |
34 | highlight WhiteSpaceMol ctermfg=Black | |
35 | match WhiteSpaceMol / / | |
36 | 2match WhiteSpaceBol /\(^ \+\)\|\( \+$\)/ | |
ddcfe43c | 37 | |
fef7b7c4 | 38 | let 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 : |