diff --git a/.gitmodules b/.gitmodules index 6467437..e0e091c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -76,3 +76,21 @@ [submodule "bundle/1-vim-javascript-imports"] path = bundle/1-vim-javascript-imports url = git@github.com:sukima/vim-javascript-imports.git +[submodule "bundle/coc.nvim"] + path = bundle/coc.nvim + url = git@github.com:neoclide/coc.nvim.git +[submodule "bundle/undotree"] + path = bundle/undotree + url = git@github.com:mbbill/undotree.git +[submodule "bundle/vim-livedown"] + path = bundle/vim-livedown + url = git://github.com/shime/vim-livedown.git +[submodule "bundle/vim-rhubarb"] + path = bundle/vim-rhubarb + url = https://github.com/tpope/vim-rhubarb.git +[submodule "bundle/fugitive-gitea"] + path = bundle/fugitive-gitea + url = git://github.com/borissov/fugitive-gitea +[submodule "bundle/vim-peekaboo"] + path = bundle/vim-peekaboo + url = https://github.com/junegunn/vim-peekaboo.git diff --git a/bundle/coc.nvim b/bundle/coc.nvim new file mode 160000 index 0000000..287c743 --- /dev/null +++ b/bundle/coc.nvim @@ -0,0 +1 @@ +Subproject commit 287c743c9f227fdf0e1db452bbb8ae3c5caffc36 diff --git a/bundle/fugitive-gitea b/bundle/fugitive-gitea new file mode 160000 index 0000000..ce2358b --- /dev/null +++ b/bundle/fugitive-gitea @@ -0,0 +1 @@ +Subproject commit ce2358b614b66e5e34b1c3b12766af3ae12f5a3d diff --git a/bundle/undotree b/bundle/undotree new file mode 160000 index 0000000..be23eac --- /dev/null +++ b/bundle/undotree @@ -0,0 +1 @@ +Subproject commit be23eacb2a63380bd79e207a738c728214ecc9d3 diff --git a/bundle/vim-fugitive b/bundle/vim-fugitive index caf3b1d..2a53d79 160000 --- a/bundle/vim-fugitive +++ b/bundle/vim-fugitive @@ -1 +1 @@ -Subproject commit caf3b1d5696e8d39a905e48f1e89d8c0c565168c +Subproject commit 2a53d7924877b38b3d82fba188fd9053bfbc646e diff --git a/bundle/vim-jsdoc b/bundle/vim-jsdoc index df3e56c..854e515 160000 --- a/bundle/vim-jsdoc +++ b/bundle/vim-jsdoc @@ -1 +1 @@ -Subproject commit df3e56c6c78fda3f26e896fa9425219aa48b75ca +Subproject commit 854e51531b3da28ccbd8e853dd947fafa72b035e diff --git a/bundle/vim-livedown b/bundle/vim-livedown new file mode 160000 index 0000000..24c78c0 --- /dev/null +++ b/bundle/vim-livedown @@ -0,0 +1 @@ +Subproject commit 24c78c0c1177c0231bb542fa1e3807a3b089248e diff --git a/bundle/vim-peekaboo b/bundle/vim-peekaboo new file mode 160000 index 0000000..cc4469c --- /dev/null +++ b/bundle/vim-peekaboo @@ -0,0 +1 @@ +Subproject commit cc4469c204099c73dd7534531fa8ba271f704831 diff --git a/bundle/vim-rhubarb b/bundle/vim-rhubarb new file mode 160000 index 0000000..2590324 --- /dev/null +++ b/bundle/vim-rhubarb @@ -0,0 +1 @@ +Subproject commit 2590324d7fdaf0c6311fad4ee2a2878acaaec42d diff --git a/sessions/default.vim b/sessions/default.vim new file mode 100644 index 0000000..0a8cb46 --- /dev/null +++ b/sessions/default.vim @@ -0,0 +1,791 @@ +let SessionLoad = 1 +if &cp | set nocp | endif +let s:cpo_save=&cpo +set cpo&vim +imap S ISurround +imap s Isurround +imap Isurround +inoremap (seeing_is_believing-run) :call xmpfilter#run('i', '') a +inoremap (seeing_is_believing-clean) :call xmpfilter#run('i', '-Ku --clean') a +inoremap (seeing_is_believing-run_-x) :call xmpfilter#run('i', '-x') a +imap (seeing_is_believing-mark) (xmpfilter-mark) +inoremap (xmpfilter-run) :call xmpfilter#run('i', '') a +inoremap (xmpfilter-mark) :call xmpfilter#mark('i') a +imap 9 TComment_9 +imap 8 TComment_8 +imap 7 TComment_7 +imap 6 TComment_6 +imap 5 TComment_5 +imap 4 TComment_4 +imap 3 TComment_3 +imap 2 TComment_2 +imap 1 TComment_1 +imap s TComment_s +imap n TComment_n +imap a TComment_a +imap b TComment_b +imap i TComment_i +imap r TComment_r +imap  TComment_ +imap p TComment_p +imap TComment_ +inoremap TComment_9 :call tcomment#SetOption("count", 9) +inoremap TComment_9 :call tcomment#SetOption("count", 9) +inoremap TComment_8 :call tcomment#SetOption("count", 8) +inoremap TComment_8 :call tcomment#SetOption("count", 8) +inoremap TComment_7 :call tcomment#SetOption("count", 7) +inoremap TComment_7 :call tcomment#SetOption("count", 7) +inoremap TComment_6 :call tcomment#SetOption("count", 6) +inoremap TComment_6 :call tcomment#SetOption("count", 6) +inoremap TComment_5 :call tcomment#SetOption("count", 5) +inoremap TComment_5 :call tcomment#SetOption("count", 5) +inoremap TComment_4 :call tcomment#SetOption("count", 4) +inoremap TComment_4 :call tcomment#SetOption("count", 4) +inoremap TComment_3 :call tcomment#SetOption("count", 3) +inoremap TComment_3 :call tcomment#SetOption("count", 3) +inoremap TComment_2 :call tcomment#SetOption("count", 2) +inoremap TComment_2 :call tcomment#SetOption("count", 2) +inoremap TComment_1 :call tcomment#SetOption("count", 1) +inoremap TComment_1 :call tcomment#SetOption("count", 1) +inoremap TComment_s :TCommentAs =&ft _ +inoremap TComment_s :TCommentAs =&ft _ +inoremap TComment_n :TCommentAs =&ft +inoremap TComment_n :TCommentAs =&ft +inoremap TComment_a :TCommentAs +inoremap TComment_a :TCommentAs +inoremap TComment_b :TCommentBlock mode=# +inoremap TComment_b :TCommentBlock mode=# +inoremap TComment_i v:TCommentInline mode=# +inoremap TComment_i v:TCommentInline mode=# +inoremap TComment_r :TCommentRight +inoremap TComment_r :TCommentRight +inoremap TComment_ :TComment +inoremap TComment_ :TComment +inoremap TComment_p :norm! m`vip :TComment `` +inoremap TComment_p :norm! m`vip :TComment `` +inoremap TComment_ :TComment +inoremap TComment_ :TComment +inoremap o +imap   AlwaysEnd +inoremap delimitMateS-BS delimitMate#WithinEmptyPair() ? "\" : "\" +inoremap delimitMateBS =delimitMate#BS() +inoremap CocRefresh =coc#_complete() +imap  => " +nnoremap  :CtrlP +vmap 9 TComment_9 +nmap 9 TComment_9 +omap 9 TComment_9 +vmap 8 TComment_8 +nmap 8 TComment_8 +omap 8 TComment_8 +vmap 7 TComment_7 +nmap 7 TComment_7 +omap 7 TComment_7 +vmap 6 TComment_6 +nmap 6 TComment_6 +omap 6 TComment_6 +vmap 5 TComment_5 +nmap 5 TComment_5 +omap 5 TComment_5 +vmap 4 TComment_4 +nmap 4 TComment_4 +omap 4 TComment_4 +vmap 3 TComment_3 +nmap 3 TComment_3 +omap 3 TComment_3 +vmap 2 TComment_2 +nmap 2 TComment_2 +omap 2 TComment_2 +vmap 1 TComment_1 +nmap 1 TComment_1 +omap 1 TComment_1 +map ca TComment_ca +map cc TComment_cc +map s TComment_s +map n TComment_n +map a TComment_a +map b TComment_b +map i TComment_i +map r TComment_r +map  TComment_ +map p TComment_p +vmap  TComment_ +nmap  TComment_ +omap  TComment_ +nnoremap  @q +omap % (MatchitOperationForward) +xmap % (MatchitVisualForward) +nmap % (MatchitNormalForward) +inoremap ï o +xmap S VSurround +nmap [xx unimpairedLineXmlEncode +xmap [x unimpairedXmlEncode +nmap [x unimpairedXmlEncode +nmap [uu unimpairedLineUrlEncode +xmap [u unimpairedUrlEncode +nmap [u unimpairedUrlEncode +nmap [yy unimpairedLineStringEncode +xmap [y unimpairedStringEncode +nmap [y unimpairedStringEncode +xmap [e unimpairedMoveUp +nmap [e unimpairedMoveUp +nmap [ unimpairedBlankUp +nmap [o unimpairedOPrevious +nmap [Q unimpairedQFirst +nmap [q unimpairedQPrevious +nmap [L unimpairedLFirst +nmap [l unimpairedLPrevious +nmap [B unimpairedBFirst +nmap [b unimpairedBPrevious +nmap [A unimpairedAFirst +nmap [a unimpairedAPrevious +omap [% (MatchitOperationMultiBackward) +xmap [% (MatchitVisualMultiBackward) +nmap [% (MatchitNormalMultiBackward) +map \cd RooterChangeToRootDirectory +map \_s TComment_\_s +map \_n TComment_\_n +map \_a TComment_\_a +map \_b TComment_\_b +map \_r TComment_\_r +xmap \_i TComment_\_i +map \_ TComment_\_ +map \_p TComment_\_p +xmap \__ TComment_\__ +nmap \__ TComment_\__ +smap \__ TComment_\__ +omap \__ TComment_\__ +nmap \ig :IndentGuidesToggle +map \rwp RestoreWinPosn +map \swp SaveWinPosn +map \tt AM_tt +map \tsq AM_tsq +map \tsp AM_tsp +map \tml AM_tml +map \tab AM_tab +map \m= AM_m= +map \tW@ AM_tW@ +map \t@ AM_t@ +map \t~ AM_t~ +map \t? AM_t? +map \w= AM_w= +map \ts= AM_ts= +map \ts< AM_ts< +map \ts; AM_ts; +map \ts: AM_ts: +map \ts, AM_ts, +map \t= AM_t= +map \t< AM_t< +map \t; AM_t; +map \t: AM_t: +map \t, AM_t, +map \t# AM_t# +map \t| AM_t| +map \T~ AM_T~ +map \Tsp AM_Tsp +map \Tab AM_Tab +map \TW@ AM_TW@ +map \T@ AM_T@ +map \T? AM_T? +map \T= AM_T= +map \T< AM_T< +map \T; AM_T; +map \T: AM_T: +map \Ts, AM_Ts, +map \T, AM_T,o +map \T# AM_T# +map \T| AM_T| +map \Htd AM_Htd +map \anum AM_aunum +map \aenum AM_aenum +map \aunum AM_aunum +map \afnc AM_afnc +map \adef AM_adef +map \adec AM_adec +map \ascom AM_ascom +map \aocom AM_aocom +map \adcom AM_adcom +map \acom AM_acom +map \abox AM_abox +map \a( AM_a( +map \a= AM_a= +map \a< AM_a< +map \a, AM_a, +map \a? AM_a? +nnoremap \e :call jsimports#run() +map \ct :!/usr/bin/ctags -R --extra=+q . +map \vr :VimroomToggle +map \md :!pandoc -f markdown -t html -o /tmp/readme-%.html % && firefox /tmp/readme-%.html +map \tm :tabmove +map \tl :tablast +map \tf :tabfirst +map \tp :tabprevious +map \tn :tabnext +map \to :tabonly +map \tc :tabclose +map \te :tabedit +nmap ]xx unimpairedLineXmlDecode +xmap ]x unimpairedXmlDecode +nmap ]x unimpairedXmlDecode +nmap ]uu unimpairedLineUrlDecode +xmap ]u unimpairedUrlDecode +nmap ]u unimpairedUrlDecode +nmap ]yy unimpairedLineStringDecode +xmap ]y unimpairedStringDecode +nmap ]y unimpairedStringDecode +xmap ]e unimpairedMoveDown +nmap ]e unimpairedMoveDown +nmap ] unimpairedBlankDown +nmap ]o unimpairedONext +nmap ]Q unimpairedQLast +nmap ]q unimpairedQNext +nmap ]L unimpairedLLast +nmap ]l unimpairedLNext +nmap ]B unimpairedBLast +nmap ]b unimpairedBNext +nmap ]A unimpairedALast +nmap ]a unimpairedANext +omap ]% (MatchitOperationMultiForward) +xmap ]% (MatchitVisualMultiForward) +nmap ]% (MatchitNormalMultiForward) +omap ar (textobj-rubyblock-a) +xmap ar (textobj-rubyblock-a) +xmap a% (MatchitVisualTextObject) +nmap cS CSurround +nmap cs Csurround +nmap cr (abolish-coerce-word) +nmap ds Dsurround +vmap gx NetrwBrowseXVis +nmap gx NetrwBrowseX +xmap gS VgSurround +xmap g> TComment_Comment +nmap g>b TComment_Commentb +nmap g>c TComment_Commentc +nmap g> TComment_Comment +xmap g< TComment_Uncomment +nmap gTComment_Uncommentb +nmap gTComment_Uncommentc +nmap g< TComment_Uncomment +xmap gc TComment_gc +nmap gcb TComment_gcb +nmap gcc TComment_gcc +nmap gc9c TComment_gc9c +nmap gc9 TComment_gc9 +nmap gc8c TComment_gc8c +nmap gc8 TComment_gc8 +nmap gc7c TComment_gc7c +nmap gc7 TComment_gc7 +nmap gc6c TComment_gc6c +nmap gc6 TComment_gc6 +nmap gc5c TComment_gc5c +nmap gc5 TComment_gc5 +nmap gc4c TComment_gc4c +nmap gc4 TComment_gc4 +nmap gc3c TComment_gc3c +nmap gc3 TComment_gc3 +nmap gc2c TComment_gc2c +nmap gc2 TComment_gc2 +nmap gc1c TComment_gc1c +nmap gc1 TComment_gc1 +nmap gc TComment_gc +omap g% (MatchitOperationBackward) +xmap g% (MatchitVisualBackward) +nmap g% (MatchitNormalBackward) +omap ir (textobj-rubyblock-i) +xmap ir (textobj-rubyblock-i) +omap ic TComment_ic +vmap ic TComment_ic +nmap ySS YSsurround +nmap ySs YSsurround +nmap yss Yssurround +nmap yS YSurround +nmap ys Ysurround +vnoremap NetrwBrowseXVis :call netrw#BrowseXVis() +nnoremap NetrwBrowseX :call netrw#BrowseX(netrw#GX(),netrw#CheckIfRemote(netrw#GX())) +xnoremap unimpairedMoveDown :exe 'norm m`'|exe '''<,''>move''>+'.v:count1 `` +xnoremap unimpairedMoveUp :exe 'norm m`'|exe '''<,''>move--'.v:count1 `` +nnoremap unimpairedMoveDown :exe 'norm m`'|exe 'move+'.v:count1 `` +nnoremap unimpairedMoveUp :exe 'norm m`'|exe 'move--'.v:count1 `` +nnoremap unimpairedBlankDown :put =repeat(nr2char(10),v:count)|'[-1 +nnoremap unimpairedBlankUp :put!=repeat(nr2char(10),v:count)|']+1 +nmap unimpairedQLast :exe "clast ".(v:count ? v:count : "") +nmap unimpairedQFirst :exe "cfirst ".(v:count ? v:count : "") +nmap unimpairedQNext :exe "cnext ".(v:count ? v:count : "") +nmap unimpairedQPrevious :exe "cprevious ".(v:count ? v:count : "") +nmap unimpairedLLast :exe "llast ".(v:count ? v:count : "") +nmap unimpairedLFirst :exe "lfirst ".(v:count ? v:count : "") +nmap unimpairedLNext :exe "lnext ".(v:count ? v:count : "") +nmap unimpairedLPrevious :exe "lprevious ".(v:count ? v:count : "") +nmap unimpairedBLast :exe "blast ".(v:count ? v:count : "") +nmap unimpairedBFirst :exe "bfirst ".(v:count ? v:count : "") +nmap unimpairedBNext :exe "bnext ".(v:count ? v:count : "") +nmap unimpairedBPrevious :exe "bprevious ".(v:count ? v:count : "") +nmap unimpairedALast :exe "last ".(v:count ? v:count : "") +nmap unimpairedAFirst :exe "first ".(v:count ? v:count : "") +nmap unimpairedANext :exe "next ".(v:count ? v:count : "") +nmap unimpairedAPrevious :exe "previous ".(v:count ? v:count : "") +nnoremap SurroundRepeat . +vnoremap (seeing_is_believing-run) :call xmpfilter#run('v', '') +nnoremap (seeing_is_believing-run) :call xmpfilter#run('n', '') +vnoremap (seeing_is_believing-clean) :call xmpfilter#run('v', '-Ku --clean') +nnoremap (seeing_is_believing-clean) :call xmpfilter#run('n', '-Ku --clean') +vnoremap (seeing_is_believing-run_-x) :call xmpfilter#run('v', '-x') +nnoremap (seeing_is_believing-run_-x) :call xmpfilter#run('n', '-x') +vmap (seeing_is_believing-mark) (xmpfilter-mark) +nmap (seeing_is_believing-mark) (xmpfilter-mark) +vnoremap (xmpfilter-run) :call xmpfilter#run('v', '') +nnoremap (xmpfilter-run) :call xmpfilter#run('n', '') +vnoremap (xmpfilter-mark) :call xmpfilter#mark('v') +nnoremap (xmpfilter-mark) :call xmpfilter#mark('n') +vmap 9 TComment_9 +nmap 9 TComment_9 +omap 9 TComment_9 +vmap 8 TComment_8 +nmap 8 TComment_8 +omap 8 TComment_8 +vmap 7 TComment_7 +nmap 7 TComment_7 +omap 7 TComment_7 +vmap 6 TComment_6 +nmap 6 TComment_6 +omap 6 TComment_6 +vmap 5 TComment_5 +nmap 5 TComment_5 +omap 5 TComment_5 +vmap 4 TComment_4 +nmap 4 TComment_4 +omap 4 TComment_4 +vmap 3 TComment_3 +nmap 3 TComment_3 +omap 3 TComment_3 +vmap 2 TComment_2 +nmap 2 TComment_2 +omap 2 TComment_2 +vmap 1 TComment_1 +nmap 1 TComment_1 +omap 1 TComment_1 +map ca TComment_ca +map cc TComment_cc +map s TComment_s +map n TComment_n +map a TComment_a +map b TComment_b +map i TComment_i +map r TComment_r +map  TComment_ +map p TComment_p +vmap TComment_ +nmap TComment_ +omap TComment_ +nnoremap TComment_gc9c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc9c g@ +nnoremap TComment_gc8c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc8c g@ +nnoremap TComment_gc7c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc7c g@ +nnoremap TComment_gc6c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc6c g@ +nnoremap TComment_gc5c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc5c g@ +nnoremap TComment_gc4c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc4c g@ +nnoremap TComment_gc3c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc3c g@ +nnoremap TComment_gc2c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc2c g@ +nnoremap TComment_gc1c :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc1c g@ +vnoremap TComment_9 :call tcomment#SetOption("count", 9) +vnoremap TComment_9 :call tcomment#SetOption("count", 9) +nnoremap TComment_9 :call tcomment#SetOption("count", 9) +onoremap TComment_9 :call tcomment#SetOption("count", 9) +nnoremap TComment_9 :call tcomment#SetOption("count", 9) +onoremap TComment_9 :call tcomment#SetOption("count", 9) +vnoremap TComment_8 :call tcomment#SetOption("count", 8) +vnoremap TComment_8 :call tcomment#SetOption("count", 8) +nnoremap TComment_8 :call tcomment#SetOption("count", 8) +onoremap TComment_8 :call tcomment#SetOption("count", 8) +nnoremap TComment_8 :call tcomment#SetOption("count", 8) +onoremap TComment_8 :call tcomment#SetOption("count", 8) +vnoremap TComment_7 :call tcomment#SetOption("count", 7) +vnoremap TComment_7 :call tcomment#SetOption("count", 7) +nnoremap TComment_7 :call tcomment#SetOption("count", 7) +onoremap TComment_7 :call tcomment#SetOption("count", 7) +nnoremap TComment_7 :call tcomment#SetOption("count", 7) +onoremap TComment_7 :call tcomment#SetOption("count", 7) +vnoremap TComment_6 :call tcomment#SetOption("count", 6) +vnoremap TComment_6 :call tcomment#SetOption("count", 6) +nnoremap TComment_6 :call tcomment#SetOption("count", 6) +onoremap TComment_6 :call tcomment#SetOption("count", 6) +nnoremap TComment_6 :call tcomment#SetOption("count", 6) +onoremap TComment_6 :call tcomment#SetOption("count", 6) +vnoremap TComment_5 :call tcomment#SetOption("count", 5) +vnoremap TComment_5 :call tcomment#SetOption("count", 5) +nnoremap TComment_5 :call tcomment#SetOption("count", 5) +onoremap TComment_5 :call tcomment#SetOption("count", 5) +nnoremap TComment_5 :call tcomment#SetOption("count", 5) +onoremap TComment_5 :call tcomment#SetOption("count", 5) +vnoremap TComment_4 :call tcomment#SetOption("count", 4) +vnoremap TComment_4 :call tcomment#SetOption("count", 4) +nnoremap TComment_4 :call tcomment#SetOption("count", 4) +onoremap TComment_4 :call tcomment#SetOption("count", 4) +nnoremap TComment_4 :call tcomment#SetOption("count", 4) +onoremap TComment_4 :call tcomment#SetOption("count", 4) +vnoremap TComment_3 :call tcomment#SetOption("count", 3) +vnoremap TComment_3 :call tcomment#SetOption("count", 3) +nnoremap TComment_3 :call tcomment#SetOption("count", 3) +onoremap TComment_3 :call tcomment#SetOption("count", 3) +nnoremap TComment_3 :call tcomment#SetOption("count", 3) +onoremap TComment_3 :call tcomment#SetOption("count", 3) +vnoremap TComment_2 :call tcomment#SetOption("count", 2) +vnoremap TComment_2 :call tcomment#SetOption("count", 2) +nnoremap TComment_2 :call tcomment#SetOption("count", 2) +onoremap TComment_2 :call tcomment#SetOption("count", 2) +nnoremap TComment_2 :call tcomment#SetOption("count", 2) +onoremap TComment_2 :call tcomment#SetOption("count", 2) +vnoremap TComment_1 :call tcomment#SetOption("count", 1) +vnoremap TComment_1 :call tcomment#SetOption("count", 1) +nnoremap TComment_1 :call tcomment#SetOption("count", 1) +onoremap TComment_1 :call tcomment#SetOption("count", 1) +nnoremap TComment_1 :call tcomment#SetOption("count", 1) +onoremap TComment_1 :call tcomment#SetOption("count", 1) +nnoremap TComment_gC :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gC g@ +nnoremap TComment_gc :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gc g@ +xnoremap TComment_gc :TCommentMaybeInline +nnoremap TComment_gcb :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gcb g@ +nnoremap TComment_gcc :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_gcc g@$ +noremap TComment_ic :call tcomment#textobject#InlineComment() +xnoremap TComment_Comment :if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | '<,'>TCommentMaybeInline! +nnoremap TComment_Commentb :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Commentb g@ +nnoremap TComment_Commentc :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Commentc g@$ +nnoremap TComment_Commentl :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Commentl g@$ +nnoremap TComment_Comment :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Comment g@ +xnoremap TComment_Uncomment :if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | call tcomment#SetOption("mode_extra", "U") | '<,'>TCommentMaybeInline +nnoremap TComment_Uncommentb :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Uncommentb g@ +nnoremap TComment_Uncommentc :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Uncommentc g@$ +nnoremap TComment_Uncomment :call tcomment#ResetOption() | if v:count > 0 | call tcomment#SetOption("count", v:count) | endif | let w:tcommentPos = getpos(".") |set opfunc=TCommentOpFunc_Uncomment g@ +noremap TComment_\_s :TCommentAs =&ft _ +noremap TComment_\_n :TCommentAs =&ft +noremap TComment_\_a :TCommentAs +noremap TComment_\_b :TCommentBlock +noremap TComment_\_r :TCommentRight +xnoremap TComment_\_i :TCommentInline +noremap TComment_\_ :TComment +noremap TComment_\_p vip:TComment +xnoremap TComment_\__ :TCommentMaybeInline +nnoremap TComment_\__ :TComment +snoremap TComment_\__ :TComment +onoremap TComment_\__ :TComment +noremap TComment_ca :call tcomment#SetOption("as", input("Comment as: ", &filetype, "customlist,tcomment#complete#Complete")) +noremap TComment_ca :call tcomment#SetOption("as", input("Comment as: ", &filetype, "customlist,tcomment#complete#Complete")) +noremap TComment_cc :call tcomment#SetOption("count", v:count1) +noremap TComment_cc :call tcomment#SetOption("count", v:count1) +noremap TComment_s :TCommentAs =&ft _ +noremap TComment_s :TCommentAs =&ft _ +noremap TComment_n :TCommentAs =&ft +noremap TComment_n :TCommentAs =&ft +noremap TComment_a :TCommentAs +noremap TComment_a :TCommentAs +noremap TComment_b :TCommentBlock +noremap TComment_b :TCommentBlock +noremap TComment_i v:TCommentInline mode=I# +noremap TComment_i v:TCommentInline mode=I# +noremap TComment_r :TCommentRight +noremap TComment_r :TCommentRight +noremap TComment_ :TComment +noremap TComment_ :TComment +noremap TComment_p m`vip:TComment `` +noremap TComment_p m`vip:TComment `` +vnoremap TComment_ :TCommentMaybeInline +vnoremap TComment_ :TCommentMaybeInline +nnoremap TComment_ :TComment +onoremap TComment_ :TComment +nnoremap TComment_ :TComment +onoremap TComment_ :TComment +nnoremap :CtrlP +onoremap (coc-classobj-a) :call coc#rpc#request('selectSymbolRange', [v:false, '', ['Interface', 'Struct', 'Class']]) +onoremap (coc-classobj-i) :call coc#rpc#request('selectSymbolRange', [v:true, '', ['Interface', 'Struct', 'Class']]) +vnoremap (coc-classobj-a) :call coc#rpc#request('selectSymbolRange', [v:false, visualmode(), ['Interface', 'Struct', 'Class']]) +vnoremap (coc-classobj-i) :call coc#rpc#request('selectSymbolRange', [v:true, visualmode(), ['Interface', 'Struct', 'Class']]) +onoremap (coc-funcobj-a) :call coc#rpc#request('selectSymbolRange', [v:false, '', ['Method', 'Function']]) +onoremap (coc-funcobj-i) :call coc#rpc#request('selectSymbolRange', [v:true, '', ['Method', 'Function']]) +vnoremap (coc-funcobj-a) :call coc#rpc#request('selectSymbolRange', [v:false, visualmode(), ['Method', 'Function']]) +vnoremap (coc-funcobj-i) :call coc#rpc#request('selectSymbolRange', [v:true, visualmode(), ['Method', 'Function']]) +nnoremap (coc-cursors-position) :call coc#rpc#request('cursorsSelect', [bufnr('%'), 'position', 'n']) +nnoremap (coc-cursors-word) :call coc#rpc#request('cursorsSelect', [bufnr('%'), 'word', 'n']) +vnoremap (coc-cursors-range) :call coc#rpc#request('cursorsSelect', [bufnr('%'), 'range', visualmode()]) +nnoremap (coc-refactor) :call CocActionAsync('refactor') +nnoremap (coc-command-repeat) :call CocAction('repeatCommand') +nnoremap (coc-float-jump) :call coc#util#float_jump() +nnoremap (coc-float-hide) :call coc#util#float_hide() +nnoremap (coc-fix-current) :call CocActionAsync('doQuickfix') +nnoremap (coc-openlink) :call CocActionAsync('openLink') +nnoremap (coc-references) :call CocActionAsync('jumpReferences') +nnoremap (coc-type-definition) :call CocActionAsync('jumpTypeDefinition') +nnoremap (coc-implementation) :call CocActionAsync('jumpImplementation') +nnoremap (coc-declaration) :call CocActionAsync('jumpDeclaration') +nnoremap (coc-definition) :call CocActionAsync('jumpDefinition') +nnoremap (coc-diagnostic-prev-error) :call CocActionAsync('diagnosticPrevious', 'error') +nnoremap (coc-diagnostic-next-error) :call CocActionAsync('diagnosticNext', 'error') +nnoremap (coc-diagnostic-prev) :call CocActionAsync('diagnosticPrevious') +nnoremap (coc-diagnostic-next) :call CocActionAsync('diagnosticNext') +nnoremap (coc-diagnostic-info) :call CocActionAsync('diagnosticInfo') +nnoremap (coc-format) :call CocActionAsync('format') +nnoremap (coc-rename) :call CocActionAsync('rename') +nnoremap (coc-codeaction-line) :call CocActionAsync('codeAction', 'n') +nnoremap (coc-codeaction) :call CocActionAsync('codeAction', '') +vnoremap (coc-codeaction-selected) :call CocActionAsync('codeAction', visualmode()) +vnoremap (coc-format-selected) :call CocActionAsync('formatSelected', visualmode()) +nnoremap (coc-codelens-action) :call CocActionAsync('codeLensAction') +nnoremap (coc-range-select) :call CocAction('rangeSelect', '', v:true) +vnoremap (coc-range-select-backward) :call CocAction('rangeSelect', visualmode(), v:false) +vnoremap (coc-range-select) :call CocAction('rangeSelect', visualmode(), v:true) +nmap RestoreWinPosn :call RestoreWinPosn() +nmap SaveWinPosn :call SaveWinPosn() +nmap 26_WE AlignMapsWrapperEnd +map 26_WS AlignMapsWrapperStart +map (xmpfilter-run) +map (xmpfilter-mark) +xmap (MatchitVisualTextObject) (MatchitVisualMultiBackward)o(MatchitVisualMultiForward) +onoremap (MatchitOperationMultiForward) :call matchit#MultiMatch("W", "o") +onoremap (MatchitOperationMultiBackward) :call matchit#MultiMatch("bW", "o") +xnoremap (MatchitVisualMultiForward) :call matchit#MultiMatch("W", "n") m'gv`` +xnoremap (MatchitVisualMultiBackward) :call matchit#MultiMatch("bW", "n") m'gv`` +nnoremap (MatchitNormalMultiForward) :call matchit#MultiMatch("W", "n") +nnoremap (MatchitNormalMultiBackward) :call matchit#MultiMatch("bW", "n") +onoremap (MatchitOperationBackward) :call matchit#Match_wrapper('',0,'o') +onoremap (MatchitOperationForward) :call matchit#Match_wrapper('',1,'o') +xnoremap (MatchitVisualBackward) :call matchit#Match_wrapper('',0,'v') m'gv`` +xnoremap (MatchitVisualForward) :call matchit#Match_wrapper('',1,'v') m'gv`` +nnoremap (MatchitNormalBackward) :call matchit#Match_wrapper('',0,'n') +nnoremap (MatchitNormalForward) :call matchit#Match_wrapper('',1,'n') +imap S ISurround +imap s Isurround +imap   => " +imap   DiscretionaryEnd +imap  Isurround +imap   AlwaysEnd +imap 9 TComment_9 +imap 8 TComment_8 +imap 7 TComment_7 +imap 6 TComment_6 +imap 5 TComment_5 +imap 4 TComment_4 +imap 3 TComment_3 +imap 2 TComment_2 +imap 1 TComment_1 +imap s TComment_s +imap n TComment_n +imap a TComment_a +imap b TComment_b +imap i TComment_i +imap r TComment_r +imap  TComment_ +imap p TComment_p +imap  TComment_ +cnoremap %% =expand('%:h').'/' +let &cpo=s:cpo_save +unlet s:cpo_save +set background=dark +set backspace=indent,eol,start +set backupdir=~/.cache/vim/backup// +set directory=~/.vim/tmp//,. +set expandtab +set fileencodings=ucs-bom,utf-8,default,latin1 +set helplang=en +set hidden +set ignorecase +set incsearch +set laststatus=2 +set linespace=2 +set makeprg=ruby\ % +set ruler +set runtimepath=~/.vim,~/.vim/bundle/1-vim-javascript-imports,~/.vim/bundle/ack,~/.vim/bundle/align,~/.vim/bundle/auto_mkdir,~/.vim/bundle/coc.nvim,~/.vim/bundle/ctrlp,~/.vim/bundle/ctrlp-py-matcher,~/.vim/bundle/delimitMate,~/.vim/bundle/editorconfig-vim,~/.vim/bundle/endwise,~/.vim/bundle/handlebars,~/.vim/bundle/indent,~/.vim/bundle/indent-guides,~/.vim/bundle/rfc-syntax,~/.vim/bundle/syntastic,~/.vim/bundle/tcomment_vim,~/.vim/bundle/textobj-user,~/.vim/bundle/tpope-vim-rails,~/.vim/bundle/undotree,~/.vim/bundle/vim-abolish,~/.vim/bundle/vim-css-color,~/.vim/bundle/vim-dispatch,~/.vim/bundle/vim-ember-imports,~/.vim/bundle/vim-fugitive,~/.vim/bundle/vim-git,~/.vim/bundle/vim-jsdoc,~/.vim/bundle/vim-makegreen,~/.vim/bundle/vim-polyglot,~/.vim/bundle/vim-rfactory,~/.vim/bundle/vim-rooter,~/.vim/bundle/vim-ruby-xmpfilter,~/.vim/bundle/vim-rubyblock,~/.vim/bundle/vim-surround,~/.vim/bundle/vim-taglist,~/.vim/bundle/vim-unimpaired,~/.vim/bundle/vimproc.vim,~/.vim/bundle/xmledit,/usr/share/vim/vimfiles,/usr/share/vim/vim82,/usr/share/vim/vim82/pack/dist/opt/matchit,/usr/share/vim/vimfiles/after,~/.vim/bundle/tpope-vim-rails/after,~/.vim/bundle/vim-css-color/after,~/.vim/bundle/vim-polyglot/after,~/.vim/after +set scrolloff=3 +set shiftwidth=2 +set showcmd +set smartcase +set statusline=%{coc#status()}%{get(b:,'coc_current_function','')}[%n]\ %<%.99f\ %h%w%m%r%y\ %{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P +set suffixes=.bak,~,.o,.info,.swp,.aux,.bbl,.blg,.brf,.cb,.dvi,.idx,.ilg,.ind,.inx,.jpg,.log,.out,.png,.toc +set tabstop=2 +set tags=./tags,./TAGS,tags,TAGS,gems.tags +set title +set undodir=~/.cache/vim/undo// +set visualbell +set wildmenu +set wildmode=list:longest +set nowritebackup +let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 +let v:this_session=expand(":p") +silent only +silent tabonly +cd ~ +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +argglobal +%argdel +$argadd .ssh/authorized_keys +edit .ssh/authorized_keys +argglobal +let s:cpo_save=&cpo +set cpo&vim +imap g delimitMateJumpMany +imap delimitMateS-Tab +imap delimitMateS-BS +imap delimitMateBS +imap delimitMateBS +imap g delimitMateJumpMany +imap  delimitMateBS +imap " delimitMate" +imap ' delimitMate' +imap ( delimitMate( +imap ) delimitMate) +imap [ delimitMate[ +imap ] delimitMate] +imap ` delimitMate` +imap { delimitMate{ +imap } delimitMate} +let &cpo=s:cpo_save +unlet s:cpo_save +setlocal keymap= +setlocal noarabic +setlocal noautoindent +setlocal backupcopy= +setlocal balloonexpr= +setlocal nobinary +setlocal nobreakindent +setlocal breakindentopt= +setlocal bufhidden= +setlocal buflisted +setlocal buftype= +setlocal nocindent +setlocal cinkeys=0{,0},0),0],:,0#,!^F,o,O,e +setlocal cinoptions= +setlocal cinwords=if,else,while,do,for,switch +setlocal colorcolumn= +setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:- +setlocal commentstring=/*%s*/ +setlocal complete=.,w,b,u,t,i +setlocal concealcursor= +setlocal conceallevel=0 +setlocal completefunc= +setlocal nocopyindent +setlocal cryptmethod= +setlocal nocursorbind +setlocal nocursorcolumn +setlocal nocursorline +setlocal cursorlineopt=both +setlocal define= +setlocal dictionary= +setlocal nodiff +setlocal equalprg= +setlocal errorformat= +setlocal expandtab +if &filetype != '' +setlocal filetype= +endif +setlocal fixendofline +setlocal foldcolumn=0 +setlocal foldenable +setlocal foldexpr=0 +setlocal foldignore=# +setlocal foldlevel=0 +setlocal foldmarker={{{,}}} +setlocal foldmethod=manual +setlocal foldminlines=1 +setlocal foldnestmax=20 +setlocal foldtext=foldtext() +setlocal formatexpr= +setlocal formatoptions=tcq +setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* +setlocal formatprg= +setlocal grepprg= +setlocal iminsert=0 +setlocal imsearch=-1 +setlocal include= +setlocal includeexpr= +setlocal indentexpr= +setlocal indentkeys=0{,0},0),0],:,0#,!^F,o,O,e +setlocal noinfercase +setlocal iskeyword=@,48-57,_,192-255 +setlocal keywordprg= +setlocal nolinebreak +setlocal nolisp +setlocal lispwords= +setlocal nolist +setlocal listchars= +setlocal makeencoding= +setlocal makeprg= +setlocal matchpairs=(:),{:},[:] +setlocal modeline +setlocal modifiable +setlocal nrformats=bin,octal,hex +set number +setlocal number +setlocal numberwidth=4 +setlocal omnifunc= +setlocal path= +setlocal nopreserveindent +setlocal nopreviewwindow +setlocal quoteescape=\\ +setlocal noreadonly +setlocal norelativenumber +setlocal norightleft +setlocal rightleftcmd=search +setlocal noscrollbind +setlocal scrolloff=-1 +setlocal shiftwidth=2 +setlocal noshortname +setlocal showbreak= +setlocal sidescrolloff=-1 +setlocal signcolumn=auto +setlocal nosmartindent +setlocal softtabstop=0 +setlocal nospell +setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ +setlocal spellfile= +setlocal spelllang=en +setlocal spelloptions= +setlocal statusline= +setlocal suffixesadd= +setlocal swapfile +setlocal synmaxcol=3000 +if &syntax != '' +setlocal syntax= +endif +setlocal tabstop=2 +setlocal tagcase= +setlocal tagfunc= +setlocal tags= +setlocal termwinkey= +setlocal termwinscroll=10000 +setlocal termwinsize= +setlocal textwidth=0 +setlocal thesaurus= +setlocal noundofile +setlocal undolevels=-123456 +setlocal varsofttabstop= +setlocal vartabstop= +setlocal wincolor= +setlocal nowinfixheight +setlocal nowinfixwidth +set nowrap +setlocal nowrap +setlocal wrapmargin=0 +silent! normal! zE +let &fdl = &fdl +let s:l = 1 - ((0 * winheight(0) + 9) / 18) +if s:l < 1 | let s:l = 1 | endif +keepjumps exe s:l +normal! zt +keepjumps 1 +normal! 0 +tabnext 1 +badd +0 .ssh/authorized_keys +if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 + silent exe 'bwipe ' . s:wipebuf +endif +unlet! s:wipebuf +set winheight=1 winwidth=20 shortmess=filnxtToOS +let s:sx = expand(":p:r")."x.vim" +if filereadable(s:sx) + exe "source " . fnameescape(s:sx) +endif +let &g:so = s:so_save | let &g:siso = s:siso_save +nohlsearch +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : diff --git a/vimrc b/vimrc index a0c73af..a89045a 100644 --- a/vimrc +++ b/vimrc @@ -65,7 +65,9 @@ map tp :tabprevious map tf :tabfirst map tl :tablast map tm :tabmove -map md :!pandoc -f markdown -t html -o /tmp/readme-%.html % && firefox /tmp/readme-%.html + +let g:livedown_browser = "epiphany" +map md :LivedownToggle " Record macros with qq and play them with space :nnoremap @q @@ -98,8 +100,8 @@ autocmd BufNewFile,BufRead *_spec.rb compiler rspec let g:indent_guides_start_level = 2 let g:indent_guides_guide_size = 1 -au BufRead,BufNewFile *.json set filetype=json -au! Syntax json source ~/.vim/ftplugin/json.vim +" au BufRead,BufNewFile *.json set filetype=json +" au! Syntax json source ~/.vim/ftplugin/json.vim au BufRead,BufNewFile /usr/local/nginx/conf/* set ft=nginx @@ -123,6 +125,7 @@ set tags+=gems.tags colorscheme smyck let g:syntastic_mode_map = { 'mode': 'active', 'active_filetypes': ['ruby', 'js', 'javascript', 'ts', 'typescript'], 'passive_filetypes': ['puppet'] } +let g:syntastic_disabled_filetypes = ['sass', 'scss'] let g:syntastic_javascript_checkers = ['eslint'] " Highlight the current line when in insert mode @@ -155,3 +158,28 @@ let g:tsuquyomi_disable_quickfix = 1 " Store swap files etc. in a central location instead of next to source files set directory^=$HOME/.vim/tmp// + +set noballooneval + +" +" vim-fugitive +" +let g:fugitive_gitea_domains = ['https://gitea.kosmos.org'] + +" +" COC +" +let g:coc_global_extensions = ['coc-tsserver'] + +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" use for trigger completion and navigate to the next complete item +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' +endfunction + +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh()