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…
Efficient Editing With vim
41–50 of 125 posts
Re: Efficient Editing With vim
#42Earlier quoted context omitted.
20-year user of vi here... yes, once you get used to vi, going back to an editor for humans is hard.
I am still waiting for Vim FPS style (WSAD navigation keys, sniper scopes to skip words and all... sure it might need 3d graphics but hey, its the price you pay).
Re: Efficient Editing With vim
#43I 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.
Re: Efficient Editing With vim
#44Earlier quoted context omitted.
I've hit Ctrl-W to try to delete a word, and ended up closing an IRC window. It's not exclusive to vim. :)
I've hit ctrl-w and closed a window while taking a test in class.
Re: Efficient Editing With vim
#45See, 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…
CTL-D is a sort of intelli-suggest in context (except it's move 1/2 page down in command mode)
:help gives variations of help in your installation.
:help (help then space then control-D) gives more variations.
:help help (ask for help on help, with a control-D immediately after the last p) gives more variations on help.
:help c_CTRL-D (literally typed just like that) is the help entry for using CTL-D on the command line.
:help CTRL-D (everything up to the first D literally, then control-D) lists all the different help subjects for CTRL-D in various contexts.
: (control-D immediately after typing colon) lists all the things you can do on the command line, including help.
Help.
Re: Efficient Editing With vim
#46I 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.
plus I still have to see a use for it. Usually I just go linewise or, inside a line, with movements like f) or $.
Re: Efficient Editing With vim
#47Re: Efficient Editing With vim
#48Earlier quoted context omitted.
I would kill for GMail to add vim-like text editing.
Have you heard of the "It's All Text" Firefox extension? It copies the content of any textarea to a tempfile and opens it up in an external editor of your choice. Writes to the tempfile are copied back to the textarea. It's not quite in-browser vim, but it's pretty close. https://addons.mozilla.org/en-US/firefox/addon/4125
Re: Efficient Editing With vim
#49Amazingly, 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.
Re: Efficient Editing With vim
#50Earlier quoted context omitted.
I once wrote ":tabnew something.js" in my IM window and sent it before I realized that the wrong window had focus. The person replied with, "bash: :tabnew: command not found." I told him, "I was hoping you were vim, actually".
HA! Also using vim will cause your escape key to be heavily hit constantly after typing anything especially if you are not sure what mode you are in, then only realizing you are not in vim period.