-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
46 lines (34 loc) · 1.08 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
set incsearch
autocmd FileType perl set number
set hlsearch
set title
set wildmenu
set wildignore=*.dll,*.o,*.obj,*.bak,*.exe,*.pyc,*.jpg,*.gif,*.png " ignore these list file extensions
set wildmode=list:longest " turn on wild mode huge list
syntax on
set ts=2
set sw=4
set bg=light
" Magic stuff
autocmd FileType make setlocal noexpandtab
autocmd BufReadPost svn-commit*.tmp :call Svn_diff()
function! Svn_diff()
silent exe "normal G"
silent r!svn diff
silent exe "1"
endfunction
"special cases regarding tabs
autocmd BufEnter */debian/rules set noet ts=8 sw=8
"whitspaces and tabs in red.
autocmd VimEnter * :call matchadd('Error', '\s\+$', -1) | call matchadd('Error', '\%u00A0')
"set mouse=a
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
Plug 'w0rp/ale'
Plug 'dense-analysis/ale'
call plug#end()