vim:keys:TODO: Modularize changes to ]]/][ maps

This commit is contained in:
2024-09-25 12:20:39 +02:00
parent 6f8fc406d6
commit 459e0b7113

View File

@@ -276,7 +276,7 @@ vnoremap <leader>utc <Cmd>s/\v(^\|[^0-9])\zs[0-9]{10}\ze([^0-9]\|$)/\=strftime("
" TODO: [count] sections? (see :h [[)
nnoremap <silent> [[ m':call search('\v^(\S.*)?\{', "bW")<CR>
vnoremap <silent> [[ m':<C-U>exe "normal! gv"<Bar>call search('\v^(\S.*)?\{', "bW")<CR>
" map ]] here and remap ][ down below for better modularization
" TODO: map ]] here and remap ][ down below for better modularization
nnoremap <silent> ][ m':call search('\v^(\S.*)?\{', "W")<CR>
vnoremap <silent> ][ m':<C-U>exe "normal! gv"<Bar>call search('\v^(\S.*)?\{', "W")<CR>