mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 03:34:10 -05:00
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:
parent
23f3293b9b
commit
ca8553d777
3 changed files with 18 additions and 60 deletions
|
@ -64,6 +64,8 @@ A theme, config and collection of plugins for Neovim
|
||||||
|
|
||||||
### Keyboard
|
### Keyboard
|
||||||
|
|
||||||
|
A more complete list of key bindings exists at the top of `vim/config/keyboard.vim`
|
||||||
|
|
||||||
#### Sidebars
|
#### Sidebars
|
||||||
|
|
||||||
| Binding | Mode | Action |
|
| Binding | Mode | Action |
|
||||||
|
@ -76,14 +78,13 @@ A theme, config and collection of plugins for Neovim
|
||||||
|
|
||||||
| Binding | Mode | Action |
|
| 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 |
|
| F1 | ALL | Toggle line wrapping |
|
||||||
| F2 | ALL | Toggle highlighting of spelling mistakes |
|
| F2 | ALL | Toggle highlighting of spelling mistakes |
|
||||||
| F3 | ALL | Toggle external-paste mode |
|
| F3 | ALL | Toggle external-paste mode |
|
||||||
| F4 | ALL | Toggle source code syntax checking |
|
| F4 | ALL | Toggle source code syntax checking |
|
||||||
| | | |
|
|
||||||
| \` | N | Toggle gutter (left bar with line numbers etc.) |
|
|
||||||
|
|
||||||
#### Spell Check
|
#### Spell Check
|
||||||
|
|
||||||
|
|
|
@ -41,14 +41,12 @@
|
||||||
" <Ctrl-t> | (N) -> open a new tab
|
" <Ctrl-t> | (N) -> open a new tab
|
||||||
"
|
"
|
||||||
" (split)
|
" (split)
|
||||||
|
" <Ctrl-w>] | (N) -> split vertically
|
||||||
|
" <Ctrl-w>[ | (N) -> split horizontally
|
||||||
|
"
|
||||||
|
" (rotate)
|
||||||
" <Ctrl-w>{ | (N) -> rotate counter-clockwise
|
" <Ctrl-w>{ | (N) -> rotate counter-clockwise
|
||||||
" <Ctrl-w>} | (N) -> rotate 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)
|
" (display)
|
||||||
" <Backspace> | (N) -> reset window and clear search
|
" <Backspace> | (N) -> reset window and clear search
|
||||||
|
@ -64,11 +62,8 @@
|
||||||
" ik | (N) -> add cursor character as a keyword
|
" ik | (N) -> add cursor character as a keyword
|
||||||
" iK | (N) -> remove cursor character as a keyword
|
" iK | (N) -> remove cursor character as a keyword
|
||||||
"
|
"
|
||||||
" ~ | (N) -> pop-up a command reference
|
" ` | (N) -> toggle the gutter
|
||||||
" <Leader><F1> | (N) -> toggle the vim reference manual
|
" ~ | (N) -> toggle folds
|
||||||
" ` | (A) -> toggle the gutter(numbers+folds+signify)
|
|
||||||
"
|
|
||||||
" <Space><Space> | (N) -> toggle selected fold
|
|
||||||
"
|
"
|
||||||
" <F1> | (A) -> toggle line wrapping
|
" <F1> | (A) -> toggle line wrapping
|
||||||
" <F2> | (A) -> toggle spell check
|
" <F2> | (A) -> toggle spell check
|
||||||
|
@ -335,14 +330,13 @@
|
||||||
"}
|
"}
|
||||||
|
|
||||||
"SPLIT:{
|
"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>} ':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:{
|
"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 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>'
|
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
|
"toggle the gutter
|
||||||
nnoremap <silent><expr> ~ ':TCommand<CR>'
|
|
||||||
|
|
||||||
"toggle the display of the left 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>'
|
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
|
"toggle the fold sidebar
|
||||||
nnoremap <Space><Space> za
|
nnoremap ~ zRzi
|
||||||
|
|
||||||
"toggle line wrapping (and bottom bar if using the gui)
|
"toggle line wrapping (and bottom bar if using the gui)
|
||||||
nnoremap <silent><expr> <F1> ':set wrap!<CR>:echo "line wrapping toggled"<CR>'
|
nnoremap <silent><expr> <F1> ':set wrap!<CR>:echo "line wrapping toggled"<CR>'
|
||||||
|
|
|
@ -128,40 +128,6 @@
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufFilePost * filetype detect
|
autocmd BufFilePost * filetype detect
|
||||||
augroup END
|
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()
|
|
||||||
"}}}
|
"}}}
|
||||||
"}}}
|
"}}}
|
||||||
"}}}
|
"}}}
|
||||||
|
|
Loading…
Reference in a new issue