]>
Commit | Line | Data |
---|---|---|
1b8a4102 | 1 | if v:progname =~? "evim" |
2 | finish | |
3 | endif | |
4 | source $VIMRUNTIME/defaults.vim | |
5 | ||
6 | packadd matchit | |
7 | ||
8 | set backup | |
03bc64c4 | 9 | set backupdir=$HOME/tmp/vim// |
1b8a4102 | 10 | set undofile |
03bc64c4 | 11 | set undodir=$HOME/tmp/vim// |
1b8a4102 | 12 | |
13 | set autoindent | |
1b8a4102 | 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 | |
1b8a4102 | 28 | autocmd InsertEnter * :set norelativenumber |
29 | autocmd InsertLeave * :set relativenumber | |
03bc64c4 | 30 | autocmd FocusLost * :set norelativenumber |
31 | autocmd FocusGained * :set relativenumber |