ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

The AVE

<< < (3/11) > >>

Edvard:
Oh hey, looky here:
http://www.smashingmagazine.com/2010/05/03/vi-editor-linux-terminal-cheat-sheet-pdf/

and here:
http://www.catonmat.net/blog/why-vim-uses-hjkl-as-arrow-keys/

 :Thmbsup:

Jibz:
Thanks for the links Edvard :Thmbsup:.

I've seen the explanation of the hjkl keys before, I can see how Esc and [ ] are easy to reach and press on that keyboard. On a Danish keyboard, you need to use Alt Gr to get [ ], making it impossible to press Ctrl-[ and Ctrl-].

I can see the idea of keeping your hands on the "home row". But the arrow keys do have the advantage of working a whole lot better in insert mode (though I suppose I shouldn't be moving about in that mode, but I find it hard not to :-[).

Is there some trick to using visual mode to select lines? It seems if you do the obvious of pressing v and then moving down using j, it selects the lines plus the first character on the next line. If I have to select the lines up to the last and then press $ to get the last line, that's just hopeless :huh:.

Edit: Ah, found it with google while fiddling with this post. Apparently you can use Shift-V to enter visual line mode.

Edvard:
Wow, that Catonmat.net website is a bit of a gem; look what I found:

Hi all. I am starting a new article series called "Vim Plugins You Should Know About". This series of articles is going to be about Vim plugins that you should know about and perhaps even be using. The first article in this series will be about one of my favorite plugins called "surround.vim".

--- End quote ---

http://www.catonmat.net/blog/vim-plugins-surround-vim/




Links to the rest of the articles at the bottom of that page.
Maybe I should start an AVE today...  ;)

ewemoa:
Thanks for that.

I tried the surround plugin with some success.  I didn't find any evidence of the plugin populating the menus unfortunately -- hopefully something will turn up.


On a side note, I learned that something like menus might be possible in vanilla vim:

  http://unix.stackexchange.com/a/57911

ewemoa:
By using the dwb browser, I seem to be learning some additional key sequences as well as having others reinforced.  For example, 'gg' for moving the cursor to the top of the buffer (didn't remember this one) and 'G' for moving the cursor to the bottom of the buffer.

In IntelliJ IDEA (and perhaps other environments) I think there are plugins to help one learn key sequences -- may be there are some for vim too.

FWIW, I came across the following when looking for a way to describe what 'gg' does:

  http://www.catswhocode.com/blog/130-essential-vim-commands


One such plugin for IDEA is the Key Promoter plugin -- some description via following:

  http://georgik.sinusgear.com/2013/02/02/intellij-idea-must-have-plugin-keypromoter/

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version