aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2017-10-15 22:03:37 +0200
committerMax Christian Pohle2017-10-15 22:03:37 +0200
commitb4f8cbbf788092580d52bbc0d57f5929b6235225 (patch)
tree5dd472a00f34a4e6d9018ac3577cf8a5654fad3b /vimrc-full
parent3377b86a73ce6f13bc43dac24a8bdf80be5f4cc0 (diff)
downloadvim-karlmarks-b4f8cbbf788092580d52bbc0d57f5929b6235225.tar.bz2
vim-karlmarks-b4f8cbbf788092580d52bbc0d57f5929b6235225.zip
Further improved the menu and fallback colorscheme
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full135
1 files changed, 104 insertions, 31 deletions
diff --git a/vimrc-full b/vimrc-full
index bbfeafa..a21bd25 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -92,44 +92,44 @@ if has('cscope') " compiled with cscope support?
92 endif 92 endif
93 93
94 if has('menu') 94 if has('menu')
95 menu &:cscope.find.c\ symbol 95 1001menu &Cscope.find.c\ symbol
96 \<tab>s 96 \<tab>s
97 \ :cscope find s <cword><:cR> 97 \ :cscope find s <cword><:cR>
98 menu &:cscope.find.definition 98 1001menu &Cscope.find.definition
99 \<tab>g 99 \<tab>g
100 \ :cscope find g <cword><:cR> 100 \ :cscope find g <cword><:cR>
101 menu &:cscope.find.functions\ called\ by\ this 101 1001menu &Cscope.find.functions\ called\ by\ this
102 \<tab>d 102 \<tab>d
103 \ :cscope find d <cword><:cR> 103 \ :cscope find d <cword><:cR>
104 menu &:cscope.find.functions\ calling\ this 104 1001menu &Cscope.find.functions\ calling\ this
105 \<tab>c 105 \<tab>c
106 \ :cscope find c <cword><:cR> 106 \ :cscope find c <cword><:cR>
107 menu &:cscope.find.text\ string 107 1001menu &Cscope.find.text\ string
108 \<tab>t 108 \<tab>t
109 \ :cscope find t <cword><:cR> 109 \ :cscope find t <cword><:cR>
110 menu &:cscope.find.egrep\ pattern 110 1001menu &Cscope.find.egrep\ pattern
111 \<tab>e 111 \<tab>e
112 \ :cscope find e <cword><:cR> 112 \ :cscope find e <cword><:cR>
113 menu &:cscope.find.this\ file 113 1001menu &Cscope.find.this\ file
114 \<tab>f 114 \<tab>f
115 \ :cscope find f <cword><:cR> 115 \ :cscope find f <cword><:cR>
116 menu &:cscope.find.files\ including\ this\ file 116 1001menu &Cscope.find.files\ including\ this\ file
117 \<tab>i 117 \<tab>i
118 \ :cscope find i <cword><:cR> 118 \ :cscope find i <cword><:cR>
119 menu &:cscope.find.places\ where\ this\ symbol\ is\ assigned\ a\ value 119 1001menu &Cscope.find.places\ where\ this\ symbol\ is\ assigned\ a\ value
120 \<tab>a 120 \<tab>a
121 \ :cscope find a <cword><:cR> 121 \ :cscope find a <cword><:cR>
122 menu &:cscope.-Sep1- 122 1001menu &Cscope.-Sep1-
123 \ : 123 \ :
124 menu &:cscope.create\ and\ add\ database 124 1001menu &Cscope.create\ and\ add\ database
125 \ :cscope kill -1<CR>:execute '!find -regex ".*\.\(c\\|h\\|cpp\\|cxx\\|hh\\|hpp\\|hxx\)$" <bar> cscope -i- -b -q'<CR>:cscope add .<CR> 125 \ :cscope kill -1<CR>:execute '!find -regex ".*\.\(c\\|h\\|cpp\\|cxx\\|hh\\|hpp\\|hxx\)$" <bar> cscope -i- -b -q'<CR>:cscope add .<CR>
126 menu &:cscope.-Sep2- 126 1001menu &Cscope.-Sep2-
127 \ : 127 \ :
128 menu &:cscope.add\ \. 128 1001menu &Cscope.add\ \.
129 \ :cscope add .<CR> 129 \ :cscope add .<CR>
130 menu &:cscope.show 130 1001menu &Cscope.show
131 \ :cscope show<CR> 131 \ :cscope show<CR>
132 menu &:cscope.reset 132 1001menu &Cscope.reset
133 \ :cscope reset<CR> 133 \ :cscope reset<CR>
134 endif 134 endif
135endif 135endif
@@ -426,23 +426,76 @@ if has("autocmd")
426 set wildmenu 426 set wildmenu
427 set cpo-=< 427 set cpo-=<
428 set wcm=<C-Z> 428 set wcm=<C-Z>
429 map <F4> :emenu <C-Z>
430 429
431 menu &Directory.print\ current\ directory 430 01menu &Functions.toggle\ file\ browser
431 \<Tab><leader><leader>
432 \ <leader><leader>
433 01menu &Functions.-Sep0- :
434
435 01menu &Functions.help
436 \<Tab><F1>
437 \ <F1>
438 01menu &Functions.copen\:\ show\ quickfix\ list
439 \<Tab><F2>
440 \ <F2>
441 01menu &Functions.lopen\:\ show\ location\ list
442 \<Tab><F3>
443 \ <F3>
444 01menu &Functions.unef4
445 \<Tab><F4>
446 \ <F4>
447 01menu &Functions.-Sep1- :
448
449 01menu &Functions.make
450 \<Tab><F5>
451 \ <F5>
452 01menu &Functions.clear\ matches,\ update\ viewport
453 \<Tab><F6>
454 \ <F6>
455 01menu &Functions.undef7
456 \<Tab><F7>
457 \ <F7>
458 01menu &Functions.undef8
459 \<Tab><F8>
460 \ <F8>
461 01menu &Functions.-Sep2- :
462
463 01menu &Functions.toggle\ tagbar
464 \<Tab><F9>
465 \ <F9>
466
467 if has("gui_running") == 0
468 " in the gui F10 already triggeres the menu, not in a terminal vim, so upgrade that...
469 map <F10> :emenu <C-Z>
470 endif
471 01menu &Functions.activate\ menu\ (:emenu)
472 \<Tab><F10>
473 \ <F10>
474
475 01menu &Functions.undef11
476 \<Tab><F11>
477 \ <F11>
478 01menu &Functions.undef12
479 \<Tab><F12>
480 \ <F12>
481 01menu &Functions.-Sep2- :
482
483
484 09menu &Directory.print\ current\ directory
432 \<Tab>:pwd 485 \<Tab>:pwd
433 \ :pwd<CR> 486 \ :pwd<CR>
434 487
435 menu &Directory.-Sep- : 488 09menu &Directory.-Sep- :
436 489
437 menu &Directory.Change\ to\ GIT\ root 490 09menu &Directory.Change\ to\ GIT\ root
438 \<Tab>:Gcd 491 \<Tab>:Gcd
439 \ :Gcd<CR>:pwd<CR> 492 \ :Gcd<CR>:pwd<CR>
440 493
441 menu &Directory.Change\ to\ current\ buffers\ directory\ (global) 494 09menu &Directory.Change\ to\ current\ buffers\ directory\ (global)
442 \<tab>:cd\ %:p:h 495 \<tab>:cd\ %:p:h
443 \ :cd %:h<CR>:pwd<CR> 496 \ :cd %:h<CR>:pwd<CR>
444 497
445 menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h 498 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h
446 \ :lcd %:p:h<CR>:pwd<CR> 499 \ :lcd %:p:h<CR>:pwd<CR>
447 500
448 menu &Git.&Display\ last\ changes 501 menu &Git.&Display\ last\ changes
@@ -467,11 +520,6 @@ if has("autocmd")
467 520
468 menu &Window.-Sep- : 521 menu &Window.-Sep- :
469 522
470 menu &Window.Quickfix\ List
471 \ :copen<CR>
472
473 menu &Window.Location\ List
474 \ :lopen<CR>
475 523
476 menu &Window.Scratch 524 menu &Window.Scratch
477 \ :Scratch<CR> 525 \ :Scratch<CR>
@@ -512,6 +560,22 @@ if has("autocmd")
512 \<Tab>:clearjumps 560 \<Tab>:clearjumps
513 \ :clearjumps 561 \ :clearjumps
514 562
563 1000menu &Tag.list
564 \<Tab>:tags
565 \ :tags<CR>
566 1000menu &Tag.selection\ list
567 \<Tab>:ts
568 \ :ts<CR>
569
570 1000menu &Tag.-Sep1- :
571
572 1000menu &Tag.stack.jump\ older
573 \<Tab><C-T>
574 \ :po
575 1000menu &Tag.stack.jump\
576 \<Tab>:ta
577 \ :ta
578
515 menu &UI.&Open\ in\ Serversession 579 menu &UI.&Open\ in\ Serversession
516 \ :execute ':!nvr --servername /tmp/nvimsocket --remote % +'.line('.')<CR>:stopinsert<CR>:set readonly<CR> 580 \ :execute ':!nvr --servername /tmp/nvimsocket --remote % +'.line('.')<CR>:stopinsert<CR>:set readonly<CR>
517 581
@@ -740,7 +804,7 @@ set statusline+=%*%=
740set statusline+=%l:%c(%p%%) 804set statusline+=%l:%c(%p%%)
741 805
742" Autocompleter: ===================================== 806" Autocompleter: =====================================
743" if has("python") 807if has("python")
744 808
745 " ULTISNIPS: code snippet ============================================================================================ 809 " ULTISNIPS: code snippet ============================================================================================
746 Plug 'honza/vim-snippets' " dependency of ultisnips (see below) 810 Plug 'honza/vim-snippets' " dependency of ultisnips (see below)
@@ -763,8 +827,8 @@ set statusline+=%l:%c(%p%%)
763 " YouCompleteMe: ===================================================================================================== 827 " YouCompleteMe: =====================================================================================================
764 " Plug 'Valloric/MatchTagAlways' " highlights the closing tag/brace/... 828 " Plug 'Valloric/MatchTagAlways' " highlights the closing tag/brace/...
765 Plug 'Valloric/YouCompleteMe' 829 Plug 'Valloric/YouCompleteMe'
766 let g:ycm_error_symbol = '✖' " insert this as an error symbol in the gutter bar 830 let g:ycm_error_symbol = '✖' " insert this as an error symbol in the gutter bar/sign column
767 let g:ycm_warning_symbol = '➔' " insert this as a warning symbol in the gutter bar 831 let g:ycm_warning_symbol = '➔' " insert this as a warning symbol in the gutter bar/sign coloumn
768 let g:ycm_auto_trigger = 1 832 let g:ycm_auto_trigger = 1
769 let g:ycm_autoclose_preview_window_after_insertion = 1 833 let g:ycm_autoclose_preview_window_after_insertion = 1
770 " Plug 'vim-scripts/dbext.vim' " dependency to allow db related completions 834 " Plug 'vim-scripts/dbext.vim' " dependency to allow db related completions
@@ -825,7 +889,8 @@ set statusline+=%l:%c(%p%%)
825 " autocmd FileType python jedi.preload_module('os', 'sys', 'math') 889 " autocmd FileType python jedi.preload_module('os', 'sys', 'math')
826 " let g:pymode_options_max_line_length = 120 890 " let g:pymode_options_max_line_length = 120
827 " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301' 891 " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301'
828" endif 892
893endif " has("python")
829 894
830"======================================================================================================================= 895"=======================================================================================================================
831" TESTING: | " plugins which I am currently trying... 896" TESTING: | " plugins which I am currently trying...
@@ -942,7 +1007,15 @@ let base16colorspace=256
942if filereadable(expand("~/.vimrc_background")) 1007if filereadable(expand("~/.vimrc_background"))
943 source ~/.vimrc_background 1008 source ~/.vimrc_background
944else 1009else
945 colorscheme base16-phd 1010 let g:PaperColor_Theme_Options = {
1011 \ 'theme': {
1012 \ 'default': {
1013 \ 'transparent_background': 1
1014 \ }
1015 \ }
1016 \ }
1017 set background=dark
1018 colorscheme PaperColor
946endif 1019endif
947 1020
948 1021
..