Hello,

"gabriel" wrote:

> I wrote this function that generates toggle functions:

[...]

> I would like to make a version that works under 6.3 but I can't quite
> figure it out. I can't actually figure out why it doesn't work in 6.3
> short of the fact that I can't seam to define any functions a all via
> execute under vim 6.3

Ages ago, I wrote this mis-named plugin that generates toggle functions for 
almost anything (set-variables, mappings, abbreviations, etc)
  http://code.google.com/p/lh-vim/source/browse/misc/trunk/plugin/Triggers.vim

The first versions are still available on SF:
  http://www.vim.org/scripts/script.php?script_id=48

And more "recently" (it's relative), I came up with a way to cycle a variable 
among a list of possible values:
  lh#menu#def_toggle_item ->  
http://code.google.com/p/lh-vim/wiki/lhVimLib#Menus_related_functions
  example of use -> 
http://code.google.com/p/lh-vim/source/browse/vim-lib/trunk/tests/lh/test-toggle-menu.vim

(it's vim7 only though)


PS: upgrading your vim version is also a good idea. I systematically install a 
recent version of vim in my $HOME -- by compiling its sources.
 
-- 
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/vim/

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to