On 10/06/08 16:34, Charles E Campbell Jr wrote: [...] > Now, the contention that a text editor just shouldn't have > sin()/cos()/floating-point support; that's a different matter. > Personally, I think it depends on what an individual wants to do. For > example, consider someone who wishes to present coordinates in both > rectangular and polar forms. Perhaps someone would like to do some > fancy textwork and have it justified inside some mathematically defined > shape (cirles/ellipses) -- maybe even provide a plugin to do such. I > know that in the case of circles/ellipses one could likely do something > with the Bresenham integer-only algorithm (I've provided a > circle/ellipse drawing tool with DrawIt), but that requires knowledge > about that type of algorithm. Perhaps one would like to provide a small > spreadsheet capability in vim, to crosscheck or spot-check output to a > file...
Or, with SVG graphics (which are actually a sort of text format, maybe barely human-readable) becoming more and more common, you might need trigonometric functions to check, at least approximately, how much space some slanted line -- possibly some slanted line of text -- would need. > > Bram has already mentioned ease of doing something with columns of numbers. Yes, and for very long files, one might perhaps want an additional digit or two in the "percentage" item of the status line. > > However, I'd agree that there shouldn't be any effort devoted to > supporting "special" math functions in vim (ie. Bessel functions, > parabolic cylinder functions, elliptical functions, ...) -- just the > small interfaces to those functions that come with most compilers (trig, > log, exponential). The more complex the functions, the fewer people can be expected to know how to use them anyway. Trig, log and exponential are at high-school level, or at least they were when I was in high school (latin-math section) forty years ago. I wouldn't expect anyone below college level to even know what Bessel etc. are really for, even if they've heard the name, which is already far from certain. > > And, as an off-subject item: I'd really like to have Vince Negri's > conceal/ownsyntax patch incorporated! Working with LaTeX would be so > much better... Even "fancy display" of HTML -- switch from "source" display to "rendering" display by hitting a (mapped) key. Here though, instead of Vince's patch one could send the text to a browser, maybe a console-mode one such as Lynx displaying in Vim's (not gvim's) own console, or else something like ":exe '!seamonkey -url file:///' . expand('%:p')" or similar (for full generality one would need to percent-escape spaces and other "special" characters), making use of the fact that Mozilla browsers will by default use something very much akin to Vim's client-server facility, passing the URL to an already-running instance if there is one. Best regards, Tony. -- "If dolphins are so smart, why did Flipper work for television?" --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---