myfold.vim : make it easy to open/close fold and foldcolumn
script karma |
Rating 0/4,
Downloaded by 692 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
t9md jp |
|
script type |
utility |
|
description |
NOT MAINTAINED , I don't recommend you to use this script, this was script I created when I was vim newbee.
This plugin provide functionality to enable or disalbe
fold more easier.
two command wil added.
:MyFoldEnable
:MyFoldDisable
Parameters are based on my favorite setting( syntax base ), so please modify
these values directly in function if you need.
|
|
install details |
-----------------------------
** Install
-----------------------------
1. put this file to $HOME/.vim/plugin folder or other.
2. start vim and edit an source code.
3. now, you can type two commands, from vim command mode.
:MyFoldEnable
:MyFoldDisable
-----------------------------
** My private hilight and keymap in ~/.vimrc
-----------------------------
# I don't like default fold hilight( I always use vim via SSH cterm ).
highlight Folded ctermfg=6 ctermbg=0
highlight FoldColumn ctermfg=6 ctermbg=0
# set keyboard shortcut.
nnoremap <silent> <F4> :MyFoldEnable<CR>
nnoremap <silent> <F5> :MyFoldDisable<CR>
-----------------------------
** Short Tutorial
-----------------------------
1. edit program file( I like ruby ).
vim proglam.rb
2. type <F4> key in normal mode.
you can see folded lines( by syntax )and foldcolumn.
3. type <F4> key in normal mode.
hide foldcolumn. not change open/close state each fold.
4. type <F5> key in normal mode.
open all fold and hide foldcolumn. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.144.91.115
|