From b28082ef68953526bd4fead45c9e339dc977a34f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 17 Mar 2024 17:47:58 -0400 Subject: [PATCH] Remove the ReplaceWithRegister plugin properly as "P" has the desired functionality now and we can retain the existing logic by swapping the p and P bindings --- .gitmodules | 3 --- readme.md | 1 - vim/bundle/ReplaceWithRegister | 1 - vim/config/keyboard.vim | 2 +- 4 files changed, 1 insertion(+), 6 deletions(-) delete mode 160000 vim/bundle/ReplaceWithRegister diff --git a/.gitmodules b/.gitmodules index 995646c..861a623 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,9 +22,6 @@ [submodule "vim/bundle/tabular"] path = vim/bundle/tabular url = https://github.com/godlygeek/tabular -[submodule "vim/bundle/ReplaceWithRegister"] - path = vim/bundle/ReplaceWithRegister - url = https://github.com/prurigro/ReplaceWithRegister.git [submodule "vim/bundle/splitjoin.vim"] path = vim/bundle/splitjoin.vim url = https://github.com/AndrewRadev/splitjoin.vim diff --git a/readme.md b/readme.md index c5042a0..7e58da8 100644 --- a/readme.md +++ b/readme.md @@ -130,7 +130,6 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the * [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter): Treesitter configurations and abstraction layer for Neovim * [nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects): Syntax aware text-objects, select, move, swap, and peek support * [qf.nvim](https://github.com/ten3roberts/qf.nvim): Extends the default quickfix and location lists for neovim -* [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister): Replace text with the contents of a register (for paste+replace without writing over the buffer) * [splitjoin.vim](https://github.com/AndrewRadev/splitjoin.vim): Simplifies the transition between multiline and single-line code * [tabular](https://github.com/godlygeek/tabular): Vim script for text filtering and alignment * [vim-fugitive](https://github.com/tpope/vim-fugitive): A wrapper integrating git into vim in such a way as to provide features neither of them could offer on their own diff --git a/vim/bundle/ReplaceWithRegister b/vim/bundle/ReplaceWithRegister deleted file mode 160000 index ae316e2..0000000 --- a/vim/bundle/ReplaceWithRegister +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ae316e25ddb1b33feb644afc2c29c4f48653b55d diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index bfd29b8..53c2bf2 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -440,7 +440,7 @@ "P pastes and replaces the buffer, p pastes and keeps it vnoremap P p - xmap p ReplaceWithRegisterVisual + vnoremap p P "delete/cut operations that don't replace the paste buffer nnoremap x "_x