diff --git a/init.vim b/init.vim index aa21698..2b63045 100644 --- a/init.vim +++ b/init.vim @@ -14,6 +14,7 @@ call plug#begin(stdpath('data') . '/plugged') Plug 'rafi/awesome-vim-colorschemes' " Provides a number of pretty themes Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fast fuzzy file searching Plug 'junegunn/fzf.vim' +Plug 'tpope/vim-fugitive' " Adds git support to vim Plug 'tpope/vim-surround' " Adds motions for dealing with parentheses Plug 'tpope/vim-commentary' " Easily comment/uncomment lines with `gc` Plug 'tpope/vim-unimpaired' " A series of bindings for complementary actions [ and ] for adding lines before and after @@ -121,6 +122,8 @@ nnoremap es :source $MYVIMRC " }}} "Changing unused ctrl bindings +"Turn on git blame +nnoremap GBlame "List all tags in the current buffer (replaced pageup, use CTRL-u instead) nnoremap BTags "List all tags in directory @@ -131,17 +134,14 @@ nnoremap History nnoremap / "Search within the whole project nnoremap Rg -"Search git history (replaced something weird with netrw) -nnoremap Commits -"Search git history within current buffer/selection -nnoremap BCommits "Move line down (uses vim-unimpaired) (replaced move down, use "j") -nnoremap ]e +nnoremap ddkP "Move line up (uses vim-unimpaired) (replaced move up, use "k") -nnoremap [e -"Search marks (replaced move down, use ) -nnoremap Marks -" nnoremap +nnoremap ddp +"Does not work because of legacy reasons +" nnoremap +"Search marks (replaced "j" clone) +nnoremap Marks "Search version controlled files (replaced move up, use "k") nnoremap GFiles "Search all files in directory @@ -155,6 +155,8 @@ nnoremap Commits "Search git history within current buffer/selection nnoremap BCommits +"Turn on git blame +inoremap GBlame "List all tags in the current buffer inoremap BTags "List all tags in directory @@ -165,16 +167,12 @@ inoremap History inoremap / "Search within the whole project inoremap Rg -"Search git history (replaced backspace clone) -inoremap Commits -"Search git history within current buffer/selection -inoremap BCommits "Move line down (uses vim-unimpaired) (replaced clone) -inoremap ]ei +inoremap ddkPi "Move line up (uses vim-unimpaired) (replaced start digraph, use command instead) -inoremap [ei -"Search marks (replaced clone) -inoremap Marks +inoremap ddpi +"Does not work because of legacy reasons +" inoremap Marks "Add line below (replaced execute single command in normal) inoremap o "Add line above @@ -188,9 +186,9 @@ nnoremap CHADopen "Search all snippets (uses ultisnips) inoremap Snippets "Search git history (replaced inserting characters from above) -nnoremap Commits +inoremap Commits "Search git history within current buffer/selection -nnoremap BCommits +inoremap BCommits "Add simple highlight removal nnoremap :nohlsearch @@ -234,7 +232,7 @@ command! X execute 'silent! x !doas /usr/bin/tee % >/dev/null' edit! " Plugins --- {{{ -" Toggle emmet completion useing with em +" Toggle emmet completion using with em let g:emmet_completion = 0 function ToggleEmmet() if g:emmet_completion