Hacker News new | past | comments | ask | show | jobs | submit login

Can you point me to an article with more details on this? I use my text editor mainly from the keyboard, I very rarely use the mouse (it would be a lot slower), so the only reason to use GVim (vs a terminal Vim) would be font rendering / color themes. Does the UI experience you refer to primarily to mouse use, or something else?



The mouse would be a lot slower for some users, not all of them.

I always hear that argument and my own experience makes me strongly disagree.

So, let's make an hypothetical example: In your own comment I need to select the text "would be font rendering". Using the mouse it took me all of one second to select it, and send it to the clipboard. May be a bit less, because I used to play Starcraft and I know my way around with a mouse.

I can look at some point in the screen, and have the mouse there in less time it would take me to count the number of words from my current cursor to the desired position.

Now it's your turn. Tell me how I can use the keyboard for exactly the same task and be faster.

Disclaimer: this is a real mouse and not the thing that laptops use. I can imagine a touchpad being slower.


In Vim I would do something like this:

  /fo<RET>vweobby

  /fo <RET> I use search to get me close to where I want to be
  v         I enter visual mode, I want to see what I'm selecting
  we        I select the words 'font rendering'
  o         I realize I want to extend my selection to the left
  bb        select 'would be to the left'
  y         yank the selected text
I didn't need to count anything and the in-progress selection was visible the whole time allowing me to make adjustments to it.

If you don't know all the Vim motion keys yet and don't like counting then you could also do it like this that requires very minimal Vim knowledge:

  /fo<RET><C-left><C-left>v<C-right><C-right><C-right><C-right><left>y
How would you extend the selection to the left with the mouse without loosing the already existing selection?


There's the time switching from keyboard to mouse. The mouse is the enemy of fast typing.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: