-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
173 lines (138 loc) · 4.16 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
set nocompatible
filetype off
" do neovim python bits first
source ~/.dotfiles/vim/neovim-python.vim
" vim-plug stuff
call plug#begin('~/.vim/plugged')
"Add your bundles here
" ghost text, for firefox text box editing
" Plug 'subnut/nvim-ghost.nvim', {'do': ':call nvim_ghost#installer#install()'}
" unfortunately this gets considered malware by counterstrike, so can't use it
" Colours
" Plug 'altercation/vim-colors-solarized'
Plug 'frankier/neovim-colors-solarized-truecolor-only'
" Plug 'bitterjug/vim-colors-freyr'
"
" status line
Plug 'bling/vim-airline'
Plug 'lambdatoast/elm.vim'
Plug 'neovim/nvim-lspconfig'
" syntax highlighting
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" many languages
Plug 'sheerun/vim-polyglot'
" Plug 'tpope/vim-git'
Plug 'jelera/vim-javascript-syntax', {'for': 'javascript'}
Plug 'pangloss/vim-javascript', {'for': 'javascript'}
Plug 'nathanaelkane/vim-indent-guides'
Plug 'Shutnik/jshint2.vim', {'for': 'javascript'}
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'chikamichi/mediawiki.vim'
" git (and merge)
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
" Plug 'sjl/threesome.vim'
Plug 'gregsexton/gitv'
" functional plugins
" completion
" Or install latest release tag
" Plug 'neoclide/coc.nvim', {'tag': '*', 'do': './install.sh'}
" if has('nvim')
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" else
" Plug 'Shougo/deoplete.nvim'
" Plug 'roxma/nvim-yarp'
" Plug 'roxma/vim-hug-neovim-rpc'
" endif
" python stuff
" Plug 'zchee/deoplete-jedi'
Plug 'klen/python-mode', {'for': 'python', 'branch': 'develop'}
" Plug 'davidhalter/jedi-vim'
Plug 'vim-scripts/Tagbar'
Plug 'averms/black-nvim', {'do': ':UpdateRemotePlugins'}
"Plugin 'tmhedberg/SimpylFold' " might play with this one day
"Plugin 'xolox/vim-misc'
"Plugin 'xolox/vim-easytags'
"Plugin 'jbking/vim-pep8'
" manage buffers and windows
" Plug 'vim-scripts/ZoomWin' - seems broken
Plug 'jeetsukumaran/vim-buffergator'
" Plugin 'rgarver/Kwbd.vim'
Plug 'sjl/clam.vim'
Plug 'benmills/vimux'
" manage files etc
Plug 'scrooloose/nerdtree'
Plug 'kien/ctrlp.vim'
Plug 'mileszs/ack.vim'
Plug 'rking/ag.vim'
" wordpress
" Plug 'vim-scripts/VimRepress'
" editing
Plug 'chrismetcalf/vim-yankring'
Plug 'tpope/vim-unimpaired'
Plug 'scrooloose/nerdcommenter'
" distraction free editing
Plug 'junegunn/goyo.vim'
" Plugin 'ervandew/supertab'
Plug 'sjl/gundo.vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-abolish'
Plug 'tpope/vim-repeat'
Plug 'ap/vim-css-color'
Plug 'Lokaltog/vim-easymotion'
Plug 'chrisbra/NrrwRgn'
" Plug 'SirVer/ultisnips'
Plug 'bronson/vim-visual-star-search'
Plug 'kana/vim-textobj-user'
Plug 'kana/vim-textobj-lastpat'
Plug 'terryma/vim-expand-region'
" email - python 2 only
" Plug 'guyzmo/notmuch-abook'
" org mode and related
" Plug 'hsitz/VimOrganizer'
" Plug 'vim-scripts/utl.vim'
" Plug 'mattn/calendar-vim'
Plug 'bitterjug/vim-notebook'
" utility - python 2 only
" Plug 'mbadran/headlights'
if isdirectory(expand("~/.fzf"))
Plug '~/.fzf'
endif
call plug#end()
filetype plugin indent on " required!
runtime macros/matchit.vim
" bring in some stuff (from janus originally)
"
source ~/.dotfiles/vim/abbrev.vim
source ~/.dotfiles/vim/gui_settings.vim
source ~/.dotfiles/vim/mappings.vim
" this is sourced at the top of the file
" source ~/.dotfiles/vim/python.vim
source ~/.dotfiles/vim/settings.vim
source ~/.dotfiles/vim/statusline.vim
source ~/.dotfiles/vim/treesitter.vim
" do autocmds last to do filetype override of other config
source ~/.dotfiles/vim/autocmds.vim
" ConqueTerm
"nmap <Leader>ct :ConqueTerm bash --login<CR>
" enable powerline
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
" stuff to work with YankRing
nmap <Leader>yr :YRShow<CR>
" plugin specific stuff
"
" ORG Mode
let g:org_capture_file = '~/org_files/mycaptures.org'
command! OrgCapture :call org#CaptureBuffer()
command! OrgCaptureFile :call org#OpenCaptureFile()
" make ack work on ubuntu
let g:ackprg="ack-grep -H --nocolor --nogroup --column"
" Use LSP - python language server
lua << EOF
-- require('lspconfig').pyls_ms.setup{}
require('lspconfig').pyright.setup{}
EOF
" NERD tree
nmap <Leader>n :NERDTreeToggle<cr>