-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvimrc
68 lines (58 loc) · 1.67 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
set nocompatible
" don't use other fancy shells within vim
set shell=/bin/sh
" inject plugins into runtime path, keeping standard
" after/ paths at the end
set rtp-=$VIM/vimfiles/after
set rtp-=$HOME/.vim/after
set rtp-=$VIM/vim82
set rtp+=$HOME/.vim/plugins/*,$VIM/vim82,$VIM/vimfiles/after,$HOME/.vim/after
syntax off
filetype plugin indent on
set backspace=start " allow backspace in insert mode (single line)
set directory=/tmp
set expandtab
set grepprg='ag'
set hidden
set history=1000
set incsearch
set list
set listchars=tab:▸\ ,trail:■
set nojoinspaces
set path=.,**,,
set ruler
set shiftwidth=2
set showmode
set suffixesadd=.go,.scala,.clj,.rb,.haml
set tabstop=2
set tags+=.git/tags
set title
set ttimeoutlen=50
set wildignore+=*/node_modules/*
set wildignore+=*/target/classes/*
set wildignore+=*/bower_components/*
set wildignore+=*/vendor/bundle/*
set wildmenu
set wildmode=list:longest
" some custom colors
hi NonText ctermfg=14 ctermbg=none
hi StatusLine cterm=underline ctermfg=14 ctermbg=none
hi StatusLineNC cterm=underline ctermfg=0 ctermbg=none
hi Tabline cterm=none
hi TablineFill cterm=none ctermbg=7
hi TablineSel cterm=bold ctermfg=4 ctermbg=none
hi VertSplit cterm=bold ctermfg=14 ctermbg=none
digraph ?! 8253 " ‽ - interrobang
" enable emacs key mappings on the command-line
cnoremap <C-N> <Down>
cnoremap <C-P> <Up>
" resize splits when vim is resized
autocmd VimResized * wincmd =
" generate help tags for configured plugins with:
" :call PluginHelpTags()
function! PluginHelpTags()
for doc in split(globpath("$HOME/.vim/plugins/", '**/doc'), '\n')
silent! execute 'helptags' doc
endfor
endfunction
let g:go_fmt_command = "goimports"