Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save miku/7dd1dd78f062f1cbc3c51e01153d48a5 to your computer and use it in GitHub Desktop.
Save miku/7dd1dd78f062f1cbc3c51e01153d48a5 to your computer and use it in GitHub Desktop.

Revisions

  1. @lestoni lestoni revised this gist Feb 20, 2021. No changes.
  2. Tony Mutai revised this gist Jun 11, 2015. 1 changed file with 14 additions and 14 deletions.
    28 changes: 14 additions & 14 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

    -`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.
    - `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.
  3. Tony Mutai revised this gist Jun 11, 2015. 1 changed file with 14 additions and 14 deletions.
    28 changes: 14 additions & 14 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

    `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.
    -`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.
  4. Tony Mutai revised this gist Jun 11, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)[https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun]
    via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

    `zf#j` creates a fold from the cursor down # lines.
    `zf/string` creates a fold from the cursor to string .
  5. Tony Mutai created this gist Jun 11, 2015.
    16 changes: 16 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)[https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun]

    `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.