On 10 November 2010 18:58, pwightman wrote:
>
> I'm new to scripting in vim and I'm having trouble finding a good resource to
> help me accomplish something. I'm using a plugin called
> http://www.vim.org/scripts/script.php?script_id=934 ftpsync  that I really
> enjoy, however, I'd like to add some functionality. I can update one buffer
> at a time using <S-F6> or :call FtpUpdate(), but I would like to use a cmap
> or something similar to have it update all the buffers currently open
> instead of the current buffer I'm focus on. Is there a simple way to cycle
> through all the open buffers and call a FtpUpdate() from each of them? I've
> look through a lot of tutorials and references and I've found how to get a
> list of buffers, but not really how to call a function on buffer from
> another buffer. Any help would be appreciated :-)

Perhaps bufdo?

:h bufdo

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d

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