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