Live data from Hacker News

Efficient Editing With vim

jmcpherson.org

101–110 of 125 posts

Re: Efficient Editing With vim

#101

Earlier quoted context omitted.

Nerd Tree is indeed a good one, and I'll add to this vimfs, which isn't a Vim plugin but rather a CLI file system browser with Vim bindings. I hardly ever actually browse my file system (zfs, grep, and locate do all of the work for me), so I'm not sure how much mileage one can get out of this (especially compared to something like Midnight Commander).

My preference is to use things like cd and ls to browse the filesystem. When I'm feeling really fancy, I might use tree.

Do you sometimes let loose and use tree -C?

Re: Efficient Editing With vim

#103
post #7

Amazingly, this is the first I've heard of fx/tx/Fx. How ridiculously awesome.

I have this printed out and taped up right next to my monitor: http://wint1.kaist.ac.kr/files/attach/images/59/450/vi-vim-c... It's helped me polish off those last few vim commands that I never got used to. I recommend looking at it daily.

Source: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial...

That's the tutorial that fed me that chart in easy-to-manage pieces, easing me into vim nicely.

Also highly recommended, the rant by the same guy: http://www.viemu.com/a-why-vi-vim.html

Re: Efficient Editing With vim

#104
post #22

I find it amusing that he asserts "blockwise selection mode. Extremely powerful and available in very few other editors". Blockwise selection mode is available in almost every Windows editor I use - from the Delphi IDE, Visual Studio, even to Notepad2, Shift+Alt does block selection, or alternatively Alt + mouse selection.

I'm not familiar with most Windows editors, but — at least on OS X — although blockwise selection is available in most editors, blockwise insertion like vim has is usually left out. E.g., in vim say I have a list like this that I wanted to append a period to on each line (a simple example, but you can see its uses): foo bar baz I would just type block-wise select it ( $jj) and then type A. I use this feature all the…

Wow, I had no idea you could bulk-insert that easily! Thanks for sharing

Re: Efficient Editing With vim

#105
post #14

Warning: learning Vim makes you look for Vim like commands in any program you interact with using the keyboard. Everything else will be frustrating.

But, if something does have vim bindings, even in a limited manner, it suddenly gains extraordinary appeal (e.g. keyboard navigation in gmail)

Re: Efficient Editing With vim

#106
post #39

Earlier quoted context omitted.

Have you tried vim like browsing? http://vimperator.org/trac/wiki/Vimperator For keyboard lovers.

Can you explain why Vimperator is a good idea. As a vim user myself, I understand vim was designed first and foremost to input and edit text using the keyboard, is bringing those key bindings to browsing the web is a good idea? For the best navigating experience, I feel Opera does really well. You keep one hand on the keyboard (nearing 1, 2 to switch tab; and z, x to move back & forth in history) and one hand on the…

Why don't you use gestures for switching tabs and moving back and forward?

Re: Efficient Editing With vim

#107
post #39
post #14

Warning: learning Vim makes you look for Vim like commands in any program you interact with using the keyboard. Everything else will be frustrating.

Have you tried vim like browsing? http://vimperator.org/trac/wiki/Vimperator For keyboard lovers.

I've been using it for a long time and totally love it. I have the same mappings I have for Vim, for open and move between tabs and so on. It's an awesome tool.

Re: Efficient Editing With vim

#108
TIP for the Vim lovers out there:

Firefox: you can do a quick search hitting '/' Skype [Mac]: you can replace text in your last sent message with the 's///' syntax

I would love to hear about other apps with Vim-ish behavior :)

VIM IS FULL OF WIN!

Re: Efficient Editing With vim

#109
post #32
post #4

See, this is one of the things I love about Vim: there's always something new to learn! Somehow I had overlooked "K" to go to man pages. The other thing I love about Vim is the excellent documentation! I wanted to know more about "K" so I typed ":help K" and learned that, for example, if you're editing Ruby and would rather use 'ri' in place of 'man', all you have to do is add ":set keywordprg=ri" to your .vimrc (and…

Just a note, but ':help' doesn't always go to what you want. For example the option 'smartindent' (set with ':set smartindent') can be abbreviated as ':set si', but ':help si' takes you to the help for the ':sim[alt]' command. It's useful to note that when searching through help you type something like: :help 'si' To get help on a variable and: :help :si To get help on a command. The first form would take you to the…

dont forget :helpgrep !

Re: Efficient Editing With vim

#110
if you are viming on an osx macbook of some sort and are sick of the damn small-ass control key they left us with, i've found it helpful to remap the caps lock key to control. you can do this easily in System Prefs > Keyboard > Modifier Keys. so now you can insert mode with the ^[, hardly moving your hands at all.

This works for me personally because I very rarely find myself even thinking about or noticing the true CAPS key, but if you are stuck on your CAPS bein CAPS, then this wouldn't be for you :!)

Post reply on HN