Remove vim-unimpaired and vim-repeat, and manually add the [<Space> ]<Space> feature of vim-unimpaired that adds lines above and below the current one

This commit is contained in:
Kevin MacMartin 2024-03-05 21:34:28 -05:00
parent 17d829c8fc
commit 28cad284ac
5 changed files with 7 additions and 19 deletions

6
.gitmodules vendored
View file

@ -22,18 +22,12 @@
[submodule "vim/bundle/vim-signify"]
path = vim/bundle/vim-signify
url = https://github.com/mhinz/vim-signify
[submodule "vim/bundle/vim-repeat"]
path = vim/bundle/vim-repeat
url = https://github.com/tpope/vim-repeat.git
[submodule "vim/bundle/vim-polyglot-darkcloud"]
path = vim/bundle/vim-polyglot-darkcloud
url = https://github.com/prurigro/vim-polyglot-darkcloud.git
[submodule "vim/bundle/tabular"]
path = vim/bundle/tabular
url = https://github.com/godlygeek/tabular
[submodule "vim/bundle/vim-unimpaired"]
path = vim/bundle/vim-unimpaired
url = https://github.com/tpope/vim-unimpaired.git
[submodule "vim/bundle/ReplaceWithRegister"]
path = vim/bundle/ReplaceWithRegister
url = https://github.com/prurigro/ReplaceWithRegister.git

View file

@ -144,8 +144,6 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the
* [vim-signify](https://github.com/mhinz/vim-signify): When a version controlled file is changed, this displays a column showing where and how, and allows for navigation to and between differences
* [vim-togglelist](https://github.com/milkypostman/vim-togglelist): A simple plugin for vim that allows you to bind a key to toggle the Location List and the Quickfix List
* [vim-trailing-whitespace](https://github.com/bronson/vim-trailing-whitespace): Highlights and allows for the easy removal of trailing whitespace in documents
* [vim-unimpaired](https://github.com/tpope/vim-unimpaired): Pairs of handy bracket mappings
* [vim-repeat](https://github.com/tpope/vim-repeat): Enable repeating supported plugin maps with "."
## Credits

@ -1 +0,0 @@
Subproject commit 24afe922e6a05891756ecf331f39a1f6743d3d5a

@ -1 +0,0 @@
Subproject commit 6d44a6dc2ec34607c41ec78acf81657248580bf1

View file

@ -134,12 +134,10 @@
" <Leader>w | (N) -> remove whitespace
" <Tab> | (V) -> indent all the lines currently selected
" <Tab> | (N) -> indent the current line
" <Leader>> | (V) -> indent all the lines currently selected
" <Leader>> | (N) -> indent the current line
" <Shift-Tab> | (V) -> un-indent all the lines currently selected
" <Shift-Tab> | (N) -> un-indent the current line
" <Leader>< | (V) -> un-indent all the lines currently selected
" <Leader>< | (N) -> un-indent the current line
" [<Space> | (N) -> insert a blank line above the current one
" ]<Space> | (N) -> insert a blank line below the current one
"
" (macros)
" ' | (N) -> run a macro
@ -521,15 +519,15 @@
"remove trailing whitespace
nnoremap <silent><expr> <Leader>w ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
"tab/<Leader>> and untab/<Leader>< the currently selected lines
"tab and untab the currently selected lines
vnoremap <Tab> >gv
nnoremap <Tab> v>gv<Esc>
vnoremap <Leader>> >gv
nnoremap <Leader>> v>gv<Esc>
vnoremap <S-Tab> <gv
nnoremap <S-Tab> v<gv<Esc>
vnoremap <Leader>< <gv
nnoremap <Leader>< v<gv<Esc>
"insert blank lines above and below the current one
nnoremap <silent> ]<Space> :<C-u>call append(line("."), repeat([""], v:count1))<CR>
nnoremap <silent> [<Space> :<C-u>call append(line(".")-1, repeat([""], v:count1))<CR>
"}
"MACROS:{