posted by
eftychia at 04:13pm on 2005-03-07
In the editor I use most often, vi, the '~' key will toggle the character under the cursor from uppercase to lowercase or vice versa. I just caught myself trying to use it to change a doublequote (") to a singlequote/apostrophe ('). Huh.
(Yes, I know there's a difference between singlequote, apostrophe, and tick; what I meant was "apostrophe-where-I-really-wanted-singlequote-but-I'm-typing-ASCII".)
(no subject)
(no subject)
The only problem with vi (well, for me anyhow -- the modal aspect really bothers some other folks) is the temptation to do large search-and-replace operations with a wickedly long command with complex regular expressions in it that is (because it's so long) too likely to wind up with a typo in it. If I could have command-history -- tell it to show me the last command I tried and let me fix the typo or thinko in it -- then that wouldn't be such a problem. (But when the long commands work, there's a certain smugness that results from completely restructuring a file with a single command.)