]>
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 | |
d9362f34 | 9 | set backupdir=$HOME/tmp/vim// |
189288f7 | 10 | set undofile |
d9362f34 | 11 | set undodir=$HOME/tmp/vim// |
189288f7 | 12 | |
13 | set autoindent | |
189288f7 | 14 | set colorcolumn=80 |
15 | autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab | |
16 | autocmd FileType markdown setlocal tabstop=4 shiftwidth=4 expandtab | |
17 | autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab | |
18 | autocmd FileType json setlocal tabstop=2 shiftwidth=2 expandtab | |
19 | autocmd FileType html setlocal tabstop=2 shiftwidth=2 expandtab | |
20 | ||
21 | set cursorline | |
22 | set hlsearch | |
23 | nnoremap <CR> :noh<CR><CR> | |
24 | set list | |
25 | set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■ | |
26 | set number | |
27 | set relativenumber | |
189288f7 | 28 | autocmd InsertEnter * :set norelativenumber |
29 | autocmd InsertLeave * :set relativenumber | |
d9362f34 | 30 | autocmd FocusLost * :set norelativenumber |
31 | autocmd FocusGained * :set relativenumber |