-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (42 loc) · 1.3 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
set nocompatible
syntax on
set autoindent smartindent
set shiftwidth=4 softtabstop=4 tabstop=8 expandtab
set hlsearch
set backspace=indent,eol,start
au filetype py setl ff=unix
filetype plugin indent on
set noswapfile
set nobackup
set nowritebackup
set cursorline
set list
set listchars=tab:>-,trail:.,extends:#,nbsp:.
set ignorecase
set smartcase
au BufRead,BufNewFile *.was set filetype=vb
au BufRead,BufNewFile *.was set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
au BufReadPost,BufNewFile *.yaml,*.yml set filetype=yaml foldmethod=indent
au FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
au FileType json setlocal foldmethod=syntax
if executable('rg')
" RipGrep preferred
" per https://vi.stackexchange.com/a/7235
set grepprg=rg\ -S\ --vimgrep
set grepformat^=%f:%l:%c:%m
elseif executable('ag')
" The Silver Searcher also preferred
" https://blog.kiprosh.com/integrating-the-silver-searcher-with-vims-grepprg/
set grepprg=ag\ --nogroup\ --nocolor\ --vimgrep\ $*
set grepformat^=%f:%l:%c:%m
else
" at least search recursively by default >:T
set grepprg=grep\ -nr\ \$\*\ \.
endif
augroup autoquickfix
autocmd!
autocmd QuickFixCmdPost [^l]* cwindow
autocmd QuickFixCmdPost l* lwindow
augroup END
let g:airline#extensions#tabline#enabled = 1
helptags ALL