Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vim [2025/09/12 21:08] gevattervim [2025/11/04 12:17] (current) gevatter
Line 1: Line 1:
 +===== vimspector =====
 +
 +==== my php default config ====
 +
 +
 +<code>
 +{
 +  "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"
 +        }
 +      }
 +    }
 +  }
 +}
 +</code>
 +
 ===== replace pattern after string ===== ===== replace pattern after string =====
 +
   :s/\(|\s.*\)\@<=\s/\&#8201;/g   :s/\(|\s.*\)\@<=\s/\&#8201;/g
-  +
 ===== folding ===== ===== 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]]