Remove the split 33% and 66% stuff as it's really not that useful, remove the binding that had ~ run :TCommand as this is no longer included, and rather than having <space><space> toggle folding and fold the current point, use ~ to toggle folds without closing any of them (at which point normal bindings or the mouse can be used)

This commit is contained in:
Kevin MacMartin 2024-03-28 17:44:30 -04:00
parent 23f3293b9b
commit ca8553d777
3 changed files with 18 additions and 60 deletions

View File

@ -64,6 +64,8 @@ A theme, config and collection of plugins for Neovim
### Keyboard
A more complete list of key bindings exists at the top of `vim/config/keyboard.vim`
#### Sidebars
| Binding | Mode | Action |
@ -76,14 +78,13 @@ A theme, config and collection of plugins for Neovim
| Binding | Mode | Action |
|-----------------|------|-------------------------------------------------|
| ~ | N | Popup a command list dialog |
| \` | N | Toggle gutter (left bar with line numbers, etc) |
| ~ | N | Toggle code the code folding sidebar |
| | | |
| F1 | ALL | Toggle line wrapping |
| F2 | ALL | Toggle highlighting of spelling mistakes |
| F3 | ALL | Toggle external-paste mode |
| F4 | ALL | Toggle source code syntax checking |
| | | |
| \` | N | Toggle gutter (left bar with line numbers etc.) |
#### Spell Check

View File

@ -41,14 +41,12 @@
" <Ctrl-t> | (N) -> open a new tab
"
" (split)
" <Ctrl-w>] | (N) -> split vertically
" <Ctrl-w>[ | (N) -> split horizontally
"
" (rotate)
" <Ctrl-w>{ | (N) -> rotate counter-clockwise
" <Ctrl-w>} | (N) -> rotate clockwise
" <Ctrl-w>] | (N) -> split vertically
" <Ctrl-w>0 | (N) -> create a vertical split 33% of the window
" <Ctrl-w>) | (N) -> create a vertical split 66% of the window
" <Ctrl-w>[ | (N) -> split horizontally
" <Ctrl-w>9 | (N) -> create a horizontal split 33% of the window
" <Ctrl-w>( | (N) -> create a horizontal split 66% of the window
"
" (display)
" <Backspace> | (N) -> reset window and clear search
@ -64,11 +62,8 @@
" ik | (N) -> add cursor character as a keyword
" iK | (N) -> remove cursor character as a keyword
"
" ~ | (N) -> pop-up a command reference
" <Leader><F1> | (N) -> toggle the vim reference manual
" ` | (A) -> toggle the gutter(numbers+folds+signify)
"
" <Space><Space> | (N) -> toggle selected fold
" ` | (N) -> toggle the gutter
" ~ | (N) -> toggle folds
"
" <F1> | (A) -> toggle line wrapping
" <F2> | (A) -> toggle spell check
@ -335,14 +330,13 @@
"}
"SPLIT:{
nmap <expr><silent> <C-w>] ':vs<CR>'
nmap <expr><silent> <C-w>[ ':sp<CR>:wincmd j<CR>'
"}
"ROTATE:{
nmap <expr><silent> <C-w>{ ':wincmd R<CR>'
nmap <expr><silent> <C-w>} ':wincmd r<CR>'
nmap <expr><silent> <C-w>] ':vs<CR>'
nmap <expr><silent> <C-w>0 ':VS33<CR>'
nmap <expr><silent> <C-w>) ':VS66<CR>'
nmap <expr><silent> <C-w>[ ':sp<CR>:wincmd j<CR>'
nmap <expr><silent> <C-w>9 ':SP33<CR>'
nmap <expr><silent> <C-w>( ':SP66<CR>'
"}
"DISPLAY:{
@ -365,14 +359,11 @@
nmap <expr><silent> <Leader>k ':execute "setlocal iskeyword+=".getline(".")[col(".")-1]<CR>:echo "The character ".getline(".")[col(".")-1]." has been added to iskeyword"<CR>'
nmap <expr><silent> <Leader>K ':execute "setlocal iskeyword-=".getline(".")[col(".")-1]<CR>:echo "The character ".getline(".")[col(".")-1]." has been removed from iskeyword"<CR>'
"toggle the command reference box
nnoremap <silent><expr> ~ ':TCommand<CR>'
"toggle the display of the left gutter
"toggle the gutter
nnoremap <silent><expr> ` ':if (&number)<Bar>set nonumber<Bar>if exists("b:sy")<Bar>SignifyDisable<Bar>endif<Bar>else<Bar>set number<Bar>if exists("b:sy")<Bar>SignifyEnable<Bar>endif<Bar>endif<CR>:echo "gutter visibility toggled"<CR>'
"toggle folded code at fold-points
nnoremap <Space><Space> za
"toggle the fold sidebar
nnoremap ~ zRzi
"toggle line wrapping (and bottom bar if using the gui)
nnoremap <silent><expr> <F1> ':set wrap!<CR>:echo "line wrapping toggled"<CR>'

View File

@ -128,40 +128,6 @@
autocmd!
autocmd BufFilePost * filetype detect
augroup END
"functions to create a split using 33% and 66% of the height
function s:SPResize33()
sp|wincmd =|q
endfunction
function s:sp33()
sp|call s:SPResize33()|wincmd j
endfunction
command! -buffer SP33 call s:sp33()
function s:sp66()
sp|wincmd j|call s:SPResize33()
endfunction
command! -buffer SP66 call s:sp66()
"functions to create a vertical split using 33% and 66% width
function s:VSResize66()
vs|wincmd =|q
endfunction
function s:vs66()
vs|call s:VSResize66()
endfunction
command! -buffer VS66 call s:vs66()
function s:vs33()
vs|wincmd h|call s:VSResize66()|wincmd l
endfunction
command! -buffer VS33 call s:vs33()
"}}}
"}}}
"}}}