-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_vimrc-plugin
104 lines (88 loc) · 2.9 KB
/
_vimrc-plugin
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
" vimrc for when all plugins are installed
filetype off " Required!
" It is assumed that we have vim-plug installed
" REQUIRED FOR LOADING PLUGINS!
" Vim plug
call plug#begin()
Plug 'shussain/vim-matchit'
Plug 'mhinz/vim-startify'
Plug 'bling/vim-airline'
Plug 'godlygeek/tabular'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'majutsushi/tagbar'
Plug 'ludovicchabant/vim-gutentags'
Plug 'xuhdev/vim-latex-live-preview'
Plug 'junegunn/goyo.vim'
Plug 'scrooloose/nerdtree'
Plug 'mbbill/undotree'
Plug 'jamessan/vim-gnupg'
Plug 'flazz/vim-colorschemes'
Plug 'gko/vim-coloresque'
Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-dadbod'
Plug 'vim-scripts/a.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'rodjek/vim-puppet'
Plug 's3rvac/vim-syntax-redminewiki'
Plug 'scrooloose/syntastic'
Plug 'dense-analysis/ale'
Plug 'benmills/vimux'
Plug 'joshukraine/dragvisuals'
Plug 'severin-lemaignan/vim-minimap'
Plug 'subnut/nvim-ghost.nvim'
Plug 'dracula/vim'
call plug#end()
" NerdTree app
:nmap <Leader>n <Esc>:NERDTree $HOME/project
let NERDTreeIgnore=['.vim$', '\~$', '.*\.pyc$']
" Remap for Undotree
nmap <F3> :UndotreeToggle<CR>
" Remap for Tagbar
nmap <F4> :TagbarToggle<CR>
" Remap for Goyo
nmap <F5> :Goyo<CR>
" Remap for vim-latex-live-preview
nmap <F7> <Esc>:LLPStartPreview<CR>
" ctrl-p
let g:ctrlp_map = ',p'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_follow_symlinks = '1'
let g:ctrlp_switch_buffer = 'O'
set wildignore+=*/tmp/*,*.so,*.swp,*.pyc
nnoremap <Leader>b <Esc>:CtrlPBuffer<CR>
" Vimux
map <Leader>vp :VimuxPromptCommand<CR>
map <Leader>vm :VimuxPromptCommand("make ")<CR>
map <Leader>vl :VimuxRunLastCommand<CR>
" Drag visual configuration
runtime plugin/dragvisuals.vim
vmap <expr> h DVB_Drag('left')
vmap <expr> l DVB_Drag('right')
vmap <expr> j DVB_Drag('down')
vmap <expr> k DVB_Drag('up')
vmap <expr> D DVB_Duplicate()
" Syntastic configuration
set statusline+=%#errormsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
let g:syntastic_puppet_checkers=['puppet-lint']
let g:syntastic_yaml_checkers = ['yamllint']
let g:syntastic_quiet_messages = { "level": "warnings" }
" ALE configuration
let g:ale_enabled = 0
let g:airline#extensions#ale#enabled = 1 " Set Airline will handle the rest.
" Conque-GDB configuration
let g:ConqueTerm_Color = 0 " No terminal color
let g:ConqueTerm_CloseOnEnd = 1 " close Conque when program ends running
let g:ConqueTerm_StartMessages = 0 " display warning messages if ConqueTerm is configured incorrectly
let g:ConqueGdb_Leader = ';'
" Specify colour scheme
colorscheme dracula