Martin Rykfors
Martin Rykfors
Start out with the following text: ``` int foo (bar b) { if (true) { int a; int b; } } ``` Position the cursor on the `int a;` line...
Start out with the following text: ``` foo (bar) ``` In gVim, positioning the cursor on the `)` and doing `dib` deletes inside the brackets. In VsVim nothing happens. It...
Start out with a block of text with at least two lines. Move the cursor to the middle of the first line. Do `vj` to select a bit of both...
If you are in insert mode at the end of a line and fire off `` and some normal mode command like `zz`, the cursor will step back one character...
Start with the following text with the cursor at the beginning of the line: ``` first second ``` Change the first word to `hello`, but while correcting a typo: ```...
Start with the following with the cursor somewhere on the second line: ``` if (true){ int a; int b; } ``` In gVim, pressing `ciB` will delete the text between...
Running the command `cursorless cheat sheet` will make Firefox try to open the generated cheat sheet file. However, in more recent versions of Ubuntu, Firefox will be unable to open...
Python code: ``` if True: air() elif False: bat() elif file_not_found: cap() ``` * `pre every branch air` places the cursor only before the `if` * `pre every branch bat`...
Input: ``` if True: air() ``` Snippet definition (named `else if`) ``` { "elseIfStatement": { "definitions": [ { "scope": { "langIds": [ "python" ] }, "body": [ "elif $condition:", "\t$consequence"...
I have the following two snippets defined (python): ``` # comprehension [| for | in |] ``` ``` # if inline | if | else | ``` Running `snippet comprehension...