]> git.sev.monster Git - dotfiles.git/blame - base/.vimrc
add .swo to .gitignore
[dotfiles.git] / base / .vimrc
CommitLineData
189288f7 1if v:progname =~? "evim"
2 finish
3endif
4source $VIMRUNTIME/defaults.vim
5
6packadd matchit
7
8set backup
d9362f34 9set backupdir=$HOME/tmp/vim//
189288f7 10set undofile
d9362f34 11set undodir=$HOME/tmp/vim//
189288f7 12
13set autoindent
189288f7 14set colorcolumn=80
15autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab
16autocmd FileType markdown setlocal tabstop=4 shiftwidth=4 expandtab
17autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab
18autocmd FileType json setlocal tabstop=2 shiftwidth=2 expandtab
19autocmd FileType html setlocal tabstop=2 shiftwidth=2 expandtab
20
21set cursorline
22set hlsearch
23nnoremap <CR> :noh<CR><CR>
24set list
25set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■
26set number
27set relativenumber
189288f7 28autocmd InsertEnter * :set norelativenumber
29autocmd InsertLeave * :set relativenumber
d9362f34 30autocmd FocusLost * :set norelativenumber
31autocmd FocusGained * :set relativenumber
This page took 1.037736 seconds and 4 git commands to generate.