Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Games

Vim Releases 'Killersheep' Game To Demo Two New Features In Vim 8.2 (vim.org) 24

The creators of Vim have released a game called "Killersheep" to show off two new features in Vim 8.2.

"Before I did the keynote at VimConf 2018 I asked plugin developers what they wanted from Vim," reads the announcement at Vim.org. "The result was a very long list of requested features. The top two items were clear: Popup windows and text properties." After more than a year of development the new features are now ready for the Vim crowds.

Popup windows make it possible to show messages, function prototypes, code snippets and anything else on top of the text being edited. They open and close quickly and can be highlighted in many ways... This was no small effort. Although the existing window support could be used, popup windows are different enough to require a lot of extra logic. Especially to update the screen efficiently. Also to make it easy for plugin writers to use them; you don't need to tell Vim exactly where to show one, just give a reference point and the text to display, Vim will figure out the size and where the popup fits best.

Text properties can be used for something as simple as highlighting a text snippet or something as complicated as using an external parser to locate syntax items and highlight them asynchronously. This can be used instead of the pattern based syntax highlighting. A text property sticks with the text, also when inserting a word before it. And this is done efficiently by storing the properties with the text.

This discussion has been archived. No new comments can be posted.

Vim Releases 'Killersheep' Game To Demo Two New Features In Vim 8.2

Comments Filter:
  • https://youtu.be/A33pDTAFtdY?t... [youtu.be]

    ZZZzzzz Cant say that, lameness filter

    Great, so Nazi trolls can post there vitriolic ASCII art but I can't post this, WTF?

  • by JBrow ( 668684 ) <john DOT n DOT brow AT gmail DOT com> on Sunday December 15, 2019 @11:13AM (#59521080) Homepage
    Keep bringing the new functionality, someday VIM will overtake Emacs and win the ancient argument once and for all!
    • by jmccue ( 834797 )

      That is my take (no mod points). At the rate it is going it will rival Emacs in size

      I am grateful to the developers working on this and I have given to it's charity, but I wish it would keep to it's vi roots. To me 6.x had all the features I needed.

      Starting with 7.x I had to spend a lot time turning off many of new features that were enabled by default. Same thing happened in 8.1 and I am worried about what defaults 8.2 brings

    • Keep bringing the new functionality, someday VIM will overtake Emacs and win the ancient argument once and for all!

      I imagine the Heat Death of the Universe [wikipedia.org] will occur way before that.
      Which, come to think of it, is bound to the Emacs key-sequence ... :-)

  • If only it had a good editor!
    I guess I'll go back to EmacsOS....

    (FirefoxOS or ChromeOS aka Electron aka Atom editor is too dumbfangled, even for me.)

    -- the village iTard.

  • Vi people make jokes about how big EMACS is, but vi is large too. Even vim is big (slackware64):

            joe-4.6-x86_64-2.txz 13-Apr-2018 13:23 485K
            vim-8.2.0007-x86_64-1.txz 14-Dec-2019 18:10 7.0M

    • For comparison, the Emacs xz is 42 MB.
      That's about the uncompressed size of a smallish Linux distro full GUI.

    • by caseih ( 160668 )

      Yes but that number includes a lot of external scripts and plugins for vim and syntax highlighting for hundreds of languages and a dozen different color schemes. Not to mention international messages, documentation, and such. On most distros vim is available in several forms, including a minimal distribution, which is fairly small, thought not as small as vi. But yes I can believe vim is bigger than joe.

      If you think about it, 485k is ridiculously large for an editor also. That wouldn't even fit on a 5.2

  • ... to run that in Emacs. :-)

Every nonzero finite dimensional inner product space has an orthonormal basis. It makes sense, when you don't think about it.

Working...