:set ai
:set nu
:set ru
:set tabstop=3
:set shiftwidth=3
:set showmode
iSorry, it's gotten to be habit, setting up your workspace in vi... I mean...:w
o
So, I have to say, working with vi is a lot faster than regular typing, but it's given me a rather strange set of typing reflexes.:w
o
For example:
the :w command saves the file
type i to get into insert mode to add a few characters
type esc to get back out of insert mode and into command mode
type o to add a line after the current one and get into insert mode:w
o
As one might guess the list of commands goes on (and on (and on)) pretty much until you run out of keys on the keyboard. And then, after that, you can start combining commands to do even more. As one might guess from that, this is the reason why vi is both incredible fast to edit in and incredibly hard to learn. Who in there right mind would memorize 10,000 different commands that work is 3 different modes?:w
o
As it turns out though, most of the commands you just memorize from use. Which sounds incredibly handy, until you realize that viewing/editing text in any other program is painful (seriously, I can't even browse the web anymore without using the / command to find the text I'm looking for on a page), and you have a tendency to type seemingly random nonsense into the keyboard at odd moments.:wq
Friday, February 20, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment