X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/9c96d4096019fc7bd164c5fb35790762edc0c8e8..85372e648b5515b94e6b8af9d74f681302a6d126:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 0a09c8a..8cf8255 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -201,9 +201,15 @@ if !has("nvim") " staging Plug 'puremourning/vimspector' " replaced by lsp {{{2 let g:vimspector_enable_mappings = 'HUMAN' - " }}} Plug 'vim-scripts/syntaxrange' " replaced by treesitter {{{2 - " }}} + Plug 'vim-scripts/replacewithregister' " replaced by mini.operators {{{2 + " sort operator replaced by mini.operaters {{{2 + function! SortLinesOpFunc(...) + '[,']sort + endfunction + nnoremap gs :set operatorfunc=SortLinesOpFuncg@ + vnoremap gs :sort + " }}}2 endif Plug 'alepez/vim-gtest' @@ -239,14 +245,15 @@ Plug 'tpope/vim-abolish' Plug 'tpope/vim-characterize' " Plug 'tpope/vim-endwise' " TODO: delete? Plug 'tpope/vim-eunuch' -Plug 'tpope/vim-fugitive' +Plug 'tpope/vim-fugitive' " {{{2 +let g:fugitive_legacy_commands = v:false +"}}} Plug 'tpope/vim-repeat' Plug 'tpope/vim-scriptease' Plug 'tpope/vim-speeddating' Plug 'tpope/vim-unimpaired' Plug 'tweekmonster/spellrotate.vim' " Plug 'vim-scripts/mediawiki.vim' " TODO: delete? -Plug 'vim-scripts/replacewithregister' " FIXME: is overridden by lsp Plug 'wincent/loupe' " text objects @@ -451,7 +458,9 @@ set shiftround " round to 'shiftwidth' for "<<" and ">>" set expandtab " expand to spaces in Insert mode set autoindent -set pastetoggle= " key sequence to toggle paste mode +if !has('nvim') + set pastetoggle= " key sequence to toggle paste mode +endif " folding {{{2 set foldmethod=marker " folding type @@ -921,13 +930,6 @@ if !exists(":DiffOrig") \ | wincmd p | diffthis endif -" sort operator {{{2 -function! SortLinesOpFunc(...) - '[,']sort -endfunction -nnoremap gs :set operatorfunc=SortLinesOpFuncg@ -vnoremap gs :sort - " edit configs {{{2 " TODO: populate location list with both .vim and .lua files " TODO: create file if it doesn't exist in nvim or vim rtps