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