1 " Install vim-plug
2 " # Vim (~/.vim/autoload)
3 " curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
4 " https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
5
6 " Plugins will be downloaded under the specified directory.
7 call plug#begin('~/.vim/plugged')
8
9 " Declare the list of plugins.
10 Plug 'scrooloose/nerdtree'
11 Plug 'majutsushi/tagbar'
12 Plug 'itchyny/lightline.vim'
13 Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
14 Plug 'junegunn/fzf.vim'
15 Plug 'tpope/vim-eunuch'
16 Plug 'rust-lang/rust.vim'
17 Plug 'townk/vim-autoclose'
18 Plug 'vim-syntastic/syntastic'
19 Plug 'arzg/vim-rust-syntax-ext'
20 Plug 'rafi/awesome-vim-colorschemes'
21 Plug 'https://gitlab.com/yorickpeterse/vim-paper.git'
22 Plug 'vim-scripts/AutoComplPop'
23
24 " List ends here. Plugins become visible to Vim after this call.
25 call plug#end()
26
27 nmap ; :Files<CR>
28 " autocmd vimenter * NERDTree
29 map <C-n> :NERDTreeToggle<CR>
30 " apt-get install exuberant-ctags
31 nmap <F8> :TagbarToggle<CR>
32 " GUI settings
33 set guifont=GohuFont\ 10
34 if has('gui_running')
35 autocmd GUIEnter * set vb t_vb=
36 " colorscheme parsec
37 colorscheme seoul256
38 endif
39
40 silent !mkdir -p ~/.vimbk > /dev/null 2>&1
41 set backupdir=$HOME/.vimbk/
42 set directory=$HOME/.vimbk/
43
44 """ Tagbar for Rust
45 let g:tagbar_type_rust = {
46 \ 'ctagstype' : 'rust',
47 \ 'kinds' : [
48 \'T:types,type definitions',
49 \'f:functions,function definitions',
50 \'g:enum,enumeration names',
51 \'s:structure names',
52 \'m:modules,module names',
53 \'c:consts,static constants',
54 \'t:traits',
55 \'i:impls,trait implementations',
56 \]
57 \}
58
59 """ Tagbar for Perl
60 let g:tagbar_type_perl = {
61 \ 'ctagstype' : 'perl',
62 \ 'kinds' : [
63 \ 'p:package:0:0',
64 \ 'w:roles:0:0',
65 \ 'e:extends:0:0',
66 \ 'u:uses:0:0',
67 \ 'r:requires:0:0',
68 \ 'o:ours:0:0',
69 \ 'a:properties:0:0',
70 \ 'b:aliases:0:0',
71 \ 'h:helpers:0:0',
72 \ 's:subroutines:0:0',
73 \ 'd:POD:1:0'
74 \ ]
75 \ }
76
77 " Lightline config
78 set laststatus=2
79 set number
80
81 if !has('gui_running')
82 set t_Co=256
83 endif
84
85 if has('gui_running')
86 set guifont=Envy\ Code\ R\ Regular\ 10
87 endif
88
89 let g:lightline = {
90 \ 'colorscheme': 'seoul256',
91 \ }