-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
610 lines (532 loc) · 18.1 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.Vim/
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.Vim'
" My Plugins here:
"
" original repos on github
" Plugin 'tpope/vim-commentary'
" Comments lines on pressing \\\ (3 times \)
Plugin 'scrooloose/nerdcommenter'
" Comments by <leader>cc
Plugin 'python-mode/python-mode'
"Plugin 'nvie/vim-flake8'
" Provides pylint, flake8, python key binding, etc.
Plugin 'vim-syntastic/syntastic'
" Syntax checks
Plugin 'tpope/vim-fugitive'
" Git plugin
Plugin 'motemen/git-vim'
" Git commands
Plugin 'dkprice/vim-easygrep'
" Grep plugin
Plugin 'scrooloose/nerdtree'
" Filesystem manipulation
Plugin 'ctrlpvim/ctrlp.vim'
" Find files on Ctrl+P press
"Plugin 'Lokaltog/vim-powerline.git'
Plugin 'itchyny/lightline.vim'
" Better status line
"Plugin 'tpope/vim-unimpaired'
" -- Navigate quickfix list with ]q and ]Q
Plugin 'majutsushi/tagbar'
" Show tags in source file
" -- Plugin 'kien/tabman.vim'
" work with tabs from keyboard - <leader>mf <leader>mt
Plugin 'altercation/vim-colors-solarized'
" Solarized color scheme
" Plugin 'dracula/vim'
" Dracula color scheme
" Plugin 'tomasr/molokai'
" Molokai colorscheme
" Plugin 'VOoM'
" Outline plugin for asciidoc, etc.
" Plugin 'mileszs/ack.vim'
" Helper to use ack command from inside vim
Plugin 'Raimondi/delimitMate'
" Autoclose ",brackets
Plugin 'mbbill/undotree'
" Plugin 'goldfeld/vim-seek'
Plugin 'justinmk/vim-sneak'
" Adds s/S navigation
" Mutiline s/S navigation
" Plugin 'Valloric/YouCompleteMe'
Plugin 'airblade/vim-gitgutter'
" Shows git changes in gutter column
Plugin 'jistr/vim-nerdtree-tabs'
" same Nerdtree in all tabs
" Plugin 'Shougo/vimproc.vim'
" async execution, required for Unite
" Plugin 'Shougo/unite.vim'
" united search
"Plugin 'gregsexton/gitv'
Plugin 'junegunn/gv.vim'
" Git log viewer
Plugin 'Yggdroot/indentLine'
" Show vertical lines at indentation level
"Plugin 'dannyob/quickfixstatus'
" Show errors in last line
" Plugin 'idanarye/vim-merginal'
" View git branches
Plugin 'tmux-plugins/vim-tmux-focus-events'
" Allows pasting in terminal w/o set paste
Plugin 'fatih/vim-go'
" Golang in vim
Plugin 'jnurmine/Zenburn'
" Coloscheme
if has('nvim')
Plugin 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plugin 'Shougo/deoplete.nvim'
endif
" Code completion
"Plugin 'Shougo/neosnippet'
"Plugin 'Shougo/neosnippet-snippets'
" --Plugin 'tacahiroy/ctrlp-funky'
" CtrlP for functions
Plugin 'kshenoy/vim-signature'
" Show marks in gutter
Plugin 'mhinz/vim-startify'
"Plugin 'SirVer/ultisnips'
" Snippets
"Plugin 'ervandew/supertab'
" expand everything by tab
" Plugin 'rust-lang/rust.vim'
" Rust language support
"Plugin 'xolox/vim-misc'
"Plugin 'xolox/vim-easytags'
" Autogenerate tags
Plugin 'pangloss/vim-javascript'
Plugin 'dracula/vim'
Plugin 'tpope/vim-dispatch'
Plugin 'lmintmate/blue-mood-vim'
Plugin 'dylanaraps/wal.vim'
Plugin 'liuchengxu/space-vim-dark'
"Plugin 'liuchengxu/vim-clap', { 'do': function('clap#helper#build_all') }
" Bazel support
"Plugin 'google/vim-maktaba'
"Plugin 'bazelbuild/vim-bazel'
call vundle#end()
filetype plugin indent on
:syntax on
set nocompatible
set softtabstop=4
set shiftwidth=4
set tabstop=4
set expandtab
set autoindent
set showmatch
"set synmaxcol=150 " Show syntax colors only for 150 chars in line
set autoread
set fillchars+=vert:\|
let g:is_posix=1
let mapleader = "\<Space>"
set wildmenu
set wildmode=list:longest,full
set t_Co=256 " Explicitly tell vim that the terminal has 256 colors
" Attempting to speedup raspberry
set re=1
set ttyfast
set lazyredraw
" let g:Powerline_colorscheme="default_mod.vim"
" let g:Powerline_symbols="unicode"
" let g:Powerline_stl_path_style="relative"
set background=dark
let base16colorspace=256 " Access colors present in 256 colorspace"
"colorscheme zenburn
" colorscheme wombat
"colorscheme solarized
colorscheme dracula
" colorscheme lunaperche
"colorscheme blue-mood
" colorscheme zenburn
" colorscheme skeletor
" colorscheme solarized
" colorscheme dracula
" colorscheme molokai
" colorscheme dracula
"
" let g:rehash256 = 1 " Molokai specific setting"
"colorscheme space-vim-dark
if has('gui_running')
" set gfn=Liberation\ Mono\ Bold\ 10
" set guioptions-=m " remove the menubar
set guioptions-=T " remove the toolbar
set gfn=Source\ Code\ Pro\ for\ Powerline\ Semi-Bold\ 11
" set gfn=Consolas\ 10
" set gfn=Bitstream\ Vera\ Sans\ Mono\ for\ Powerline\ 9
set lines=999
set columns=999
winpos 1 1
map <silent> <S-Insert> "+p
imap <silent> <S-Insert> <Esc>"+pa
" let g:Powerline_symbols = 'fancy'
" colorscheme solarized
set listchars=tab:»·,trail:·
else
" colorscheme wombat
hi CursorLine cterm=NONE ctermbg=8
set listchars=tab:»·,trail:·
endif
" highlight Pmenu guibg=RoyalBlue
filetype on
set nu
" set rnu
set nobackup
set ruler " show the ruler
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%)%{fugitive#statusline()} " a ruler on steroids
set showcmd " show partial commands in status line and
set laststatus=2 " Always show the statusline
set backspace=indent,eol,start
set incsearch " find as you type search
set hlsearch " highlight search terms
set scrolloff=3 " minimum lines to keep above and below cursor
set nofoldenable
set foldmethod=manual
noremap <silent> <C-Up> :<C-U>ObviousResizeUp<CR>
noremap <silent> <C-Down> :<C-U>ObviousResizeDown<CR>
noremap <silent> <C-Left> :<C-U>ObviousResizeLeft<CR>
noremap <silent> <C-Right> :<C-U>ObviousResizeRight<CR>
let g:easytags_async = 1
let g:easytags_autorecurse = 0
let g:easytags_python_enabled = 1
" Options for Pylint-mode
" let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0232,E1120,R0903,R0904,R0913,R0914,W0622'
let g:PyLintCWindow = 1
" let g:PyLintSigns = 1
let g:PyLintOnWrite = 1
let g:PyLintOnOpen = 0
let NERDTreeIgnore = ['\.pyc$', '\.class$']
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
function! TrimWhiteSpace()
%s/\s\+$//e
endfunction
autocmd BufWritePre *.sh call TrimWhiteSpace()
autocmd BufWritePre *.py call TrimWhiteSpace()
autocmd BufWritePre *.js call TrimWhiteSpace()
autocmd BufWritePre *.yaml call TrimWhiteSpace()
autocmd BufWritePre *.html call TrimWhiteSpace()
autocmd BufWritePre *.groovy call TrimWhiteSpace()
"autocmd BufWritePost *.py call Flake8()
autocmd FileType groovy let b:dispatch = '/home/sabuser/src/scom-pipeline-library/cd/lint.sh'
au BufRead *.groovy try | execute "compiler groovy" | catch /./| endtry
" CtrlP settings
set wildignore+=*.sw*,*.pyc,*.class
" search by filename only
" let g:ctrlp_by_filename = 1
" reverse sort for match window
let g:ctrlp_match_window_reversed = 1
let g:ctrlp_nerdtree_keys = 1
" search in dotfiles
" let g:ctrlp_dotfiles = 1
" ask where to open file
" let g:ctrlp_arg_map = 1
"'Recursive mode'for EasyGrep
set grepprg=grep
let g:EasyGrepRecursive = 1
let g:EasyGrepCommand = 1
let g:EasyGrepFilesToExclude = ".git"
let g:EasyGrepFilesToExclude=".git,*.tar*,*.zip,tags"
" This command will open all grep results in quickfix window
autocmd QuickFixCmdPost *grep* cwindow
"let g:pymode_debug = 1
let g:pymode = 1
let g:pymode_python = 'python'
let g:pymode_python_version = '2.7.3'
let g:pymode_options_max_line_length = 79
let g:pymode_indent = 1
let g:pymode_motion = 1
let g:pymode_virtualenv = 1
let g:pymode_run = 0
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_bind = '<leader>b'
let g:pymode_lint = 0
let g:pymode_lint_on_write = 0
let g:pymode_lint_options_pylint = "$HOME/.pylintrc"
let g:pymode_lint_onfly = 0
let g:pymode_lint_message = 1
let g:pymode_lint_checkers = ['pyflakes', 'pycodestyle', 'pep8']
let g:pymode_lint_ignore = ["C901"]
let g:pymode_lint_options_mccabe = { 'complexity': 12 }
" Disable showing Python docs on K
let g:pymode_doc = 0
let g:pymode_folding = 0
let g:pymode_rope = 0
let g:pymode_rope_completion = 0
let g:pymode_rope_complete_on_dot = 0
let g:pymode_syntax = 1
let g:pymode_syntax_slow_sync = 1
let g:pymode_syntax_all = 1
"" vim-go
set autowrite
let g:go_fmt_command = "goimports"
let g:go_highlight_types = 1
let g:go_list_type = "quickfix"
let g:go_auto_type_info = 1
autocmd FileType go nmap <leader>gi <Plug>(go-install)
" Fugitive
nnoremap <leader>gg :Gstatus<CR>
nnoremap <leader>ga :Gwrite<CR>
nnoremap <leader>gc :Gcommit %<CR>
nnoremap <leader>gd :Gdiff<CR>
nnoremap <leader>gl :Glog<CR>
nnoremap <leader>gr :Gremove<CR>
nnoremap <leader>gpl :GitPullRebase<CR>
nnoremap <leader>gps :GitPush<CR>
nnoremap <leader>gm :Merginal<CR>
nnoremap <leader>x :ccl<CR>
nnoremap <leader>z :NERDTreeMirrorToggle<CR>
nnoremap <leader>t :TagbarToggle<CR>
nnoremap <leader>y :tabprev<CR>
nnoremap <leader>u :tabfirst<CR>
nnoremap <leader>i :tablast<CR>
nnoremap <leader>o :tabnext<CR>
" nnoremap <leader>s :Shell<CR>
nnoremap <leader>w :w<CR>
nnoremap <leader>u :UndotreeToggle<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>l :wincmd l<CR>
nnoremap <silent> <C-S> :if expand("%") == ""<CR>browse confirm w<CR>else<CR>confirm w<CR>endif<CR>
imap <c-s> <c-o><c-s>
command Q q
command W w
command Qa qa
cnoreabbrev X x
" inoremap <Up> <NOP>
" inoremap <Down> <NOP>
" inoremap <Left> <NOP>
" inoremap <Right> <NOP>
" noremap <Up> <NOP>
" noremap <Down> <NOP>
" noremap <Left> <NOP>
" noremap <Right> <NOP>
" set colorcolumn=79,90,120
" highlight ColorColumn ctermbg=17
" Unite stuff
let g:unite_data_directory='~/.vim/.cache/unite'
let g:unite_enable_start_insert=0
let g:unite_source_history_yank_enable=1
let g:unite_source_rec_max_cache_files=5000
let g:unite_prompt='» '
" call unite#custom#source('file,file/new,buffer,file_rec/async', 'matchers', 'matcher_fuzzy')
"nnoremap <silent> <leader><space> :<C-u>Unite -toggle -auto-resize -buffer-name=mixed file_rec/async buffer file_mru bookmark<cr><c-u>
nnoremap <silent> <leader><space>f :<C-u>Unite -toggle -auto-resize -buffer-name=files file_rec/async<cr><c-u>
nnoremap <silent> <leader><space>y :<C-u>Unite -buffer-name=yanks history/yank<cr>
nnoremap <silent> <leader><space>l :<C-u>Unite -auto-resize -buffer-name=line line<cr>
nnoremap <silent> <leader><space>b :<C-u>Unite -auto-resize -buffer-name=buffers buffer<cr>
nnoremap <silent> <leader><space>/ :<C-u>Unite -no-quit -buffer-name=search grep:.<cr>
nnoremap <silent> <leader><space>m :<C-u>Unite -auto-resize -buffer-name=mappings mapping<cr>
nnoremap <silent> <leader><space>s :<C-u>Unite -quick-match buffer<cr>
" vp doesn't replace paste buffer
function! RestoreRegister()
let @" = s:restore_reg
return ''
endfunction
function! s:Repl()
let s:restore_reg = @"
return "p@=RestoreRegister()\<cr>"
endfunction
vmap <silent> <expr> p <sid>Repl()
let g:indentLine_char = '·'
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark'] ],
\ 'right': [ [ 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]
\ },
\ 'component_function': {
\ 'fugitive': 'LightLineFugitive',
\ 'filename': 'LightLineFilename',
\ 'fileformat': 'LightLineFileformat',
\ 'filetype': 'LightLineFiletype',
\ 'fileencoding': 'LightLineFileencoding',
\ 'mode': 'LightLineMode',
\ 'ctrlpmark': 'CtrlPMark',
\ },
\ 'subseparator': { 'left': '|', 'right': '|' }
\ }
function! LightLineModified()
return &ft =~ 'help' ? '' : &modified ? '+' : &modifiable ? '' : '-'
endfunction
function! LightLineReadonly()
return &ft !~? 'help' && &readonly ? 'RO' : ''
endfunction
function! LightLineFilename()
let fname = expand('%:t')
return fname == 'ControlP' && has_key(g:lightline, 'ctrlp_item') ? g:lightline.ctrlp_item :
\ fname == '__Tagbar__' ? g:lightline.fname :
\ fname =~ '__Gundo\|NERD_tree' ? '' :
\ &ft == 'vimfiler' ? vimfiler#get_status_string() :
\ &ft == 'unite' ? unite#get_status_string() :
\ &ft == 'vimshell' ? vimshell#get_status_string() :
\ ('' != LightLineReadonly() ? LightLineReadonly() . ' ' : '') .
\ ('' != fname ? fname : '[No Name]') .
\ ('' != LightLineModified() ? ' ' . LightLineModified() : '')
endfunction
function! LightLineFugitive()
try
if expand('%:t') !~? 'Tagbar\|Gundo\|NERD' && &ft !~? 'vimfiler' && exists('*fugitive#head')
let mark = '' " edit here for cool mark
let branch = fugitive#head(8)
return branch !=# '' ? mark.branch : ''
endif
catch
endtry
return ''
endfunction
function! LightLineFileformat()
return winwidth(0) > 70 ? &fileformat : ''
endfunction
function! LightLineFiletype()
return winwidth(0) > 70 ? (&filetype !=# '' ? &filetype : 'no ft') : ''
endfunction
function! LightLineFileencoding()
return winwidth(0) > 70 ? (&fenc !=# '' ? &fenc : &enc) : ''
endfunction
function! LightLineMode()
let fname = expand('%:t')
return fname == '__Tagbar__' ? 'Tagbar' :
\ fname == 'ControlP' ? 'CtrlP' :
\ fname == '__Gundo__' ? 'Gundo' :
\ fname == '__Gundo_Preview__' ? 'Gundo Preview' :
\ fname =~ 'NERD_tree' ? 'NERDTree' :
\ &ft == 'unite' ? 'Unite' :
\ &ft == 'vimfiler' ? 'VimFiler' :
\ &ft == 'vimshell' ? 'VimShell' :
\ winwidth(0) > 60 ? lightline#mode() : ''
endfunction
function! CtrlPMark()
if expand('%:t') =~ 'ControlP' && has_key(g:lightline, 'ctrlp_item')
call lightline#link('iR'[g:lightline.ctrlp_regex])
return lightline#concatenate([g:lightline.ctrlp_prev, g:lightline.ctrlp_item
\ , g:lightline.ctrlp_next], 0)
else
return ''
endif
endfunction
let g:ctrlp_status_func = {
\ 'main': 'CtrlPStatusFunc_1',
\ 'prog': 'CtrlPStatusFunc_2',
\ }
function! CtrlPStatusFunc_1(focus, byfname, regex, prev, item, next, marked)
let g:lightline.ctrlp_regex = a:regex
let g:lightline.ctrlp_prev = a:prev
let g:lightline.ctrlp_item = a:item
let g:lightline.ctrlp_next = a:next
return lightline#statusline(0)
endfunction
function! CtrlPStatusFunc_2(str)
return lightline#statusline(0)
endfunction
let g:tagbar_status_func = 'TagbarStatusFunc'
function! TagbarStatusFunc(current, sort, fname, ...) abort
let g:lightline.fname = a:fname
return lightline#statusline(0)
endfunction
let g:unite_force_overwrite_statusline = 0
let g:vimfiler_force_overwrite_statusline = 0
let g:vimshell_force_overwrite_statusline = 0
" Disable preview window on completion
set completeopt-=preview
"
" YouCompleteMe
let g:ycm_complete_in_comments = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_add_preview_to_completeopt = 0
" Neocomplete
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplete.
let g:neocomplete#enable_at_startup = 1
" Use smartcase.
let g:neocomplete#enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplete#sources#syntax#min_keyword_length = 3
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
" Define keyword.
if !exists('g:neocomplete#keyword_patterns')
let g:neocomplete#keyword_patterns = {}
endif
let g:neocomplete#keyword_patterns['default'] = '\h\w*'
" Plugin key-mappings.
inoremap <expr><C-g> neocomplete#undo_completion()
inoremap <expr><C-l> neocomplete#complete_common_string()
" Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <silent><CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
"return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
" For no inserting <CR> key.
return pumvisible() ? "\<C-y>" : "\<CR>"
endfunction
" <TAB>: completion.
" use tab to forward cycle
inoremap <silent><expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
" use tab to backward cycle
inoremap <silent><expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>""
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
"imap <expr><TAB> pumvisible() ? "\<C-n>" : neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
" AutoComplPop like behavior.
"let g:neocomplete#enable_auto_select = 1
let g:neocomplete#enable_refresh_always = 1
" Enable omni completion.
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
" Enable heavy omni completion.
if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns = {}
endif
" pytest conversion macros
let @e = '^cf(assert f,xi ==Akbj'
let @t = '^cf(assert Akb is Truej'
let @i = '^ct(assert isinstanceA is Truej'
let @r = '^ssect(pytest.raises'
" CtrlP-funky
" nnoremap <Leader>fu :CtrlPFunky<Cr>
" Format Rust code on save
let g:rustfmt_autosave = 1
"nnoremap <Leader>fu :CtrlPFunky<Cr>
" Clap-vim
nnoremap <Leader>n :Clap<CR>
" NERDCommenter
" Align line-wise comment delimiters flush left instead of following code
" indentation
let g:NERDDefaultAlign = 'left'
" Allow commenting and inverting empty lines (useful when commenting a region)
let g:NERDCommentEmptyLines = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1
" Load matchit.vim, but only if the user hasn't installed a newer version.
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
runtime! macros/matchit.vim
endif
augroup ProjectSetup
au BufRead,BufEnter /home/aleksey/src/AlexaPi/* set noet ci pi sts=0 sw=4 ts=4
augroup END
" DelimitMate
let delimitMate_backspace = 1
let delimitMate_backspace = 1
" fix for neocomplete and delimitmate handling of <BS>
inoremap <expr> <BS> pumvisible() ? neocomplete#smart_close_popup()."\<BS>" : delimitMate#BS()
let g:go_version_warning = 0
let g:startify_change_to_dir = 0
let g:startify_change_to_vcs_root = 1
let g:startify_change_to_vcs_root = 1
let g:startify_change_to_dir = 0
let g:deoplete#enable_at_startup = 1