]>
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 | |
9 | set backupdir=$HOME/tmp// | |
10 | set undofile | |
11 | set undodir=$HOME/tmp// | |
12 | ||
13 | set autoindent | |
14 | set textwidth=79 | |
15 | set colorcolumn=80 | |
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 | |
21 | ||
22 | set cursorline | |
23 | set hlsearch | |
24 | nnoremap <CR> :noh<CR><CR> | |
25 | set list | |
26 | set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■ | |
27 | set number | |
28 | set relativenumber | |
29 | autocmd FocusLost * :set norelativenumber | |
30 | autocmd FocusGained * :set relativenumber | |
31 | autocmd InsertEnter * :set norelativenumber | |
32 | autocmd InsertLeave * :set relativenumber |