On May 26, 7:32 am, Tony Mechelynck <[email protected]> wrote: > > As for floating point numbers, I constantly use Vim as a floating-point > calculator; I wouldn't say it's a useless feature. Not a /necessary/ one > -- I could do without the trig and exp/log functions
When floating point was included, I thought it to be fairly useless, more of a "look what my editor can do!" feature without much real use. When I want to calculate things, I generally use a calculator. All that changed when I had to compute a trig function on a large number of items scattered through a text file. I don't remember why I needed to do this...it may have been in a debug log file from some code I was working on, or maybe in some code itself with hard-coded numbers I needed to check. Regardless, it was simple to do a :g command to find each number and print out the number and its output for each case. I did in seconds what it may have taken a good part of an hour doing by hand, finding each input and plugging it into Windows' Calculator application, or even into a spreadsheet. I've found many other uses since then, including quick calculations made faster by the support for things like getting the word under the cursor. Persistent undo sounded originally to me like something that would be a neat feature, but that I wouldn't use much. Nevertheless, I think that I will turn it on and give it a try. And sometime, like with floating point, I'll find a specific situation where I'm incredibly grateful to have it. -- You received this message from the "vim_dev" 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
