===== vimspector ===== ==== my php default config ==== { "configurations": { "Listen for XDebug": { "adapter": "vscode-php-debug", "filetypes": [ "php" ], // optional "configuration": { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9003, "stopOnEntry": false, "pathMappings": { "/var/www/html": "${workspaceRoot}" } }, "breakpoints": { "exception": { "Info": "N", "Notice": "N", "Warning": "N", "Exception": "N", "Error": "N", "*": "N" } } } } } ===== replace pattern after string ===== :s/\(|\s.*\)\@<=\s/\ /g ===== folding ===== ==== commands ==== * ''zf#j'' creates a fold from the cursor down # lines. * ''zf/string'' creates a fold from the cursor to string . * ''zj'' moves the cursor to the next fold. * ''zk'' moves the cursor to the previous fold. * ''zo'' opens a fold at the cursor. * ''zO'' opens all folds at the cursor. * ''zm'' increases the foldlevel by one. * ''zM'' closes all open folds. * ''zr'' decreases the foldlevel by one. * ''zR'' decreases the foldlevel to zero -- all folds will be open. * ''zd'' deletes the fold at the cursor. * ''zE'' deletes all folds. * ''[z'' move to start of open fold. * '']z'' move to end of open fold. via [[https://gist.github.com/lestoni/8c74da455cce3d36eb68|https://gist.github.com/lestoni/8c74da455cce3d36eb68]] --- [[https://neovim.io/doc/user/fold.html#_2.-fold-commands|Neovim docs]] [[https://stackoverflow.com/questions/61795798/recalculating-folds-in-vim-without-applying-foldlevel#comment111082546_61795798]]