sponsor Vim development Vim logo Vim Book Ad

foldMarker.vim : Creat fold marker and adjust fold level with a new command ':FoldMarker'

 script karma  Rating 0/0, Downloaded by 831  Comments, bugs, improvements  Vim wiki

created by
Tommy Chen
 
script type
utility
 
description
foldMarker.vim defines a new command `:FoldMarker`, which can accpet six arguments to creat fold marker and adjust fold level.

*   `l`: creat a pair of fold markers under cursor `Line`
*   `a`: creat a pair of fold markers `Above` fold area
*   `b`: creat a pair of fold markers `Below` fold area
*   `s`: creat a pair of fold markers `Surrounding` Visual area
*   `c`: `Creat` fold level
*   `d`: `Delete` fold level

Download the plugin from GitHub Repository:

https://github.com/Bozar/foldMarker
 
install details
Copy the following two files to `~/.vim/`(`vimfiles/` for Windows users) :

    autoload/moveCursor.vim
    plugin/foldMarker.vim

Please be sure the plugin will not overwrite existing files.

Restart Vim.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
foldMarker.tar.gz 1.1.0 2015-05-16 7.4 Tommy Chen *   1.1.0
    +   Fix: Change search pattern for script variable `s:FoldEnd`, so that the plugin can recognize fold markers such as `[[[`
    +   Add: Add 8 new arguments, L/A/B/S/C/r/R/h
    +   Add: Add a global variable `g:MoveFold_FoldMarker` to move new fold marker
    +   Add: Let `:FoldMarker` accpet more ranges besides `'<` and `'>`, such as `:1,5FoldMarker`
foldMarker.tar.gz 1.0.0 2015-05-01 7.0 Tommy Chen Initial upload
ip used for rating: 3.145.12.242

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github