-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc.full.bundles.vimrc
More file actions
1015 lines (833 loc) · 34.9 KB
/
vimrc.full.bundles.vimrc
File metadata and controls
1015 lines (833 loc) · 34.9 KB
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
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
set nocompatible " be iMproved, required
filetype off " required
""set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
if empty($DOTVIM_SKIP_BUNDLES)
call vundle#begin(g:bundlepath)
else
" return
function Bundle(uri)
endfunction
endif
"let Vundle manage Vundle, required
" Bundle -- Vim bundle manager [help bundle]
Bundle 'https://github.com/gmarik/Vundle.vim'
" :BundleList - list configured plugins
" :BundleInstall(!) - install (update) plugins
" :BundleSearch(!) foo - search (or refresh cache first) for foo
" :BundleClean(!) - confirm (or auto-approve) removal of unused plugins
"
"" " The following are examples of different formats supported.
"" " Keep Bundle commands between vundle#begin/end.
"" " plugin on GitHub repo
"" Bundle 'tpope/vim-fugitive'
"" " plugin from http://vim-scripts.org/vim/scripts.html
"" Bundle 'L9'
"" " Git plugin not hosted on GitHub
"" Bundle 'git://git.wincent.com/command-t.git'
"" " git repos on your local machine (i.e. when working on your own plugin)
"" Bundle 'file:///home/gmarik/path/to/plugin'
"" " The sparkup vim script is in a subdirectory of this repo called vim.
"" " Pass the path to set the runtimepath properly.
"" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
"" " Avoid a name conflict with L9
"" Bundle 'user/L9', {'name': 'newL9'}
" The Bundle URLs are intentionally complete https URLs
" * grep '^Bundle \'' vimrc.bundles
" * sed -i 's\https://github.com/\ssh://git@github.com/\g'
"mrswin.vim -- normal Ctrl-C, Ctrl-A, Ctrl-X, Ctrl-V
"Bundle 'https://github.com/vim-scripts/mrswin.vim'
" venv.vim -- venv CdAlias commands
Bundle 'https://github.com/westurner/venv.vim'
" :Cdhome -- Cd_HOME()
" :Cdh -- Cd_HOME()
" :Cdwrk -- Cd___WRK()
" :Cddotfiles -- Cd___DOTFILES()
" :Cdd -- Cd___DOTFILES()
" :Cdprojecthome -- Cd_PROJECT_HOME()
" :Cdp -- Cd_PROJECT_HOME()
" :Cdph -- Cd_PROJECT_HOME()
" :Cdworkonhome -- Cd_WORKON_HOME()
" :Cdwh -- Cd_WORKON_HOME()
" :Cdve -- Cd_WORKON_HOME()
" :Cdcondahome -- Cd_CONDA_HOME()
" :Cda -- Cd_CONDA_HOME()
" :Cdce -- Cd_CONDA_HOME()
" :Cdvirtualenv -- Cd_VIRTUAL_ENV()
" :Cdv -- Cd_VIRTUAL_ENV()
" :Cdsrc -- Cd__SRC()
" :Cds -- Cd__SRC()
" :Cdwrd -- Cd__WRD()
" :Cdw -- Cd__WRD()
" :Cdbin -- Cd__BIN()
" :Cdb -- Cd__BIN()
" :Cdetc -- Cd__ETC()
" :Cde -- Cd__ETC()
" :Cdlib -- Cd__LIB()
" :Cdl -- Cd__LIB()
" :Cdlog -- Cd__LOG()
" :Cdpylib -- Cd__PYLIB()
" :Cdpysite -- Cd__PYSITE()
" :Cdsitepackages -- Cd__PYSITE()
" :Cdvar -- Cd__VAR()
" :Cdwww -- Cd__WWW()
" :Cdww -- Cd__WWW()
" file_line.vim -- open files named 'file(line[:col])', 'file:line[:col]'
Bundle 'https://github.com/bogado/file-line'
" vimpager -- vimpager and vimcat [help vimpager]
Bundle 'https://github.com/rkitover/vimpager'
" Info.vim -- vim infopages in vim [help info]
Bundle 'https://github.com/vim-scripts/info.vim'
" :Info sed -- view infopage for 'sed'
" <Space> -- Scroll forward (page down).
" <Backspace> -- Scroll backward (page up).
" <Tab> -- Move cursor to next hyperlink within this node.
" <Enter>,<C-]> -- Follow hyperlink under cursor.
" ;,<C-T> -- Return to last seen node.
" .,> -- Move to the "next" node of this node.
" p,< -- Move to the "previous" node of this node.
" u -- Move "up" from this node.
" d -- Move to "directory" node.
" t -- Move to the Top node.
" <C-S> -- Search forward within current node only.
" s -- Search forward through all nodes for a specified
" string.
" q -- Quit browser.
"
" Netrw -- new netrw [pi_netrw]
Bundle 'https://github.com/eiginn/netrw'
"Netrw -- old netrw [pi_netrw]
"Bundle 'https://github.com/vim-scripts/netrw.vim/'
" Signify -- show git/hg file changes in gutter [help signify]
Bundle 'https://github.com/mhinz/vim-signify'
" <leader>gt -- SignifyToggle
nnoremap <leader>gt <Esc>:SignifyToggle<CR>
" <leader>gh -- SignifyToggleHighlight
nnoremap <leader>gh <Esc>:SignifyToggleHighlight<CR>
" <leader>gr -- SignifyRefresh
nnoremap <leader>gr <Esc>:SignifyRefresh<CR>
" <leader>gd -- SignifyDebug
nnoremap <leader>gd <Esc>:SignifyDebug<CR>
" hunk jumping
" <leader>gj -- signify-next-hunk
nmap <leader>gj <plug>(signify-next-hunk)
" <leader>gk -- signify-prev-hunk
nmap <leader>gk <plug>(signify-prev-hunk)
" hunk text object
" ic -- signify inner textobj
omap ic <plug>(signify-motion-inner-pending)
xmap ic <plug>(signify-motion-inner-visual)
" ac -- signify outer textobj
omap ac <plug>(signify-motion-outer-pending)
xmap ac <plug>(signify-motion-outer-visual)
" Fugitive -- Git commands and statusline display [help fugitive]
Bundle 'https://github.com/tpope/vim-fugitive'
" Lawrencium -- Hg commands [help lawrencium]
Bundle 'https://github.com/ludovicchabant/vim-lawrencium'
" NERDTree -- File browser [help NERDTree]
Bundle 'https://github.com/scrooloose/nerdtree'
" <Leader>e -- toggle NERDTree
" ctrl-e -- toggle NERDTree
" <Leader>E -- open nerdtree to current file (:NERDTreeFind %:p:h)
" ctrl-E -- open nerdtree to current file (:NERDTreeFind %:p:h)
" I -- toggle view hidden files
" B -- toggle view bookmarks
" cd -- set vim CWD to selected dir
" C -- refocus view to selected dir
" o -- open
" r -- refresh dir
" R -- refresh root
" t -- open in new tab
" T -- open in new tab silently
" u -- up a dir
" U -- up a dir and leave open
" x -- close node
" X -- close all nodes recursive
" ? -- toggle help
let g:NERDTreeDirArrows=0 "compat with old NERDTree installed
"let g:NERDTreeBookmarksFile = "~/workspace/.bookmarks"
"Single click
let NERDTreeMouseMode=1
"Netrw in NERDTree
let NERDTreeHijackNetrw=1
map <silent> <C-e> <Esc>:NERDTreeToggle<CR>
nnoremap <silent> <Leader>e <Esc>:NERDTreeToggle<CR>
"map <silent> <C-t> <Esc>:tabnew +:NERDTreeMirror<CR>
"nnoremap <C-B> <Esc>:Bookmark "
let g:nerdtree_plugin_open_cmd = "xdg-open"
" FindInNERDTree -- NERDTree show current file [help NERDTreeFind]
" (NERDTree now includes :NERDTreeFind)
" Bundle 'https://github.com/dmcinnes/FindInNERDTree'
nnoremap <Leader>E <Esc>:NERDTreeFind "%:p:h"<CR>
"Bundle 'https://github.com/itspriddle/vim-nerdtree-helpers'
""Bundle 'https://github.com/jistr/vim-nerdtree-tabs'
" nerdtree-symlink -- create symlinks w/ NERDTree
Bundle 'https://github.com/EvanDotPro/nerdtree-symlink'
" nerdtree-git-plugin -- show git status in NERDTree
Bundle 'https://github.com/Xuyuanp/nerdtree-git-plugin'
" let g:NERDTreeIndicatorMapCustom = {
" \ "Modified" : "✹",
" \ "Staged" : "✚",
" \ "Untracked" : "✭",
" \ "Renamed" : "➜",
" \ "Unmerged" : "═",
" \ "Deleted" : "✖",
" \ "Dirty" : "✗",
" \ "Clean" : "✔︎",
" \ "Unknown" : "?"
" \ }
"" BufExlorer -- buffer management window [help bufexplorer]
Bundle 'https://github.com/jlanzarotta/bufexplorer'
" <c-b> -- toggle BufExplorer
" ? -- toggle BufExplorer help
map <C-B> <Esc>:BufExplorer<CR>
" <leader>b -- toggle BufExplorer
nnoremap <Leader>b <Esc>:BufExplorer<CR>
set switchbuf=usetab
" CtrlP -- file/buffer/mru finder [help ctrlp]
Bundle 'https://github.com/kien/ctrlp.vim'
" <C-p> -- CtrlP (fuzzy matching)
" <C-up>/<C-down> -- CtrlP (cycle through file, buf, mru)
" <C-f> -- CtrlP (cycle through file, buf, mru)
"nnoremap <Leader>p <Esc>:CtrlP<CR>
nnoremap <Leader>p <Esc>:CtrlPLastMode --dir
" Unite.vim -- show results from files, buffes, mru, registers
Bundle 'https://github.com/Shougo/unite.vim'
let g:unite_source_menu_menus = get(g:,'unit_source_menu_menus',{})
let g:unite_source_menu_menus.git = {
\ 'description' : ' gestionar repositorios git
\ ⌘ [espacio]g',
\}
let g:unite_source_menu_menus.git.command_candidates = [
\['▷ tig ⌘ ,gt',
\'normal ,gt'],
\['▷ git status (Fugitive) ⌘ ,gs',
\'Gstatus'],
\['▷ git diff (Fugitive) ⌘ ,gd',
\'Gdiff'],
\['▷ git commit (Fugitive) ⌘ ,gc',
\'Gcommit'],
\['▷ git log (Fugitive) ⌘ ,gl',
\'exe "silent Glog | Unite quickfix"'],
\['▷ git blame (Fugitive) ⌘ ,gb',
\'Gblame'],
\['▷ git stage (Fugitive) ⌘ ,gw',
\'Gwrite'],
\['▷ git checkout (Fugitive) ⌘ ,go',
\'Gread'],
\['▷ git rm (Fugitive) ⌘ ,gr',
\'Gremove'],
\['▷ git mv (Fugitive) ⌘ ,gm',
\'exe "Gmove " input("destino: ")'],
\['▷ git push (Fugitive, salida por buffer) ⌘ ,gp',
\'Git! push'],
\['▷ git pull (Fugitive, salida por buffer) ⌘ ,gP',
\'Git! pull'],
\['▷ git prompt (Fugitive, salida por buffer) ⌘ ,gi',
\'exe "Git! " input("comando git: ")'],
\['▷ git cd (Fugitive)',
\'Gcd'],
\]
nnoremap <silent><leader>u :Unite -silent -start-insert<CR>
"nnoremap <silent><leader>n :Unite -silent -start-insert<CR>
nnoremap <silent><leader>ub :Unite -silent -start-insert buffer file_mru<CR>
nnoremap <silent><leader>uf :Unite -silent -start-insert file_rec<CR>
nnoremap <silent><leader>ug :Unite -ent -start-insert menu:git<CR>
" neomru -- show MRU (most-recently-used) files in Unite [neomru]
Bundle 'https://github.com/Shougo/neomru.vim'
" unite-grep-vcs -- git grep && hg grep
Bundle 'https://github.com/lambdalisue/unite-grep-vcs'
" Syntastic -- syntax highlighting [help syntastic]
Bundle 'https://github.com/scrooloose/syntastic'
if exists("g:loaded_syntastic_plugin")
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
let g:syntastic_quiet_warnings=0
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
"let g:syntastic_disabled_filetypes = ['ruby', 'php']
"
" ###
" | Src: https://raw.githubusercontent.com/ccwang002/dotvim/master/vimrc
" + https://github.com/ccwang002/dotvim/issues/1
" Setting for rst Linter
let s:rst_accepted_dir_type =
\ '\(' .
\ 'seealso\|todo\|toctree\|index\|glossary\|' .
\ 'literalinclude\|' .
\ 'auto.*' .
\ '\)'
let s:rst_accepted_text_role =
\ '\(ref\|term\|command\|file\|py:[a-z]*\|meth\|class\|func\)'
let s:rst_def_substitution = '\(version\|today\)'
let g:syntastic_rst_rst2pseudoxml_quiet_messages = {
\ "regex":
\ '\(' .
\ 'Unknown directive type "' . s:rst_accepted_dir_type . '"\|' .
\ 'Unknown interpreted text role "' . s:rst_accepted_text_role . '"\|' .
\ 'Undefined substitution referenced: "' . s:rst_def_substitution . '"' .
\ '\)',
\ }
let g:syntastic_debug=0
let g:syntastic_python_flake8_args = '--ignore=E501 --max-line-length=159'
"let g:syntastic_python_flake8_exec = 'flake8'
let g:syntastic_python_flake8_exec = 'ruff'
" ###
" OR
" ###
" " | Src: https://github.com/myint/rstcheck
" " | PyPI: https://pypi.python.org/pypi/rstcheck
" " $ pip install --user -U rstcheck
" let g:syntastic_rst_checkers = ['rstcheck']
" ###
""
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
endif
" NERDCommenter -- commenting [help NERDCommenter]
Bundle 'https://github.com/scrooloose/nerdcommenter'
" ,cm -- minimal comment
" ,cs -- sexy comment
" ,c<space> -- toggle comment
let g:NERDCustomDelimiters = {
\ 'puppet': { 'left': '#', 'leftAlt': '/*', 'rightAlt': '*/' }
\ }
" UltiSnips -- syntax-specific snippets [help ultisnips]
Bundle 'https://github.com/SirVer/ultisnips'
Bundle 'https://github.com/honza/vim-snippets'
" snippetname<C-CR> -- insert snippet
" <c-j> -- next placeholder
" <c-k> -- prev placeholder
" ~/.vim/snippets-ulti/python.snippets:
" climain -- new cli script
" setuppy -- new setup.py script
" ~/.vim/snippets-ulti/html.snippets:
" schemaorgclass -- new schema.org RDFa class
" schemaorgprop -- new schema.org RDFa property
let g:UltiSnipsExpandTrigger = '<C-CR>'
let g:UltiSnipsListSnippets = '<C-tab>'
let g:UltiSnipsJumpForwardTrigger = '<C-j>'
let g:UltiSnipsJumpBackwardTrigger = '<C-k>'
let g:UltiSnipsSnippetsDir = '~/.vim/snippets-ulti/'
let g:UltiSnipsSnippetDirectories = ['UltiSnips', 'snippets-ulti']
" NeoComplCache -- code completion [help neocomplcache]
Bundle 'https://github.com/Shougo/neocomplcache.vim'
let g:neocomplcache_enable_at_startup = 0
"Bundle 'Valloric/YouCompleteMe' "Requires newer vim
" unstack.vim -- parse and open stacktrace paths [help unstack]
Bundle 'https://github.com/mattboehm/vim-unstack'
" <leader> s -- parse part/all of a stacktrace
" accordion.vim -- work w/ a number of h/vsplits at once [help accordion]
Bundle 'https://github.com/mattboehm/vim-accordion'
"" :Accordion [n] -- show [n] splits wide
"" :AccordionAll [n] -- show [n] splits everywhere
"" :AccordionDiff -- show 2 split diffs
"" :AccordionStop -- stop auto layout and reset
"" show hsplits
"""let g:accordion_mode="h"
"let g:accordion_mode="v"
"" <Ctrl-w> 2 -- Show 2 splits wide
nnoremap <C-w>2 :Accordion 2<CR>
"" <Ctrl-w> 3 -- Show 3 splits wide
nnoremap <C-w>3 :Accordion 3<CR>
"" <Ctrl-w> 0 -- stop auto layout and reset
nnoremap <C-w>0 :AccordionStop<CR>
" ViM Airline -- helpful statusbar information w/ vimscript [help airline]
if !exists("s:airline_initialized") || s:airline_initialized!=1
Bundle 'https://github.com/vim-airline/vim-airline'
Bundle 'https://github.com/vim-airline/vim-airline-themes'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#virtualenv#enabled = 1
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#branch#empty_message = ''
let g:airline#extensions#syntastic#enabled = 1
let g:airline#extensions#tagline#enabled = 1
let g:airline#extensions#tagline#buffer_nr_show = 1
if has("gui_running")
let g:airline_powerline_fonts = 1
" base16, wombat, luna
"let g:airline_theme="base16"
else
" base16, wombat, luna
"let g:airline_theme="wombat"
endif
" :AirlineTheme [dark,luna,base16_grayscale,serene]
" let g:airline_theme='dark' " vim-airline
" let g:airline_theme='luna' " vim-airline-themes
let g:airline_theme='base16_grayscale' " vim-airline-themes
" let g:airline_theme='serene' " vim-airline-themes
endif
" EasyMotion -- easy visual motions [help easymotion]
Bundle 'https://github.com/Lokaltog/vim-easymotion'
" <Leader>m-w/e -- search forward (beg/end of word)
" <Leader>m-b -- search backward
" <Leader>m-j -- search line down
" <Leader>m-k -- search line up
let g:EasyMotion_leader_key = '<Leader>m'
"let g:EasyMotion_mapping_t = '_t'
"let g:EasyMotion_mapping_gE = '_gE'
"Vim Colorschemes pack
"Bundle 'https://github.com/flazz/vim-colorschemes'
" Jellybeans -- a good colorscheme w/ sensible diff highlighting
Bundle 'https://github.com/nanotech/jellybeans.vim'
" :colorscheme jellybeans -- switch to the jellybeans colorscheme
" Vim-misc -- functions for colorscheme-switcher and vim-session
Bundle 'https://github.com/xolox/vim-misc'
" Vim Colorscheme Switcher [help colorscheme-switcher]
Bundle 'https://github.com/xolox/vim-colorscheme-switcher'
let g:colorscheme_switcher_exclude = ['shine', 'morning', 'peachpuff', 'zellner', 'delek', 'default' ]
let g:colorscheme_switcher_keep_background = 1
" <F8> -- cycle colors forward
" <Shift><F8> -- cycle colors reverse
" HiColors
" call HiTest() -- print highlighting colors
Bundle 'https://github.com/vim-scripts/HiColors'
" Pasting -- make paste work normally [help paste]
Bundle 'https://github.com/sickill/vim-pasta'
let g:pasta_enabled_filetypes = ['ruby', 'javascript', 'css', 'sh']
" vim-test -- run tests with different granularities [help test.txt]
Bundle 'https://github.com/janko/vim-test'
">these "Ctrl mappings" work well when Caps Lock is mapped to Ctrl
" t<Ctrl-n> -- :TestNearest
nmap <silent> t<C-n> :TestNearest<CR>
" t<Ctrl-f> -- :TestFile
nmap <silent> t<C-f> :TestFile<CR>
" t<Ctrl-s> -- :TestSuite
nmap <silent> t<C-s> :TestSuite<CR>
" t<Ctrl-l> -- :TestLast
nmap <silent> t<C-l> :TestLast<CR>
" t<Ctrl-g> -- :TestVisit
nmap <silent> t<C-g> :TestVisit<CR>
" asyncrun.vim -- run async shell commands to e.g. quickfix [help asyncrun]
Bundle 'https://github.com/skywind3000/asyncrun.vim'
" :AsyncRun make
" :AsyncRun -cwd=<root> make
" :AsyncRun -pos=bottom make
" :AsyncRun -pos=tab make
" asynctasks.vim -- run tasks defined in a .tasks file [help asynctasks]
Bundle 'https://github.com/skywind3000/asynctasks.vim'
let g:asyncrun_open = 6
" <F5> -- :AsyncTask file-run<cr>
noremap <silent><F5> :AsyncTask file-run<cr>
" <F9> -- :AsyncTask file-build<cr>
noremap <silent><F9> :AsyncTask file-build<cr>
" <F6> -- :AsyncTask project-run<cr>
noremap <silent><F6> :AsyncTask project-run<cr>
" <F7> -- :AsyncTask project-build<cr>
noremap <silent><F7> :AsyncTask project-build<cr>
" "
" " search upward for (.git|.svn|.root|.project|.hg)/.tasks
let g:asyncrun_rootmarks = ['.git', '.svn', '.root', '.project', '.hg']
if has('+clientserver')
" AsyncCommand -- run async shell commands to e.g. quickfix
Bundle 'https://github.com/pydave/AsyncCommand'
" vim-red-green -- show a red or a green bar in vim
Bundle 'https://github.com/jimf/vim-red-green'
" vim-async-make-green -- make a green
Bundle 'https://github.com/jimf/vim-async-make-green'
endif
" Vim Room -- focus just the relevant text [help vimroom]
Bundle 'https://github.com/mikewest/vimroom'
" VOoM Outline Viewer -- view outlines of code and text [help voom]
Bundle 'https://github.com/vim-voom/VOoM'
" VOoM modes: html, markdown, python, rest,
" thevimoutliner, txt2tags,
" viki, vimwiki, wiki
" :Voom [<format>] -- open Voom outline tab
" :Voom rest -- open ReStructuredText outline
" ggg?G
" <leader> V -- toggle Voom outline sidebar
nnoremap <Leader>V :VoomToggle<cr>
" TagBar -- source tag browser [help tagbar]
Bundle 'https://github.com/majutsushi/tagbar'
" <leader> t -- toggle TagBar outline sidebar"
nnoremap <Leader>t :TagbarToggle<cr>
" Vim Session -- save and restore sessions between exits [help session]
Bundle 'https://github.com/xolox/vim-session'
" :SaveSession <name> -- save a session
" :OpenSession <name> -- open a saved session
" :Restart -- SaveSession restart && exit
" :OpenSession restart -- open the 'restart' saved session
let g:session_autoload = 'no'
let g:session_autosave = 0
let g:session_autosave_periodic = 0
" Vim Unimpaired -- moving between buffers [help unimpaired]
Bundle 'https://github.com/tpope/vim-unimpaired'
" [a :previous
" ]a :next
" [A :first
" ]A :last
" [b :bprevious
" ]b :bnext
" [B :bfirst
" ]B :blast
" [l :lprevious
" ]l :lnext
" [L :lfirst
" ]L :llast
" [<C-L> :lpfile
" ]<C-L> :lnfile
" [q :cprevious
" ]q :cnext
" [Q :cfirst
" ]Q :clast
" [<C-Q> :cpfile (Note that <C-Q> only works in a terminal if you disable
" ]<C-Q> :cnfile flow control: stty -ixon)
" [t :tprevious
" ]t :tnext
" [T :tfirst
" ]T :tlast
" Ack.vim -- ack through files (instead of grep) [help ack]
Bundle 'https://github.com/mileszs/ack.vim'
" :Ack [options] PATTERN [directory] -- search for pattern
" :AckAdd [options] PATTERN [directory] -- add a search pattern
" :AckWindow [options] PATTERN -- search all visible buffers"
" vim-surround -- add quotes/parenthesis/tags [help surround]
Bundle 'https://github.com/tpope/vim-surround'
" cs -- change surrounding
" ys -- yank and surround (motion, text object)
" yss -- yank and surround current line
" ds" -- remove double-quotes
" cs'" -- replace single-quotes with double quotes
" cd"<q> -- surround with <q>...<q/>
" dst -- remove surrounding tag
" csapprox -- adapt gvim colorschemes for terminal vim [help csapprox]
Bundle 'https://github.com/godlygeek/csapprox'
:let g:CSApprox_loaded = 1
" UndoTree -- visualize vim undotree
Bundle 'https://github.com/mbbill/undotree'
" <F5> -- :UndoTreeToggle (? for help)
nnoremap <F4> :UndotreeToggle<cr>
if has("persistent_undo")
""set undodir = '~/.undodir/'
set undofile
endif
" vim-nginx -- nginx ftdetect, indent, and syntax
Bundle 'https://github.com/robotvert/vim-nginx'
" n3.vim -- N3/Turtle RDF Syntax
Bundle 'https://github.com/vim-scripts/n3.vim'
" SPARQL -- SPARQL syntax
Bundle 'https://github.com/vim-scripts/sparql.vim'
"" /begin Python
if has("python") || has("python3")
" Python-mode -- Python [help pymode]
" :help pymode
" [[ -- Jump to previous class or function
" ]] -- Jump to next class or function
" [M -- Jump to previous class or method
" ]M -- Jump to next class or method
" aC -- Select a class. Ex: vaC, daC, yaC, caC
" iC -- Select inner class. Ex: viC, diC, yiC, ciC
" aM -- Select a function or method. Ex: vaM, daM, yaM, caM
" iM -- Select inner function or method. Ex: viM, diM, yiM, ciM
" g:pymode_python = { 'python', 'python3', 'disable' }
"
" set g:pymode_python 'disable' (start time, occasional completion stall)
"let g:pymode_python = 'python'
let g:pymode_python = 'python3'
"let g:pymode_python = 'disable'
" <leader> d -- open pydoc
let g:pymode_doc_bind = '<leader>d'
let g:pymode_syntax = 1
let g:pymode_syntax_all = 1
" :PymodeLintToggle -- toggle lint checking
" :PymodeLintAuto -- autofix current buffer pep8 errors
"let g:pymode_lint = 1
"let g:pymode_lint_checker = "pyflakes"
"let g:pymode_lint_checkers = pyflakes pep8 mccabe pep257 pylint
"let g:pymode_lint_checkers = ['pyflakes', 'pep8']
let g:pymode_lint_checkers = ['ruff']
" - auto-show an error window
let g:pymode_lint_cwindow = 1
" - show lint signs
let g:pymode_lint_signs = 1
" - run lint on write
let g:pymode_lint_on_write = 1
"run lint unmodified
let g:pymode_lint_unmodified = 0
"run lint while editing
let g:pymode_lint_on_fly = 0
" let g:pymode_lint_ignore = ""
" let g:pymode_lint_select = ""
" Pymode lint line annotation symbols
" XX = TODO
" CC = COMMENT
" RR = VISUAL
" EE = ERROR
" II = INFO
" FF = PYFLAKES
" :PyModeLint -- lint current buffer (once)
" :PyModeLintToggle -- toggle lint
"
" :PyModeLintAuto -- auto-lint the current buffer (once)
" (commit before and after)
"
""let g:pymode_lint_todo_symbol = 'WW'
let g:pymode_lint_todo_symbol = 'XX'
let g:pymode_lint_comment_symbol = 'CC'
let g:pymode_lint_visual_symbol = 'RR'
let g:pymode_lint_error_symbol = 'EE'
let g:pymode_lint_info_symbol = 'II'
let g:pymode_lint_pyflakes_symbol = 'FF'
let g:pymode_lint_ignore = "E116,E124,E128,E221,E261,E265,E501"
" let g:pymode_lint_select = "E501,W0011,W430"
" g:pymode_rope = 1 -- enable pymode rope
let g:pymode_rope = 1
let g:pymode_breakpoint = 1
" <F7> -- set debugger breakpoints
let g:pymode_breakpoint_key = '<F7>'
" auto lookup breakpoint cmd (pdb, ipdb, pudb)"
let g:pymode_breakpoint_cmd = ''
let g:pymode_run_bind = '<leader>rx'
" Searches upward for a .ropeproject file (that should be .vcs-ignored)
" :PymodeRopeNewProject -- Create a new .ropeproject in CWD
" :PymodeRopeRegenerate -- Regenerate rope project cache
let g:pymode_rope_lookup_project = 0
" <C-c>d -- show docs for current function w/ pymode
let g:pymode_rope_show_doc_bind = '<leader>rd'
" rope for autocompletion
let g:pymode_rope_completion = 1
"let g:pymode_rope_complete_on_dot = 1
" <C-Space> -- rope autocomplete
let g:pymode_rope_completion_bind = '<C-Space>'
let g:pymode_rope_autoimport = 1
" <leader> j -- :RopeGotoDefinition
map <leader>j :RopeGotoDefinition<CR>
" <leader>ro -- organize Python imports; drop unused (:PymodeRopeAutoImport)
let g:pymode_rope_organize_imports_bind = '<leader>ro'
" :PymodeRopeUndo -- Undo last project changes
" :PymodeRopeRedo -- Redo last project changes
" <leader>rr -- rope rename
let g:pymode_rope_rename_bind = '<leader>rr'
" <leader>r1r -- rope rename module
let g:pymode_rope_rename_module_bind = '<leader>r1r'
Bundle 'https://github.com/python-mode/python-mode'
" vim-virtualenv -- Python virtualenv [help virtualenv]
Bundle 'https://github.com/jmcantrell/vim-virtualenv'
" :help
" :VirtualEnvDeactivate
" :VirtualEnvList
" :VirtualEnvActivate <name>
" :VirtualEnvActivate <TAB>
" Sort python imports
" Bundle 'https://github.com/vim-scripts/sort-python-imports'
" :PyFixImports -- sort import statements
" Instead, see: g:pymode_rope_organize_imports_bind = '<C-c>ro'
" Pending the patch in:
" https://github.com/vim-scripts/sort-python-imports/pull/2
" Pytest.vim -- py.test red/green results [help pytest]
Bundle 'https://github.com/alfredodeza/pytest.vim'
" :Pytest clear -- reset pytest globals
" :Pytest file -- pytest file
" :Pytest class -- pytest class
" :Pytest method -- pytest method
" :Pytest {...} --pdb -- pytest file/class/method with pdb
" <leader>tf -- pytest file
nmap <silent><Leader>tf <Esc>:Pytest file %:p<CR>
"nnoremap <C-f> <Esc>:Pytest file<CR>
" <leader>tc -- pytest class
nmap <silent><Leader>tc <Esc>:Pytest class
" <leader>tm -- pytest method
nmap <silent><Leader>tm <Esc>:Pytest method
" " cycle through test errors
" <leader>tn -- pytest next error
nmap <silent><Leader>tn <Esc>:Pytest next<CR>
" <leader>tp -- pytest prev error
nmap <silent><Leader>tp <Esc>:Pytest previous<CR>
" <leader>te -- pytest error
nmap <silent><Leader>te <Esc>:Pytest error<CR>
" Black -- Black code formatter
Bundle 'https://github.com/psf/black'
let g:black_linelength=79
" let g:black_linelength=79
" let g:black_linelength=120
" let g:black_linelength=159
" Pyrex -- Pyrex syntax
Bundle 'https://github.com/vim-scripts/pyrex.vim'
" Jinja -- Jinja Templates syntax
Bundle 'https://github.com/mitsuhiko/vim-jinja'
endif
"" /end Python
" vim-coffee-script -- CoffeeScript syntax, indent
Bundle 'https://github.com/kchmck/vim-coffee-script'
" vim-haml -- HAML, SASS, SCSS
Bundle 'https://github.com/tpope/vim-haml'
" vim-css3-syntax -- CSS3
Bundle 'https://github.com/hail2u/vim-css3-syntax'
" vim-css-color -- show CSS color codes
Bundle 'https://github.com/skammer/vim-css-color'
" vim-less -- LESS CSS
Bundle 'https://github.com/groenewege/vim-less'
" vim-jade -- Jade templates
Bundle 'https://github.com/digitaltoad/vim-jade'
" os.vim -- Operating System [help os]
Bundle 'https://github.com/Rykka/os.vim'
" clickable.vim -- click-able links
Bundle 'https://github.com/Rykka/clickable.vim'
" let g:clickable_browser = "xdg-open"
" let g:clickable_browser = "x-www-browser"
let g:clickable_browser = "web"
" Riv.vim -- ReStructuredText [help riv]
Bundle 'https://github.com/Rykka/riv.vim'
" [help riv]
" https://github.com/Rykka/riv.vim/tree/master/doc
" :RivIntro
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_intro.rst
" :RivQuickStart
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_quickstart.rst
" :RivInstruction
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_instruction.rst
" :RivCheatSheet -- riv_cheatsheet.rst
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_cheatsheet.rst
" :RivPrimer -- riv_primer.rst
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_primer.rst
" http://docutils.sourceforge.net/docs/user/rst/quickstart.html
" # Docutils "Quick reStructuredText" [quickref.rst / quickref.html]
" http://docutils.sourceforge.net/docs/user/rst/quickref.html
" :RivSpecification -- Docutils "reStructuredText Markup Specification"
" http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_specification.rst
" :RivDirectives -- Docutils "Directives"
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_directives.rst
" http://docutils.sourceforge.net/docs/ref/rst/directives.html
" # Docutils "Roles"
" http://docutils.sourceforge.net/docs/ref/rst/roles.html
" # Docutils "Substutution definitions"
" http://docutils.sourceforge.net/docs/ref/rst/definitions.html
" # Docutils "Doctree"
" http://docutils.sourceforge.net/docs/ref/doctree.html
" # Riv.vim Changelogs
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_log.rst
" # Riv.vim Todo
" https://github.com/Rykka/riv.vim/blob/master/doc/riv_todo.rst
" - [ ] Ready
" - [o] Open
" - [X] Closed
let g:riv_web_browser = 'web'
let g:riv_python_rst_hl = 0
let g:riv_disable_folding = 1
"let g:riv_fold_level = 0
"let g:riv_fold_level = -1
" Tabular -- text filtering and alignment [tabular]
Bundle 'https://github.com/godlygeek/tabular'
" vim-markdown -- markdown syntax (-> tabular, netrw) [vim-markdown]
Bundle 'https://github.com/plasticboy/vim-markdown'
" Ansible -- Ansible syntax
Bundle 'https://github.com/pearofducks/ansible-vim'
let g:ansible_unindent_after_newline = 0
" :Ansibledoc -- Replace the current buffer with the output of ansible-doc
" :Ansibledoc file
" :Ansibledoc -s file
" :Ansibledoc -l
" :Ansibledoc -F
function! Ansibledoc(...)
execute "%!COLUMNS='$(tput cols)' ansible-doc " . join(a:000)
set filetype=yaml
endfunction
command! -nargs=* Ansibledoc call Ansibledoc(<f-args>)
" Salt -- Salt syntax
Bundle 'https://github.com/saltstack/salt-vim'
" Trac -- Trac [help trac]
Bundle 'https://github.com/mjbrownie/Trac.vim'
" webapi-vim -- vim web API [help webapi[-{html, http, json, xml}]]
Bundle 'https://github.com/mattn/webapi-vim'
" gist-vim -- Create a gist.github.com [help gist-vim]
Bundle 'https://github.com/mattn/gist-vim'
" github-issues.vim -- autocomplete, CRUD GitHub issues [help Gissues]
" Bundle 'https://github.com/jaxbot/github-issues.vim'
" html5.vim -- HTML5, RDFa, microdata, WAI-ARIA
Bundle 'https://github.com/othree/html5.vim'
" vim-javascript -- improved Javascript support
Bundle 'https://github.com/pangloss/vim-javascript'
" vim-indent-guides -- show indentation levels [help indent_guides]
Bundle 'https://github.com/nathanaelkane/vim-indent-guides'
" rainbow-parentheses -- make nested parenthesis different colors
Bundle 'https://github.com/kien/rainbow_parentheses.vim'
" :RainbowParenthesesActivate
" :RainbowParenthesesToggle
" :RainbowParenthesesLoadRound
" :RainbowParenthesesLoadSquare
" :RainbowParenthesesLoadBraces
" :RainbowParenthesesLoadChevrons
" :RainbowParenthesesToggleAll
let g:rbpt_colorpairs = [
\ ['brown', 'RoyalBlue3'],
\ ['Darkblue', 'SeaGreen3'],
\ ['darkgray', 'DarkOrchid3'],
\ ['darkgreen', 'firebrick3'],
\ ['darkcyan', 'RoyalBlue3'],
\ ['darkred', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['brown', 'firebrick3'],
\ ['gray', 'RoyalBlue3'],
\ ['black', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['Darkblue', 'firebrick3'],
\ ['darkgreen', 'RoyalBlue3'],
\ ['darkcyan', 'SeaGreen3'],
\ ['darkred', 'DarkOrchid3'],
\ ['red', 'firebrick3'],
\ ]
if has("autocmd") && 0
" :RainbowParenthesesActivate
au VimEnter * RainbowParenthesesActivate
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
au Syntax * RainbowParenthesesLoadChevrons
endif
function! RainbowParens()
RainbowParenthesesActivate
RainbowParenthesesLoadRound
RainbowParenthesesLoadSquare
RainbowParenthesesLoadBraces
RainbowParenthesesLoadChevrons
endfunction
" :RainbowParens -- RainbowParenthesesActivate
command! -nargs=0 RainbowParens call RainbowParens()
" :RainbowParensToggle -- call rainbow_parentheses#toggleall()
command! -nargs=0 RainbowParensToggle call rainbow_parentheses#toggleall()
" vimwiki -- vim wiki library (for taskwiki) [help vimwiki]
"Bundle 'https://github.com/vimwiki/vimwiki'
" taskwiki -- TaskWarrior task management [help taskwiki]
"Bundle 'https://github.com/tbabej/taskwiki'
" vim-taskwarrior -- TaskWarrior interface (for taskwiki) [help vim-tw]
"Bundle 'https://github.com/blindFS/vim-taskwarrior'
" vim-plugin-AnsiEsc -- ANSI colors for taskwiki charts [
"Bundle 'https://github.com/powerman/vim-plugin-AnsiEsc'
" l9 -- utility library (for FuzzyFinder)
Bundle 'https://github.com/vim-scripts/L9'
" FuzzyFinder -- find files, buffers, tags, changes [help fuf]
Bundle 'https://github.com/vim-scripts/FuzzyFinder'
" :FufBuffer
" :FufFile
" :FufDir
" :FufMruFile
" :FufMruCmd
" :FufTag
" :FufJumpList
" :FufChangeList
" :FufQuickfix
" :FufHelp
" abolish.vim -- abbreviations, case-aware replcmnts [help abolish]
Bundle 'https://github.com/tpope/vim-abolish'
" fountain.vim -- fountain.io syntax
Bundle 'https://github.com/vim-scripts/fountain.vim'
Bundle 'https://github.com/vim-scripts/fountainwiki.vim'
" todo.txt-vim -- todo.txt syntax [help todo.txt]
" <leader> x -- mark as done/not done
"
Bundle 'https://gitlab.com/dbeniamine/todo.txt-vim'
autocmd BufNewFile,BufRead *.todo.txt set filetype=todo