sponsor Vim development Vim logo Vim Book Ad

myfold.vim : make it easy to open/close fold and foldcolumn

 script karma  Rating 0/4, Downloaded by 608  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.
 

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
myfold.vim 0.1 2006-08-17 6.0 t9md jp Initial upload
ip used for rating: 3.149.254.35

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