]>
Commit | Line | Data |
---|---|---|
189288f7 | 1 | if v:progname =~? "evim" |
2 | finish | |
3 | endif | |
4 | source $VIMRUNTIME/defaults.vim | |
5 | ||
6 | packadd matchit | |
7 | ||
8 | set backup | |
1f8bf106 | 9 | set backupdir=$HOME/var/tmp/vim// |
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 |
189288f7 | 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 | |
25599a8f | 21 | autocmd FileType todo setlocal colorcolumn=0 |
189288f7 | 22 | |
23 | set cursorline | |
24 | set hlsearch | |
189288f7 | 25 | set list |
26 | set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■ | |
27 | set number | |
28 | set relativenumber | |
25599a8f | 29 | autocmd InsertEnter * setlocal norelativenumber |
30 | autocmd InsertLeave * setlocal relativenumber | |
31 | autocmd FocusLost * setlocal norelativenumber | |
32 | autocmd FocusGained * setlocal relativenumber | |
33 | ||
34 | " vim:sts=4:sw=4:et:tw=79 |