-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
175 lines (143 loc) · 4.15 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
174
175
".vo"""""""""""""""""""""""
" junegunn/vim-plugged "
""""""""""""""""""""""""
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-master branch
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' }
" Plugin options
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
"airline"
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
"monokai"
Plug 'lsdr/monokai'
"transparent background
Plug 'miyakogi/seiya.vim'
" complete completion
" Plug 'Valloric/YouCompleteMe'
" cheat sheet"
Plug 'lifepillar/vim-cheat40'
"git integration
Plug 'tpope/vim-fugitive'
"latex
Plug 'vim-latex/vim-latex', { 'on': 'LATEXToggle' }
"java
Plug 'artur-shaik/vim-javacomplete2'
" javascript mode
Plug 'pangloss/vim-javascript'
" xml mode
Plug 'sukima/xmledit/'
" Autocomplete
Plug 'Shougo/neocomplcache.vim'
" Vue mode
Plug 'posva/vim-vue'
" Markdown mode
Plug 'plasticboy/vim-markdown'
" Linting
Plug 'vim-syntastic/syntastic'
" vim-autoclose
Plug 'Townk/vim-autoclose'
" vim-surround
Plug 'git://github.com/tpope/vim-surround.git'
" Initialize plugin system
call plug#end()
" formatting and highlight groups
:highlight ExtraWhitespace ctermbg=red guibg=red
:autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
:match ExtraWhitespace /\s\+$/
filetype plugin on
filetype indent on
let g:tex_flavor='latex'
set sw=2
set iskeyword+=:
set nocompatible "usually only needed for system-wide configs
filetype on
set modifiable
set nu
set nowrap
set tabstop=3
set expandtab
set backspace=indent,eol,start
set autoindent
set copyindent
set shiftwidth=3
set shiftround
set showmatch
set smartcase
set smarttab
set hlsearch
set incsearch
set undolevels=1000
set history=1000
set nobackup
set noswapfile
set pastetoggle=<F2>
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
" Mapleadercommands
let mapleader=","
:map <leader>n :vsp<cr>
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
nmap <silent> ,/ :nohlsearch<CR>
:nnoremap <leader>O O<Esc>
:nnoremap <leader>o o<Esc>
" insert newline without entering insert mode
"Latex"
"g:Tex_DefaultTargetFormat=pdf
"g:Tex_CompileRule_pdf='pdflatex -interaction=nonstopmode $*'
"g:Tex_ViewRule_pdf='xpdf'
"
""""""""""""""""""""""""""
"" Vim Airline Settings "
"""""""""""""""""""""""""
let g:airline#extensions#tabline#enabled=1
let g:airline_theme='molokai'
"""""""""""""""""""""
" Colors and syntax "
"""""""""""""""""""""
syntax enable
colorscheme monokai
hi Normal guibg=NONE ctermbg=NONE
let g:seiya_auto_enable=1
"javacomplete required settings
autocmd FileType java setlocal omnifunc=javacomplete#Complete
nmap <F4> <Plug>(JavaComplete-Imports-AddSmart)
imap <F4> <Plug>(JavaComplete-Imports-AddSmart)
nmap <F5> <Plug>(JavaComplete-Imports-Add)
imap <F5> <Plug>(JavaComplete-Imports-Add)
nmap <F6> <Plug>(JavaComplete-Imports-AddMissing)
imap <F6> <Plug>(JavaComplete-Imports-AddMissing)
nmap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
imap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
" Linting Eslint
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
:nnoremap <leader>e :SyntasticCheck<Esc>
:nnoremap <leader>t :NERDTreeToggle<Esc>
:nnoremap <leader>w :w<Esc>
:nnoremap <leader>x :x<Esc>
:nnoremap <leader>q :q!<Esc>
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = 'eslint'