On Mar 24, 2014 10:53 PM, "LCD 47" <[email protected]> wrote: > > On 24 March 2014, Nikolay Pavlov <[email protected]> wrote: > > On Mar 24, 2014 11:08 AM, "LCD 47" <[email protected]> wrote: > > > On 23 March 2014, ZyX <[email protected]> wrote: > [...] > > > > 13. Ability to list and remove unused plugins. Reason: it is just > > > > convenient. Low priority. > > > > > > That would imply keeping stats about when each plugin is > > > actually used. A complicated, expensive, and tricky task, for very > > > little gain. > > > > Simplest implementation is just taking a list of currently active > > plugins and remove everything but them. VAM/Vundle/NeoBundle have > > everything what is necessary to perform such a task. It is not so easy > > for FHS-based installations, but it is easy to implement if you just > > do not provide this functionality for this task. > > > > And check out :scriptnames. Recording its output at VimLeave makes > > such functionality rather easy. > [...] > > I'm not convinced it's quite that easy. How would you deal with > multiple Vims open at the same time? There's a race condition there > in updating the stats, and Vim doesn't try to deal with things like > locking.
You do not need to be 100% precise here. Just use another file with random name near and rename(). In the rather unlikely cause of read (vim1)-read(vim2)-write(vim1)-write(vim2) where updates from vim1 are lost it is OK to lose them. Most of time you do not have problems even if you simply use writefile(). > > /lcd > > -- > -- > 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 > > --- > You received this message because you are subscribed to the Google Groups "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
