On Oct 24, 2011, at 3:34 PM, Marc Weber wrote: > Excerpts from Wael Nasreddine's message of Mon Oct 24 14:38:34 +0200 2011: >> I'm trying to find a way to support ViM in WatchTower, a project of mine to >> track spent time per project per file, and to do that I have to know which >> documents are currently open in all ViM processes, so is there a way (or a >> plugin) that can provide me with absolute paths to all open documents in all >> buffers ? > > :h client-server. Also check www.vim.org There are already some time > tracking plugins - not sure whether they do what you need though.
Actually I won't be needing a time-tracking plugin, because that's what WatchTower is all about, I would just like to add support for ViM and to do that all I need is open file list (or buffer lists) > > client-server provides ways to run arbitrary VIML code so you can > receive buffer lists. Write back again if you need more help > I checked a bit around and I can communicate very easy with a Gvim/MacVim but I couldn't communicate with a ViM sessions, I guess ViM from terminal should be invoked as a server in order to communicate with it (but you already mentioned that :)), Would you have a command in mind to just get the buffer list from one server? I was able to get the server list (using mvim --serverlist) so I'm thinking that I should iterate over the servers and issue the command to get a list of open files. Thank Marc > non (g)vim: you must use X and set servername explicitly > > Marc Weber > > -- > 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 -- Wael Nasreddine: Design & Coding at TechnoGate contact | [email protected] - +33.6.41.68.38.35 | skype - eMxyzptlk -- 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
