feat(vim): introduce key mappings for folding
This enhancement includes key mappings designed to improve code folding in Vim. One of these mappings involves a double leader, which efficiently toggles the current fold. Additionally, another mapping utilizes the square bracket convention for seamless navigation between folds, employing the mnemonic "fold." Consideration was given to the potential conflict between the `f` key and "function." After thoughtful deliberation, the decision was made to use LSP for navigating around functions. The implementation is currently integrated with prr to narrow the focus of differentials to a single hunk. This refinement significantly enhances the manageability of reviewing large pull requests.
This commit is contained in:
parent
321ec9b37d
commit
3e07954682
1 changed files with 5 additions and 0 deletions
|
|
@ -57,12 +57,17 @@ noremap <silent> <leader>fs :w ++p<cr>
|
|||
|
||||
noremap <silent> <leader>o :Open<cr>
|
||||
|
||||
noremap <silent> <leader><leader> za
|
||||
|
||||
noremap <silent> [b :bp<cr>
|
||||
noremap <silent> ]b :bn<cr>
|
||||
|
||||
noremap <silent> [q :cprevious<cr>
|
||||
noremap <silent> ]q :cnext<cr>
|
||||
|
||||
noremap <silent> [f zk
|
||||
noremap <silent> ]f zj
|
||||
|
||||
" Add binding to "git open" to open the current file in the browser at the
|
||||
" current line. For some reason `:GBrowse` will only open the file and not go
|
||||
" to the line unless I use visual mode to select the line and then run
|
||||
|
|
|
|||
Loading…
Reference in a new issue