News for hackers. Stuff that matters.
Re:Weekly Vim Focus by drats on Friday February 10, 2012 @06:48AM (#3575390)
For those wishing to ingrain Vim keys into their muscle memory, and improve their browsing experience, I recommend the Vimium[1] extension to Chrome. Additionally, Firefox has Vimperator[2] and Opera has VimOperate[3] (not as many features on the latter unfortunately).

[1]https://chrome.google.com/webstore/detail/dbepggeogbaibhgnhh... [2]https://addons.mozilla.org/en-US/firefox/addon/vimperator/?s... [3]https://addons.opera.com/en/addons/extensions/details/vimope...

Re:Weekly Vim Focus by sbochins on Friday February 10, 2012 @07:05AM (#3575430)
pentadactyl is the best vim keybinding plugin for firefox now. It used to be vimperator though. Check it out http://dactyl.sourceforge.net/pentadactyl/
Re:Weekly Vim Focus by andylei on Friday February 10, 2012 @09:09AM (#3575814)
whats better about pentadactyl
Re:Weekly Vim Focus by tmhedberg on Friday February 10, 2012 @11:14AM (#3576295)
From the Pentadactyl home page:

"Pentadactyl was once called Vimperator, initially written by Martin Stubenschrott, then developed and maintained by Doug Kearns, Kris Maglione, and several other invaluable contributors. Doug and Kris, the primary Vimperator developers for several years, have left the Vimperator project and now develop and maintain Pentadactyl in its stead."

So it's essentially the successor to Vimperator, or at least a well-maintained fork by the original authors.

Re:Weekly Vim Focus by yabai on Friday February 10, 2012 @09:46AM (#3575956)
When starting with Vim I completely changed all of the software that I interact with. That means: mutt for email, vimperator, vimprobable or vim plugin for chrome, mocp with vim keybindings, newsbeuter and dwm with simple keybindings.

After getting comfortable with this setup, I find it is now a pain to drop down to use the arrow keys. This type of setup really helped me 'convert' to a vi way of thinking. I am still learning, but am liking the minimal setup.

Re:Weekly Vim Focus by weaksauce on Friday February 10, 2012 @04:30AM (#3575114)
Doesn't take a long time after you remap the arrow keys to be broken of that habit. I love not having to move my hands for the small navigation things now. Highly suggested.
Re:Weekly Vim Focus by alx on Friday February 10, 2012 @04:32AM (#3575120)
noremap <Up> <nop>

noremap <Down> <nop>

noremap <Left> <nop>

noremap <Right> <nop>

Re:Weekly Vim Focus by jacobr on Friday February 10, 2012 @07:00AM (#3575423)
Isn't that annoying in insert mode?
Re:Weekly Vim Focus by sbochins on Friday February 10, 2012 @07:06AM (#3575432)
I'd recommend against navigating while in insert mode.
Re:Weekly Vim Focus by weaksauce on Friday February 10, 2012 @11:21AM (#3576332)
You shouldn't be navigating in insert mode. If you mess up a word it's easier to ctrl-w to delete the last word and retype it.
Re:Weekly Vim Focus by moe on Friday February 10, 2012 @11:58AM (#3576497)
Just as a datapoint: I've been using vim for >12 years and I still use the arrow keys. Don't sweat the dogmas too much, try out what works best for you and stick with it.
Re:Weekly Vim Focus by weaksauce on Saturday February 11, 2012 @12:04PM (#3579575)
I don't want to come across as a dick, but as another data point my boss has typed on keyboards for longer than I have been using computers and he still types with two fingers. Just because he is not crippling himself too much doesn't mean that he is getting anywhere near the same utility out of it that a touch typist would.
Re:Weekly Vim Focus by moe on Saturday February 11, 2012 @12:25PM (#3579632)
There's little correlation between finger count and utility.

I use only 4-5 fingers most of the time and go faster than most touch typists.

Re:Weekly Vim Focus by danieldk on Friday February 10, 2012 @07:39AM (#3575510)
'noremap' has no effect on insert mode.

  :help noremap
Re:Weekly Vim Focus by TheStanman on Friday February 10, 2012 @06:08AM (#3575294)
Learning how to use "t" was a game-changer for me. Before that, I used "f", which cost me a fair bit of time when deleting things since the extra character was deleted. (c/d)t<space> is a great sequence that I use a lot.

I suggest VimGolf as a way to learn new commands, especially how to use them efficiently. It was how I learned to use "w" and "b", as well as macros.

Re:Weekly Vim Focus by un1xl0ser on Friday February 10, 2012 @10:48AM (#3576208)
I didn't use the hjkl keys until two things happened, about the same time. The first was getting a job as an SA, where on older (and less GNU) operating systems would NOT support the key mappings.

The second was once my job was automated, I got to play a bit of nethack. A text based game that uses that style of navigation did help a bit.

Re:Weekly Vim Focus by ww520 on Friday February 10, 2012 @04:32AM (#3575118)
One thing that bothers me and I couldn't find an answer for vi/vim is how do you undo one character at a time? Command u always undo all the text typed since the last insert. Something like ctrl-Z would be great.
Re:Weekly Vim Focus by trengof on Friday February 10, 2012 @06:21AM (#3575323)
You can modify undo to chunk based on words with the following:

:inoremap <Space> <Space><C-g>u

Re:Weekly Vim Focus by g3orge on Friday February 10, 2012 @06:39AM (#3575369)
<C-R> to paste in insert mode?? That doesn't work for me.
Re:Weekly Vim Focus by phreeza on Friday February 10, 2012 @06:42AM (#3575376)
followed by the register you want to paste. " is the default register you get when usually pasting.
Re:Weekly Vim Focus by g3orge on Friday February 10, 2012 @05:15PM (#3577715)
oh. Thanks.
Re:Weekly Vim Focus by wseymour on Friday February 10, 2012 @04:33AM (#3575122)
Upvote for teaching me about <C-R> to paste in insert mode.
Re:Weekly Vim Focus by ichinaski on Friday February 10, 2012 @04:44AM (#3575139)
For a long time user, usage of up/down/left/right should be punished!
Re:Weekly Vim Focus by phreeza on Friday February 10, 2012 @04:54AM (#3575158)
I bow my head in shame and promise to mend my ways.