Live data from Hacker News

Vim 8.1

vim8.org

81–90 of 93 posts

Re: Vim 8.1

#81
post #59
post #48

prank your friends: echo 'imap there is no escape ' >> ~/.vimrc

You'd still be able to use `C-[` though. (And I actually use it in Termux)

Yeah, could do a second imap if you really want to be cruel.

Re: Vim 8.1

#82
post #61

Earlier quoted context omitted.

Same here, I've been using Vim for a long time. The main reason is that I touch type and I really don't like to use the arrow keys. However, I really wonder if I'm really more productive using Vim rather standard shortcuts plus the trackpad.

I know im vim'ing wrong, but I just can't stop using arrow keys. Part of it is because I end up navigating around a little bit in insert mode sometimes, and switching between arrow keys for insert mode ans hjkl for other modes seems dumb. I don't have a problem using hjkl, I guess my problem is NOT needing to move around inside insert mode. Tips?

As furgooswft13 notes, you can use

  Ctrl-O 
to issue single normal mode commands from insert mode. Most purists would say switch to normal mode to navigate, and by and large that's true (especially, IMHO, if you bind 'jk' to Esc which is much faster for a touch typist). However, insert mode does let you do this to avoid the arrow keys:

  inoremap  
  inoremap  
  inoremap  
  inoremap  
Which some would say enforces 'bad' habits, but I reckon do whatever feels effective to you. If you do find yourself leaning on the direction keys for more than a few repeats, there's probably a faster way though!

Re: Vim 8.1

#83

Earlier quoted context omitted.

They all do pretty much the same, just implemented in different ways. The only reason I tell people that vim is the better choice (when starting from scratch) is that Vi is on every unix system and it is nice to be able to work on any machine. If you don't plan on using unknown machines, do whatever works best for you.

>Vi is on every unix system Except Debian's install CD. They only have nano.

Are you sure? I just looked through an old Debian 8 iso that I have and it had vim in it.

Re: Vim 8.1

#84
post #64

Earlier quoted context omitted.

Sure, but that's just one aspect. For me, it's the most meaningful one though.

I get it that you have your reasons to use Neovim more than Vim, and a large number of them is probably difficult to articulate, but framing it like Vim had no mode for selecting text visually is unfair.

I don't think visual selections in vim work the same as in kakoune though, do they?

It's a powerful primitive in Kakoune, from regex to multiple cursors. My vim knowledge on selection mode is quite limited however, so I can't directly compare them.

Can you just turn on selection mode and use that all the time? I may have to try that, as it sounds like you're suggesting it's a first class feature in Vim. Something I never got the feeling of.

Re: Vim 8.1

#85
post #38

Man I wish I could switch back to Vim. GUI frontends for Neovim has made me want Vim so bad, but I just can't get away from Kakoune. The model of select first, action after (reverse of vim) is so so much better for me. Kakoune just gives me so much clarity over I'm doing at any one time. I guessed too frequently in vim :/.

The Qt "gui" front end for Neovim was pretty much indistinguishable from a terminal emulator, last time I tried it. I don't see the appeal in it. Kakoune looks pretty interesting on the other hand. It even has a Clippy. I'll be trying that one out!

Out of curiosity, how well did the Qt frontend for Neovim work for you?

I've been wanting to try and make a frontend for Kakoune, but for times sake, I wanted to leverage existing frameworks. If it's possible to write an editor in Qt, perhaps I should look it up.

Re: Vim 8.1

#86
post #64

Earlier quoted context omitted.

I get it that you have your reasons to use Neovim more than Vim, and a large number of them is probably difficult to articulate, but framing it like Vim had no mode for selecting text visually is unfair.

I don't think visual selections in vim work the same as in kakoune though, do they? It's a powerful primitive in Kakoune, from regex to multiple cursors. My vim knowledge on selection mode is quite limited however, so I can't directly compare them. Can you just turn on selection mode and use that all the time? I may have to try that, as it sounds like you're suggesting it's a first class feature in Vim. Something I n…

> I don't think visual selections in vim work the same as in kakoune though, do they?

I have no idea. I've never used Kakoune.

> Can you just turn on selection mode and use that all the time?

How would you use that? Have a text selected all the time or what?

Re: Vim 8.1

#87
post #12
post #2

I want to learn Vim and tried several times (with vim modes form Intellij mainly) but failed under pressure to get actual things done. I see great potential and I know I have to sacrifice 1-2 month of productivity to get up to speed but I fail every time.

Use real vim, not emulators. Emulators all suck, and won't teach you the right habits. Vim is also extremely powerful when customized to your needs. Build your own setup over time. Start with vanilla vim and add to it over time. If anything annoys you and requires too much manual repetition, it can probably be automated and streamlined. Force yourself to use Vim for everything, and soon enough it'll be second nature.…

Atom's vim-mode-plus is superb! I've actually started to like it more than "real vim". Atom itself is a work-in-progress, but I'm extremely happy with its vim emulation. The only thing missing is a macro system.

Re: Vim 8.1

#89
post #2

I want to learn Vim and tried several times (with vim modes form Intellij mainly) but failed under pressure to get actual things done. I see great potential and I know I have to sacrifice 1-2 month of productivity to get up to speed but I fail every time.

I'm currently trying to switch from Eclipse to vim: to ease the transition I'm using gvim. One difficulty with vim is that you have to configure it because by default it's pretty dumb..

Re: Vim 8.1

#90
post #61

Earlier quoted context omitted.

Same here, I've been using Vim for a long time. The main reason is that I touch type and I really don't like to use the arrow keys. However, I really wonder if I'm really more productive using Vim rather standard shortcuts plus the trackpad.

I know im vim'ing wrong, but I just can't stop using arrow keys. Part of it is because I end up navigating around a little bit in insert mode sometimes, and switching between arrow keys for insert mode ans hjkl for other modes seems dumb. I don't have a problem using hjkl, I guess my problem is NOT needing to move around inside insert mode. Tips?

Try HardMode (https://github.com/wikitopian/hardmode) for vim. While it also disables some other stuff, the idea is it will force you to use the more efficient movement options.
Post reply on HN