Slashdot Mirror


Vim 8.0 Released! (google.com)

Long-time Slashdot reader MrKaos writes: The venerable and essential vim has had it's first major release in 10 years. Lots of new and interesting features including, vim script improvements, JSON support, messages exchange with background processes, a test framework and a bunch of Windows DirectX compatibility improvements. A package manager has been added to handle the ever-growing plug-in library, start-up changes and support for a lot of old platforms has been dropped. Many Vimprovements!

125 comments

  1. Rivalry by colinrichardday · · Score: 5, Funny

    Emacs releases an upgrade and vi has to do the same. Ooh.

    1. Re:Rivalry by plover · · Score: 5, Funny

      It's a conspiracy, I tells ya. They put GPS and tracking in it.

      Of course, emacs has had GPS support for 15 years now...

      --
      John
    2. Re:Rivalry by Anonymous Coward · · Score: 0

      It seems to be spurred on by neovim, a fork of vim.

    3. Re:Rivalry by Fwipp · · Score: 4, Insightful

      Vim's 8.0 release was actually September 12th. Emacs 25.1 came out yesterday, September 17th.

      Slashdot is just incredibly slow. :)

    4. Re:Rivalry by Anonymous Coward · · Score: 0

      Slashdot is just incredibly slow. :)

      Or just incredibly coordinated.

    5. Re:Rivalry by Anonymous Coward · · Score: 0

      That's because Slashdot uses Vim. They should have switched to Emacs a long time ago.

    6. Re:Rivalry by fahrbot-bot · · Score: 3, Informative

      Emacs releases an upgrade and vi has to do the same. Ooh.

      Vim != Vi

      Pedantic? Yes, but there is a difference. Vim is a lot more capable (though I'm still primarily an (X)Emacs user, which is even more capable.)

      --
      It must have been something you assimilated. . . .
    7. Re:Rivalry by Anonymous Coward · · Score: 0

      So when do i get my nano update?

    8. Re:Rivalry by Anonymous Coward · · Score: 0

      Does it blend?

    9. Re:Rivalry by thegarbz · · Score: 2

      They post the Emacs' story first though. That should tell you something about the biases of the Slashdot editors. Or maybe they just couldn't get the new version of Vim running on the older Emacs OS.

    10. Re:Rivalry by colinrichardday · · Score: 2

      Fair enough, but I take VI improved to be GNU Emacs. People, start your flamethrowers!

    11. Re:Rivalry by Austerity+Empowers · · Score: 3, Funny

      Pretty sure they run vim in emacs.

    12. Re:Rivalry by jittles · · Score: 2

      Vim's 8.0 release was actually September 12th. Emacs 25.1 came out yesterday, September 17th.

      Slashdot is just incredibly slow. :)

      Either that or they were just delaying the story to start a holy war.

    13. Re:Rivalry by BarbaraHudson · · Score: 1
      Now we can have an objective* contest to see which people care about, vim or emacs - they're one atop the other on the front page.

      "objective" in the same way that TIOBEs ranking of most popular languages is "objective." In other words, not much :-)

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
    14. Re:Rivalry by MrKaos · · Score: 1

      Vim's 8.0 release was actually September 12th. Emacs 25.1 came out yesterday, September 17th.

      Slashdot is just incredibly slow. :)

      Yeah, I was wondering why it hadn't been picked up earlier by someone - it had been out for a while.

      --
      My ism, it's full of beliefs.
    15. Re:Rivalry by K.+S.+Kyosuke · · Score: 2

      It's like the two-party system. Did you seriously believe they were working against each other? ;)

      --
      Ezekiel 23:20
    16. Re:Rivalry by sconeu · · Score: 5, Funny

      That makes sense. Emacs is a great OS, just needs a good editor. Vim fills that need.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    17. Re:Rivalry by garyebickford · · Score: 2

      Someone should fork both, and name the Vim fork Kang, and the Emacs fork Kodos.

      --
      It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
    18. Re:Rivalry by Anonymous Coward · · Score: 0

      Mod this up !

    19. Re:Rivalry by Anonymous Coward · · Score: 0

      You're a tranny. Gross.

    20. Re:Rivalry by donaldm · · Score: 1

      Fair enough, but I take VI improved to be GNU Emacs. People, start your flamethrowers!

      The 1980's called and wants to get in on the action again.:-)

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    21. Re:Rivalry by Anonymous Coward · · Score: 0

      No, they run a full VM with linux inside of a matrix... that can emulate VI... which real men use

    22. Re:Rivalry by Anonymous Coward · · Score: 0

      Your one of those picky assholes who has to have exactly two tits on a woman I bet.

    23. Re:Rivalry by BarbaraHudson · · Score: 2

      You're a tranny. Gross.

      And what's so gross about being a transsexual? Come on, confront your fears, put it out there, you'll feel better (and if not, seek professional help).

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
    24. Re:Rivalry by jeremyp · · Score: 1

      If Emacs is more capable than vi(m), why did they need to write a vi emulation plugin for it?

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    25. Re:Rivalry by fahrbot-bot · · Score: 1

      If Emacs is more capable than vi(m), why did they need to write a vi emulation plugin for it?

      You being serious or funny? If serious, Emacs can easily emulate several different editors, so users of those editors can transition to Emacs faster. And they're "modes" (written in LISP) not plugins. It's arguable that Emacs is probably the most powerful editor on the planet, but not for the faint of heart.

      --
      It must have been something you assimilated. . . .
    26. Re:Rivalry by Anonymous Coward · · Score: 0

      Doesn't that just prove the point? Can you emulate Emacs in Vim?

  2. Vim support by inode_buddha · · Score: 1

    But does vim have a sex toy app? Never mind linux...

    --
    C|N>K
  3. Trying to upstage the emacs release, shitlords? by Anonymous Coward · · Score: 0

    We'll leave you guys to write a text editor. Leave the rest of the OS to us, ok?

  4. No way by MichaelSmith · · Score: 2

    Npt using it if it can't play youtube videos.

  5. WTF??! by Trailer+Trash · · Score: 2

    23 comments on Emacs and 4 on Vim?

    1. Re:WTF??! by Anonymous Coward · · Score: 5, Funny

      Emacs users have more time for commenting on slashdot.
      What else are they going to do while waiting for Emacs to load?

    2. Re:WTF??! by Anonymous Coward · · Score: 0

      When you looked the Vim article had been up a few minutes, whereas the Emacs one had been up for more than half an hour

    3. Re: WTF??! by Anonymous Coward · · Score: 0

      Call the burn unit!!

    4. Re:WTF??! by Anonymous Coward · · Score: 0

      in EmacsOS ... the users are browsing Slashdot with a web-browser plugin.

      With Vim 8.0 ... many users did go to NeoVim that months ago and already have async plugins and terminal integrated ... so very few Vim 8.0 users right now because no plugin for the new features is in use now.

    5. Re:WTF??! by Anonymous Coward · · Score: 1

      23 comments on Emacs and 4 on Vim?

      They've been trying to comment but VIM wasn't in edit mode.

    6. Re:WTF??! by Anonymous Coward · · Score: 1

      *insert mode

    7. Re:WTF??! by Anonymous Coward · · Score: 0

      Emacs codebase is bigger than Vim's.

    8. Re:WTF??! by rsmith-mac · · Score: 1

      Emacs users have more time for commenting on slashdot.
      What else are they going to do while waiting for Emacs to load?

      Meanwhile vi users have to post multiple times to make up for their small user base. Otherwise no one would remember that poor vi exists.

    9. Re:WTF??! by Anonymous Coward · · Score: 0

      Emacs users have more time for commenting on slashdot.

      Because Emacs is more capable and much faster to use they finish their work quicker and get to relax and peruse idiot ramblings on slashdot while the vim users are still typing away.

    10. Re:WTF??! by Anonymous Coward · · Score: 0

      That, or Emacs users are just browsing /. from Emacs. I think it actually ships with a browser built-in, or something (eww).

    11. Re:WTF??! by Anonymous Coward · · Score: 0

      You should use Nano is bigger and better.

    12. Re: WTF??! by johnsnails · · Score: 1

      Esc Shift+z+z

    13. Re:WTF??! by stridebird · · Score: 1

      The vim peeps are running lynx in a pane, or a tab, natch.

    14. Re:WTF??! by Anonymous Coward · · Score: 0

      Well, in fairness, isn't Emacs an OS in search of a good text editor?

    15. Re:WTF??! by ari_j · · Score: 1

      Emacs users have more time for commenting on slashdot. What else are they going to do while waiting for Emacs to load?

      I don't know about the rest of them, but while I waited for Emacs to compile and load, I wrote a major made for posting Slashdot comments. Of course, I used Vim to write it because it has better syntax highlighting for Lisp code than Emacs does.

    16. Re:WTF??! by ogdenk · · Score: 1

      Did you autogenerate that comment by holding Ctrl-Alt-LShift-Meta-RShift-Tab-Esc and rolling your forehead on the keyboard from within Emacs?

    17. Re:WTF??! by ogdenk · · Score: 1

      But what if you have to use a teletype, 110bps modem or terminal app on your Atari 800 that doesn't do proper cursor control? Not everyone has one of those newfangled VT220's at home to connect to the VAX at the university or work!

      In all seriousness I found vi to be a pain in the ass at first but it didn't take long to get comfortable. Pico/nano are pretty good but I find the linewrap behavior annoying as hell and it doesn't do "parenthesis-matching" for LISP code like vi. My first experience with vi was as an 11 yr old kid running MINIX on a cast-off 386 because I wanted to learn UNIX and Linux was a huge download at 14.4kbps, especially when we paid by the hour for shell-account access. I guess I'm getting pretty fucking old.

    18. Re:WTF??! by jeremyp · · Score: 1

      Emacs users have more time for commenting on slashdot.

      Because Emacs is more capable and much faster to use they finish their work quicker and get to relax and peruse idiot ramblings on slashdot while the vim users are still typing away.

      Right, so if all the vim users are still finishing their work, who is writing the idiot ramblings on Slashdot?

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  6. Relevant xkcd by johnsmithperson123 · · Score: 4, Funny
    1. Re:Relevant xkcd by mark-t · · Score: 3, Informative

      It's my understanding that Mr. Munroe worked for NASA on a contract basis only. The only reason that stopped was because NASA eventually ran out of money to rehire him for another contract, not because he couldn't "cut it", or because they were dissatisfied with his work.

    2. Re:Relevant xkcd by No+Longer+an+AC · · Score: 4, Insightful

      This just oozes "stop-liking-what-I-don't-like".

      So you don't like xkcd? Fine. It's easy enough to ignore.

      There are plenty of popular forms of humor that don't amuse me much but I would get no satisfaction from going into threads and telling people that whatever they enjoyed was actually crap. They wouldn't be convinced anyway. They think I was a troll or a fool.

      I don't think The Onion is funny, I grew bored with Seinfeld in the '90s and now I can't stand him, I like Monty Python, but how many times do we have to see a reference to it in a thread before it gets old? It's not dead yet, it's just pining for the fjords, right?

      There is some humor that I like that a lot of people don't find funny either. There's no point in me trying to convince them that it's funny - or in the case of some xkcd comics explain it to them.

      Imagine explaining the linked xkcd strip to someone whose only technical knowledge involved Facebook and Snapchat. Even if you can explain it to them at best their response will be "Meh".

    3. Re:Relevant xkcd by Anonymous Coward · · Score: 0

      You don't seem to agree with what the people of the peoples republic have decided is funny. You must be a fascist, racist, xenophobe and islamophobe. You are more evil than Hitler. All the problems in the past, the present and the future is because people like you. The peoples republic have the pleasure to offer you an opportunity in the gold mines of Northern Yukon in collaboration with our comrades in the Social Republic of Canada. You will also get a free a reeducation in the values that the peoples republic stands for. You must enjoy pop music. You must enjoy Hollywood movies. You are not allowed to have your own opinion when that opinion is opposite to what is considered correct by the peoples republic. You should be ashamed of yourself you fascist pig.

    4. Re:Relevant xkcd by Anonymous Coward · · Score: 0

      I guess NASA doesn't like humour.

    5. Re:Relevant xkcd by Anonymous Coward · · Score: 0

      NASA likes humor. NASA Management likes humor as much as they like fully understanding (and communicating) technical risk.

    6. Re:Relevant xkcd by Anonymous Coward · · Score: 0

      Nothing disappoints quite like xkcd

      Just go back to reading Dilbert and watching Andrew Dice Clay on youtube.

  7. Excellent! by Anonymous Coward · · Score: 0

    Screenshots please.

    1. Re:Excellent! by Fwipp · · Score: 1

      Bask in the glory that is an updated version number: http://imgur.com/a/er7gT.png

  8. New feature by BlackPignouf · · Score: 5, Funny

    "MS-Windows DirectX support"
    Wait, what?

    1. Re:New feature by Anonymous Coward · · Score: 0

      Yeah, wtf? I mean, everyone just expected that Emacs would have WebKit built in (right?) but vim? It's not supposed to be bloated like Emacs.

    2. Re:New feature by Anonymous Coward · · Score: 0

      WTF?
      Why would a text editor need Direct X enhancements?

      The world has gone totally mad.

    3. Re:New feature by JustNiz · · Score: 3, Insightful

      As a crusty old developer myself, it seems clear that "clean/simple/partitioned" are no longer in fashion, and most younger developers not only don't see anything wrong with pulling every fucking package dependency they can into everything, they feel it somehow makes them look smarter or something.

    4. Re: New feature by Anonymous Coward · · Score: 0

      Well, MS seems to have deprecated all but DirectX APIs. Quite obvious for a gaming platform, isn't it?

    5. Re:New feature by Anonymous Coward · · Score: 0

      Text editing in three dimensions and VR/AR environments, with virtual typewriter sound effects. It can't possibly be for anything else.

    6. Re:New feature by Anonymous Coward · · Score: 0

      I thought the same thing but googled it:

      https://www.phoronix.com/scan.php?page=news_item&px=Vim-8.0-Released

      The DirectX support in Vim's context is focused on DirectWrite support for better text rendering.

      https://en.wikipedia.org/wiki/DirectWrite

      DirectWrite is a text layout and glyph rendering API by Microsoft. It was designed to replace GDI/GDI+ and Uniscribe for screen-oriented rendering and was shipped with Windows 7 and Windows Server 2008 R2, as well as Windows Vista and Windows Server 2008 (with Platform Update installed).

      So in a way, they're keeping with the times and using modern APIs. Great work!

    7. Re:New feature by hey! · · Score: 3, Insightful

      As a crusty old, old programmer myself, often it's the old eyeballs that let me down. My brain is willing to keep working by the eyestrain tells me I have to take a break.

      So better rendering is a good thing, unless it's an attempt at rendering that makes things pretty but harder to read.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    8. Re:New feature by JustNiz · · Score: 2

      Why VIM doing rendering at all? and better yet, platform-specific rendering?

    9. Re:New feature by Daltorak · · Score: 5, Informative

      "MS-Windows DirectX support" Wait, what?

      Vim 8.0 supports DirectWrite, which is fully hardware-accelerated a replacement for GDI, the original MS Windows text & 2D drawing API. It allows for things like caching fonts in the graphics card so it can render more quickly, and perform anti-aliasing (including ClearType) in hardware.

      Now you might think, ehhh, computers are so fast these days, how much can that really matter? Given that we've gradually moving to much higher pixel density (e.g. I'm typing this on a large 4k monitor with about 250% scaling), we're expecting the text drawer to drive 4x-8x as many pixels, which requires a ton more effort. Doesn't matter that it's "console".... something has to turn Unicode code points into pixels, right? Microsoft's efforts and optimizations in text rending are all in the DirectWrite API these days, so it only makes sense for every text-based application to use it.

    10. Re:New feature by Anonymous Coward · · Score: 1

      As a crusty old developer, you would have understood the importance of knowing what the fuck you're talking about before commenting.

      "DirectWrite is a text layout and glyph rendering API by Microsoft. It was designed to replace GDI/GDI+ and Uniscribe for screen-oriented rendering and was shipped with Windows 7 and Windows Server 2008 R2, as well as Windows Vista and Windows Server 2008 (with Platform Update installed).[1] DirectWrite is hardware-accelerated (using the GPU) when running on top of Direct2D, but can really render on the CPU to any target, including a GDI bitmap.[2][3]"

      I think making use of current system APIs to do a job makes some sort of small remote sense.....

    11. Re:New feature by Anonymous Coward · · Score: 0

      VIM in the terminal isn't; gVIM, though, sort of needs to.

    12. Re:New feature by Anonymous Coward · · Score: 0

      Because it's a text editor, and text must be shown somehow. Therefore rendering will be involved.

    13. Re:New feature by K.+S.+Kyosuke · · Score: 1

      Isn't SublimeText using DirectStuff on Windows?

      --
      Ezekiel 23:20
    14. Re:New feature by tlhIngan · · Score: 4, Interesting

      Why VIM doing rendering at all? and better yet, platform-specific rendering?

      In text mode, no, there's no rendering going on. But in graphical mode, you have to translate the characters to pixels, and that's not a trivial task anymore. Add in scrolling and other tasks you do with blocks of text, and you're pushing serious pixels. Especially if you operate in a high resolution mode (4K monitors aren't hard to find these days).

      DirectWrite is a GPU-optimized font renderer for Windows - it loads the fonts into the GPU memory, and then the font rendering programs, plus text effects like ClearType. You then send it the characters and the GPU renders it down, like it did in text mode, but without the blocky pixellated look. Given how many pixels it has to push these days, it's a task a GPU is much better suited for, and it makes scrolling and displaying large windows text all that much faster and with lowered CPU load.

      GDI allows a lot of nifty tricks, but 99% of the time, no one uses all those tricks - they just want to spit text onto the screen. So Microsoft created a GPU optimized way to accelerate the common task.

    15. Re:New feature by Junta · · Score: 1

      While in this specific case, your frustration is misplaced (basically, modern Windows UI sensibilities start with DirectWrite), I share your frustration in the broader sense.

      I have had some 1 line utility function to shorten some common idiom, and had developers insisting that the utility function should instead import some big framework that inflates execution time by 30% and memory consumption by 50% so I use their identical 1 line function instead of 'reinventing' one from scratch.

      Also same mentality that caused some guy yanking some small thing from npm to freak out a gigantic part of the NodeJS ecosystem.

      Some of our new developers complain that we create yum and apt repositories for things, saying the fact that publishing to gems, cpan, pypi, npm, etc is good enough and yum/apt are the old, slow way of doing things.

      Note I'm not even that particularly crusty yet, I just actually have to deal with users who aren't full time software developers.

      I know offtopic, but wanted to say I feel your pain (though not this example).

      --
      XML is like violence. If it doesn't solve the problem, use more.
    16. Re:New feature by JustNiz · · Score: 1

      Thanks for that. Its nice to have some confirmation that I'm not just going mad/turning into (even more of) a grumpy old "get off my lawn" type.
      When Linux started looking real about 20 years ago I made a conscious decision to take my development career down that road and totally avoid the Microsoft world, which I already could see many good reasons to hate even back then. It seemed a massive risk back then but I feel I definately made the right choice.
        I consequently have almost zero knowledge of MS's frameworks, but from what I read it seems clear that they pretty much force developers into the kitchen-sink style of app building. Since unfortunately Microsoft culture/mindset seems to have significant sway over the general developer population, perhaps that's where it's mostly coming from.

  9. I'm so excited... by __aaclcg7560 · · Score: 2

    Emacs and VIM got updates. I'm waiting for Microsoft to update Edit.

    1. Re: I'm so excited... by Anonymous Coward · · Score: 0

      Actually it's gone. I went to use it a few days ago. Nowhere to be seen.

    2. Re: I'm so excited... by unixisc · · Score: 1

      You could use Notepad or Wordpad

  10. Grammar note by jgotts · · Score: 0

    Although it may not look right, its is the correct word here. It's always means "it is." If "it is" doesn't make sense, then use its instead.

    1. Re:Grammar note by fisted · · Score: 4, Funny

      Its been a pleasure reading your comment and from now on, I'll use your heuristic.
      Thanks!

    2. Re:Grammar note by Anonymous Coward · · Score: 0

      "It's" is also the correct contraction for "it has".
      Similarly "it'd" is still the correct contraction for both "it had" and "it would".

    3. Re:Grammar note by NormalVisual · · Score: 2

      Also, you don't ever say "hi's", or "her's" when using those possessives. "Its" follows the same logic.

      --
      Please stand clear of the doors, por favor mantenganse alejado de las puertas
    4. Re:Grammar note by Anonymous Coward · · Score: 1

      With your UID, I'd expect you to know by now that Slashdot has never been the place to go for good grammer. (Or spelling.)

    5. Re:Grammar note by MrKaos · · Score: 1

      Although it may not look right, its is the correct word here. It's always means "it is." If "it is" doesn't make sense, then use its instead.

      My bad for posting tired.

      --
      My ism, it's full of beliefs.
  11. And yet still can't tell TAB from Ctrl-I ... :-( by UnknownSoldier · · Score: 0

    Vim is my main editor (aside from WebStorm) but it still has a few design flaws.

    * You can't bind different operations to TAB and Ctrl-I because Vim thinks they are the same.
    * Can't bind Ctrl-1 through Ctrl-9

    Still, a new version is awesome.

  12. oh boy by Anonymous Coward · · Score: 0

    I'm gonna try and compare visual code to vim and emacs and see how it stands out.

  13. Another Emacs comment in a Vim thread. by JustNiz · · Score: 0

    Emacs is a great operating system, it just needs a good editor.

    1. Re:Another Emacs comment in a Vim thread. by Anonymous Coward · · Score: 0

      it just needs a good editor.

      systemd

  14. first emacs, and now vim by FudRucker · · Score: 1

    whats next? the year of the Linux desktop?
    i hope so, i am tired of waiting for it to get here, now i have kernels to compile

    --
    Politics is Treachery, Religion is Brainwashing
    1. Re:first emacs, and now vim by unixisc · · Score: 1

      Who needs Linux? Just have emacs running on systemd, and put vim on top as the editor. You'll be set.

  15. Funny by paolo.redaelli · · Score: 1

    I use vim everyday and I've been an emacs user. Major release the same day. And that's not Fools Day. Funny.

    1. Re:Funny by argumentsockpuppet · · Score: 2

      I'm not an emacs user, but it's not because I have anything against emacs, it's because vi is already on everything.

      I started out using vi because it was installed. Most of the production systems I've been charged with handling don't have emacs, but they do have vi. If I'm lucky they have vim. I can usually push and manage to get something installed, but typically I don't want to do that. Typically I just want to work on whatever needs changed or fixed.

      What I look for in a text editor: Is it installed? Can I do what I need to do with it?

      That's about it.

    2. Re:Funny by cerberusss · · Score: 1

      I can usually push and manage to get something installed, but typically I don't want to do that.

      Exactly. This is also the reason I started using vi. I've never used a Unix system that didn't have it installed. You typically want to save sysadmin time for something really important.

      --
      8 of 13 people found this answer helpful. Did you?
  16. Re:And yet still can't tell TAB from Ctrl-I ... :- by fisted · · Score: 4, Informative

    * You can't bind different operations to TAB and Ctrl-I because Vim thinks they are the same.

    That's because they are the same. I is 0x49, ASCII-wise, Control masks the 6th bit, giving you 0x09 for Control-I, which happens to be HT (horizontal tab).

    * Can't bind Ctrl-1 through Ctrl-9

    That's because there are no corresponding control characters. You have Control-@ through Control-_ and the 30 others inbetween.

  17. Re:And yet still can't tell TAB from Ctrl-I ... :- by UnknownSoldier · · Score: 1

    You do realize it t isn't 1963 anymore, right? Every modern text editor has no problems telling the difference between every combination of Shift, Ctrl, Alt / Option and some other key.

    That's one of the design faults with ASCII: it only encodes partial Ctrl key combinations --- WTF.

    Because we're stuck with a shitty standard no one wants to fix the the problem 50+ years later?? Instead we end up with a gimped text editor that can't even tell the difference ALL the permutations between:

    * 1
    * Ctrl-1
    * Alt-1
    * Shift-1
    * Ctrl-Alt-1
    * Ctrl-Shift-1
    * Shift-Alt-1
    * Ctrl-Alt-Shift-1

    The fact that Vim can't even bind Caps Lock, again, like almost every modern game can, is BUG, not a feature.

    I just wish Vim would get with the program and realize it is 2016.

    It is almost enough to force one to use another editor. The problem is all the other editors suck even more. i.e. They don't understand's Vim's modal execution modal at all and the power it provides.

  18. Re:And yet still can't tell TAB from Ctrl-I ... :- by MrKaos · · Score: 1

    Just out of curiosity - what are you using the ctrl combinations for? Am I missing something extra in vim?

    --
    My ism, it's full of beliefs.
  19. Still using vi intensively by hcs_$reboot · · Score: 1

    vi is a great editor :wq :Q :q

    --
    Slashdot, fix the reply notifications... You won't get away with it...
    1. Re:Still using vi intensively by yes-but-no · · Score: 1

      why not :x? single char n no caps

    2. Re:Still using vi intensively by cheesybagel · · Score: 1

      ZZ

    3. Re:Still using vi intensively by donaldm · · Score: 1

      vi is a great editor :wq :Q :q

      Actually that is not vi but ex and there is a differnce

      The vi editor works in four modes 1) Entry mode. 2) Cursor movement and screen mode. 3. Text and character manipulation mode. 4) Search mode.

      The ex editor is actually a very powerful line editor and should never to be confused with "edlin" under pain of forcing you to learn all the EMACS commands.

      The 1980's called again and suggested we stop although it was fun while it lasted.

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    4. Re:Still using vi intensively by Anonymous Coward · · Score: 0

      >> The vi editor works in four modes 1) Entry mode. 2) Cursor movement and screen mode. 3. Text and character manipulation mode. 4) Search mode.

      Hmm,
      I was only familiar with two modes – "beep repeatedly" and "break everything".

  20. Re:And yet still can't tell TAB from Ctrl-I ... :- by tbttfox · · Score: 2

    Maybe give Neovim a look then.

  21. Re:And yet still can't tell TAB from Ctrl-I ... :- by Anonymous Coward · · Score: 0

    Games usually capture the keyboard to emulate a gamepad or similar. You really don't want your editor to operate that way for a couple of reasons that should be self-evident with a little thought. If you want to do something like rebinding capslock the best place to do that is the window manager or OS.

  22. Re:And yet still can't tell TAB from Ctrl-I ... :- by UnknownSoldier · · Score: 1

    > what are you using the ctrl combinations for?

    Having used almost every word processor and text editor under the sun since the 80's I've tried every combination of keys for cursor movement.

    e.g.

    * ^E ^S ^D ^Z (Wordstar)
    * Arrow keys
    * WASD
    * WXAD - Robotron
    * HJKL - I *hate* Vim's default cursor movement keys.
    * IJKM
    * IJKL - I find this is natural for me -- it comes from the Apple 2 game: Lode Runner

    Before I switched to Vim (almost) exclusively ~5 years ago I used to use Windows text editors such as MSVC's IDE and Notepad++. I grew to like the Ctrl-* to move the cursor, and Ctrl-Shift-* to extend the selection -- this is something I've missed in Vim.

    I use IJKL for character movement along with Ctrl IJKL for screen movement which means I can't use Tab and Shift-Tab for insert a literal TAB (say for Makefile) and/or indent / unindent . The work-around is to use the slightly awkward Shift to indent/indent and and Ctrl-Q Tab to insert a literal tab respectively. This works but I find it clunky.

    I _would_ use Ctrl-# for bookmarks, and Buffer Management, along with other macros I use daily.

    It's retarded that in 2016 I'm still fighting with a text editor to recognize basic hotkeys.

    > Am I missing something extra in vim?

    I don't know your preferred hotkeys and shortcuts so I can't say. Probably not.

    I'm very fussy about keyboard customization and optimization of minimal keystrokes -- which is the main reason I love Vim's modal style.

    Vim is like 99% close to perfection for me. Just wish it wasn't stuck at 99%.

  23. Re:And yet still can't tell TAB from Ctrl-I ... :- by UnknownSoldier · · Score: 1

    Thanks for the suggestion ! Definitely checking this out!

  24. Re:And yet still can't tell TAB from Ctrl-I ... :- by UnknownSoldier · · Score: 1

    > You really don't want your editor to operate that way

    Yes I do.

    I'm NOT talking about having EVERY permutation of 102 keys. That would be stupid.

    I only need the *basic* ones. You know, the last 8 permutations:

    Key Alt Control Shift
    0 0 0 0
    0 0 0 1
    0 0 1 0
    0 0 1 1
    0 1 0 0
    0 1 0 1
    0 1 1 0
    0 1 1 1
    1 0 0 0
    1 0 0 1
    1 0 1 0
    1 0 1 1
    1 1 0 0
    1 1 0 1
    1 1 1 0
    1 1 1 1

    This isn't rocket science. Just basic UI design hampered by idiotic choices 50 years ago.

  25. VIM by Anonymous Coward · · Score: 0

    Were did you get that editor? 1977?

  26. Re:And yet still can't tell TAB from Ctrl-I ... :- by Anonymous Coward · · Score: 0

    That's one of the design faults with ASCII: it only encodes partial Ctrl key combinations --- WTF.

    The bigger WTF is thinking that ASCII is supposed to represent keyboard keys. You don't even need to consider combinations, Caps Lock isn't in ASCII either. But that's logical; ASCII encodes characters. 'A' does't equal the key combination shift-a, it could also have been typed using Caps Lock, but either way you get 0x41.

    Of course, there's an obvious relation: keyboards are for text entry, and ASCII is for text storage.

  27. RE: Codebase [Re:WTF??!] by Anonymous Coward · · Score: 1

    Are you bragging or complaining

  28. Re:And yet still can't tell TAB from Ctrl-I ... :- by gabbleratchet · · Score: 1

    I feel your pain. I bypass the whole issue by mapping CAPS+IJKL to be cursor keys at the xwindows level. Then they work in (almost) any program.

  29. Re:And yet still can't tell TAB from Ctrl-I ... :- by UnknownSoldier · · Score: 1

    Interesting kludge!

    Unfortunately I need a solution that works across Linux, OSX, and Windows since I use Vim on all 3 platforms.

  30. Re:And yet still can't tell TAB from Ctrl-I ... :- by gabbleratchet · · Score: 1

    I have an autohotkey script that does the same sort of mapping in windows. It doesn't work in all dialogs but it works in most apps (including vim). I haven't really tried any keyboard hackery in OSX

  31. Re:And yet still can't tell TAB from Ctrl-I ... :- by MrKaos · · Score: 1

    I use IJKL for character movement along with Ctrl IJKL for screen movement which means I can't use Tab and Shift-Tab for insert a literal TAB (say for Makefile) and/or indent / unindent . The work-around is to use the slightly awkward Shift to indent/indent and and Ctrl-Q Tab to insert a literal tab respectively.

    I see. I don't mind the arrow keys, however I use pg up/dwn, home/end in combination with Ctrl. Ctrl+left/right yields a word progression as opposed to character progression. So I press Ctrl for large movements and arrows for character movements. I think there are a few more I use unconsciously as well that don't come to mind immediately.

    I'm very fussy about keyboard customization and optimization of minimal keystrokes

    I very with you on this. I think it's important because it is the limiter on the throughput you have to your machine, fatigue and injury using a computer, in my experiences.

    I don't remember when it happened, however the left or right click terminology for mousing stuck when users were trying to understand how to use a computer en masse, however it doesn't translate to the left side of the body. For context, consider using a right handed mouse. The right hand index finger is on the left button called 'select' and right button is called 'context' or 'menu'. The middle button is called 'middle' and introduced paste, then later scroll wheel and left/right. Now consider the same thing with a left handed mouse, left and right click no longer makes any sense.

    I realised this when I first helped left handed users get set up ergonomically. Later injury forced me from being a right hander to left for some time and I got to experience their frustrations. I ended up ambidextrous (and a pretty good drummer), so I use two mouses to satisfy the ergonomics I have requirements to avoid re-injury.

    I don't know if that is formally defined somewhere or I've unconsciously picked it up along the way, however to communicate it specifically during training sessions, I started referring to them as 'select' as index finger click, middle as middle finger click and 'context' as outside finger click, so that it makes sense to left handers as well.

    The reason I told you all that is..

    This works but I find it clunky.

    If I may offer a suggestion, you may find some favourable vim functionality by using it with cygwin/X term, it's (DEC VT100) vs (ansi) terminal type. So when manipulating text an index click positions the cursor, a double index selects a word or a begins a drag to select, and a triple click selects a line (as normal). However you add the middle click and that becomes your first paste buffer, which is also a visible buffer.

    Find the right terminal type (like xterm under linux) and vim will support the scroll wheel to page text, the mouse to position the cursor which *might* help the issue you are facing .

    -- which is the main reason I love Vim's modal style.

    When you add text in the edit mode of vim then select an add or insert at a certain position you can continue to select and paste text into the edit point by only using index and middle clicks. It is a simple, but powerful facility that I use in combination with command mode. For example apply the same regular expression over a range on some things over a number of files by middle click and y/n, :'a,'b g/expression/ s/find/replaced/gc :wn

    I _would_ use Ctrl-# for bookmarks, and Buffer Management, along with other macros I use daily.

    Interesting. I tried Ctrl-#, but I'm not sure how it should work? Would you mind sharing what I am missing?

    I don't know your preferred hotkeys and shortcuts so I can't say. Probably not.

    I use bookmarks, however I think I might be using vim differently. First I use "m" (for mark) and then a upper

    --
    My ism, it's full of beliefs.
  32. long awaited feature: breakindent by Anonymous Coward · · Score: 0

    Huzzah for my favorite new feature! I've been waiting for this since before 7.0 came out, and it finally did... a display-only (not newline-inserting) line wrapping mode that preserves the current indentation level. It's called "breakindent".

  33. Re:And yet still can't tell TAB from Ctrl-I ... :- by UnknownSoldier · · Score: 1

    > so I use two mouses to satisfy the ergonomics I have requirements to avoid re-injury.

    2 mice? wow! I had been wondering if anyone was crazy enough to try that. Sorry to hear that you were forced out of necessity but it sounds like you had no choice.

    Have you tried any of those?

    * wrist "gel" supports?
    * wrist brace / supports? https://www.amazon.com/ACE-Del...

    I am curious about your feedback / thoughts.

    > I think it's important because it is the limiter on the throughput you have to your machine, fatigue and injury using a computer, in my experiences.

    Definitely. Everyone's body has a "natural" way of doing things. If you are constantly spending time fighting it, then maybe it is time to either a) customize the editor, or b) change editors

    > I started referring to them as 'select' as index finger click, middle as middle finger click and 'context' as outside finger click, so that it makes sense to left handers as well.

    Excellent context-neutral descriptions !

    > I ended up ambidextrous (and a pretty good drummer),

    o7 One (practice) drummer to another ! I'll have to tell you about my acoustic-to-electronic kit conversion one day.

    > If I may offer a suggestion, you may find some favourable vim functionality by using it with cygwin/X term, it's (DEC VT100) vs (ansi) terminal type. So when manipulating text an index click positions the cursor, a double index selects a word or a begins a drag to select, and a triple click selects a line (as normal). However you add the middle click and that becomes your first paste buffer, which is also a visible buffer.

    All good suggestions !

    Unfortunately I don't use the mouse with Vim except in a few odd cases.

    >> I _would_ use Ctrl-# for bookmarks, and Buffer Management, along with other macros I use daily.
    > Interesting. I tried Ctrl-#, but I'm not sure how it should work? Would you mind sharing what I am missing?

    Sure! Currently Ctrl-1 .. Ctrl-0 _don't_ work _at all_ in Vim. :-(

    If they DID, I would probably use Ctrl-1 .. Ctrl-3 as a quick way to switch between buffer 1, 2, 3. (or the 3 current open files)

    >> I don't know your preferred hotkeys and shortcuts so I can't say. Probably not.
    >> I use bookmarks, however I think I might be using vim differently. First I use "m" (for mark) and then a upper or lower case letter to set a bookmark. Then ' (a single quote, followed by the letter. So 'mq' and 'mQ' can set two different locations which are accessed by 'q or 'Q. Sure I am limited to 52 bookmarks, however I have rarely used more than 30. Obviously you can then use that to set up ranges to cut, copy paste, use regular expressions on or apply functions to.

    Yes, I use m (mark) and ' (goto) as well ! The problem is once you have more then 3+ bookmarks it becomes hard to remember "where" each bookmark takes you. i.e. What is the Spatial Location? I have an easier time using digits then letters. Let me explain:

    While mA and mZ are obvious that they are near the top and end respectively, using mW mS and mX is _not_ obvious on their spatial location. Sure S < W < X but WHERE roughly are these 3 set ??

    S=19, which is 16/26 = ~62%
    W=23, which is 23/26 = ~89%
    X = 24, which is 24/26 = 92%

    If I could use the Ctrl-# I would use the bookmark as a mnemonic to remember roughly WHERE in the file it is.

    i.e.
    I would bookmark Ctrl-1, Ctrl-2, Ctrl-3 near the top of the file
    I would bookmark Ctrl-4, Ctrl-5, Ctrl-6 near the middle of the file
    I would bookmark Ctrl-7, Ctrl-8, Ctrl-9 near the end of the file.

    Using the examples above I would use:

    Ctrl-6
    Ctrl-8
    Ctrl-9

    See which one is easier to remember? I no longer have to play the guessing game of "Where is bookmark X located again?"

    Currently, my kludge is to split the window (horizonta

  34. Re: Codebase [Re:WTF??!] by Anonymous Coward · · Score: 0

    Comment density jokes don't work well for normal people.

  35. wrist braces by MrKaos · · Score: 1
    Sorry it took a while to respond UnknownSoldier - I'm recovering from spinal surgery to c4-c6 in my neck and had to do the reply in chunks. Still on a lot of painkillers and sleep, head is all over the place. I'm still building stamina at the computer.

    2 mice? wow! I had been wondering if anyone was crazy enough to try that. Sorry to hear that you were forced out of necessity but it sounds like you had no choice.

    Well, I'd been swapping the mouse left hand for a few weeks, the right hand for a few weeks for so long I began to notice it was the combined, click and mouse move that were fatiguing and provoking injury. Examining at my usage habits again I realised the cost of two mouses is really cheap ergonomic protection and less than the cost of a single physiotherapy session.

    When I tried it, it was confusing at first, then incredibly liberating. At least for me. As I got better it improved endurance and throughput on a machine, like this was the way it was supposed to work all along. I have two configs dual mouse and dual trackball. You find yourself mousing on one hand and button on the other and dual mousing. As for reptitive movements, using both distributes the muscle movements arcoss both hands. So a 'select' and drag, for example, the click muscle is on one hand and the movement muscle is in the other hand.

    The dual trackballs are great for music production and dual mouse works great for coding.

    Have you tried any of those?

    Yes.

    I used them quite a lot when healing injury on different joints. I found it is the heat, as opposed to the pressure, that helps it heal. The little colds spots are bad, and slow healing. I used the ones without a strap to keep the heat in at the joint and keep it in place.

    No matter which ones you use the advice I received about them (physio/chiro/doctors) was to only use them at night so that the body doesn't get dependent on them being there. If you do it has the reverse effect and makes the joint weaker, exacerbating the pain over time.

    I did that and found if you keep the warmth on the joint while you sleep and take it off during the day the ligaments and joints heal pretty well. They should be a bit sweaty by morning. Take them off, store inside out during the day to dry. Wash them once a week otherwise they get really stinky.

    Don't be afraid of wrist or finger cavitations during the day, its part of the healing proccess.

    I think I wore them for about two years and now I dont need them anymore.

    These are close the ones I used: https://www.amazon.com/Thermos... though mine didn't have the velcro.

    Hope it helps - I know how it feels to need those things.

    Definitely. Everyone's body has a "natural" way of doing things.

    I'll probably be going through it again. The neck surgery means I will be reveiwing screen position again and reviewing other usage habits.

    Excellent context-neutral descriptions !

    Thank you.

    I'll have to tell you about my acoustic-to-electronic kit conversion one day.

    sweeeet! I love those things.

    --
    My ism, it's full of beliefs.
  36. Re:And yet still can't tell TAB from Ctrl-I ... :- by MrKaos · · Score: 1

    All good suggestions ! Unfortunately I don't use the mouse with Vim except in a few odd cases.

    Interesting. Its probably my compromise with the ui.

    If they DID, I would probably use Ctrl-1 .. Ctrl-3 as a quick way to switch between buffer 1, 2, 3. (or the 3 current open files)

    That is a good idea. :rew, ^, :wn is about the limit I could find to get close to that.

    The problem is once you have more then 3+ bookmarks it becomes hard to remember "where" each bookmark takes you.

    I see what you mean. My approach maybe odd, I use conceptual references. So 'D or some other letter might be an abstract of something and the lowercase 'd maybe a concrete implementation. other odd games too help. Generally when I code though I try to limit the size of the files I create.

    See which one is easier to remember? I no longer have to play the guessing game of "Where is bookmark X located again?"

    You're right - it's a pita.

    I think that's where I get the GUI to take over. Generally a combination of screens, workspaces, bash/vim terminal sessions, IDE. 4-8 workspaces and in my set up the terminal tabs hotkey with Alt-1 Alt-n. That generally gets me huge task bandwidth, about 4-400 vim/bash sessions per workspace.

    Also I use workspaces named that define tasks in layers, so on my DAW for example I have Mix-Master-Monitor-subsystem, for code I generally use UI-Domain-Persist-DB and just increment whatever needs expansion. That's my workflow management, you probably have different challenges.

    I think there maybe a way for you though, maybe multiple vims open on a single file - whaaaa? I hear you say. Well I think the new messaging part of vim may provide a way for multi-vim sessions on a single file by passing messages (which can be edits) between each other. I'm not sure yet (I still have a fair bit of recovery and exercise in from of me) but this could be a possible use-case that this new feature *might* support if you wanted to check it out.

    Using "# command"

    The curiosity is killing me, as soon as I get a chance to figure out how this works I'm going to have to try it on something. Generally I just rack my brains making new regexs. I clearly am still learning vim!

    (At the time we worked on a C++ compiler but that's another story.)

    Respect.

    In the process of understanding Vim I tore into the source code and literally made a map of what EVERY key does in Vim.

    Cool. I've probably been using vim longer than you, actually, it was vi for a long time on sco, sun, hp. But ripping into the source code to learn it is pretty hard core. I'm certain you've gone beyond me with it.

    (If you search for "Vim Cheat Sheet" you'll come across my work.) i.e. https://www.google.com/search?... [google.com]

    Damn man, that's awsome work. I doubt I know how to use vim as well as you do. I'll be laminating a copy of this for my wall - my colleague will want one as well, he only just got hooked on vim about a year or two ago.

    That's really the best functional breakdown of vim I've seen and I'll spend some time studying it. Thank you for doing that.

    Vim felt like an extension of my mind !

    Obviously, this reply was constructed with vim - it's great for getting thoughts collated pre post.

    I posit this is because Vi (and Vim) was designed by a programmer for a programmer. Every key feels like it belongs there. There is no wasted key. Sure Vim's learning curve is like a vertical cliff, but man, what a view from the plateau ! You'll never view another editor the same way one you've seen and tasted the power of Vim.

    Absolutely! I suspect it maybe some time before we get everything out of the new features, and I'll probably be trying to figure out what I am missing with vim from your work - thanks.

    --
    My ism, it's full of beliefs.