3 ms·
A decent intro; I'd add to the movement section these: g$ - move cursor to last displayed character of line Tx - move cursor backward and to the right of
by Prolitheus 17y ago
A decent intro; I'd add to the movement section these:
g$ - move cursor to last displayed character of line
Tx - move cursor backward and to the right of
the first occurrence of x (reverse of tx)
And get started with split views:
^ws - horizontal split view
^wv - vertical split view
^w{h,j,k,l} - move to window in respective direction
Some decent scripts to get started with:
minibufexpl.vim: http://www.vim.org/scripts/script.php?script_id=159 http://www.vim.org/scripts/script.php?script_id=159
surround.vim: http://www.vim.org/scripts/script.php?script_id=1697 http://www.vim.org/scripts/script.php?script_id=1697
More of a full-fledge suite, a frontend to a head{ed,less} Eclipse server: http://eclim.sourceforge.net http://eclim.sourceforge.net
- EAMiller 17y agoAnother nice script I discovered recently is Nerd Tree : http://www.vim.org/scripts/script.php?script_id=1658 http://www.vim.org/scripts/script.php?script_id=1658
- Prolitheus 17y agoNerd 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).
- apotheon 17y agoMy preference is to use things like cd and ls to browse the filesystem. When I'm feeling really fancy, I might use tree.
- Prolitheus 17y agoDo you sometimes let loose and use tree -C?
- apotheon 17y agoI have done so, but not in a long time. Then again, I haven't even used tree in a long time. Maybe I don't really use it any longer. Hmm. . . .
- Prolitheus 17y ago^[ - Same as Esc (I prefer not reaching so far to Esc) W - move forward a Word B - move backward a Word