-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVimrc
59 lines (50 loc) · 1.65 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
set modeline
set modelines=5
"set backspace=2
function ConfigurePlugin(name)
autocmd! User a:name execute "source " . GetConfFileName(a:name)
endfunction
function GetConfFileName(name)
return "~/.vim/Vimrc." . a:name . ".vim"
endfunction
" https://github.com/junegunn/vim-plug
call plug#begin('~/.vim/plugged')
Plug 'w0rp/ale', {'for': ['python', 'c', 'sh']}
autocmd! User ale execute "source " . GetConfFileName('ale')
"Plug 'konfekt/fastfold'
"autocmd! User fastfold.vim source ~/.vim/Vimrc.fastfold.vim
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
"Plug 'plytophogy/vim-virtualenv'
Plug 'airblade/vim-gitgutter'
Plug 'alvan/vim-closetag', {'for': ['html', 'xhtml', 'xml']}
Plug 'vim-scripts/ctags.vim', {'for': ['python', 'c', 'cpp']}
autocmd! User ctags.vim execute "source " . GetConfFileName('ctags')
Plug 'alfredodeza/pytest.vim', {'for': 'python'}
Plug 'mgedmin/pythonhelper.vim', {'for': 'python'}
"Plug 'python-mode/python-mode', {'for': 'python'}
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
" airline
Plug 'vim-airline/vim-airline'
autocmd! User airline execute "source " . GetConfFileName('airline')
Plug 'vim-airline/vim-airline-themes'
Plug 'edkolev/tmuxline.vim'
Plug 'majutsushi/tagbar'
" Other pluging I had with pathogen
" FastFold
" jedi-vim
" robotframework-vim
" vim-puppet
" vim-terraform
" vimagit
call plug#end()
" PlugInstall
" Vim jump to the last position whenreopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
source ~/.vim/Vimrc.airline.vim
nmap <F8> :TagbarToggle<CR>