in reply to Re: Editing features for power users
in thread Editing features for advanced users
vim has most of the features you're asking for:
- Autoindent: :set smartindent will turn it on
- Block cut and paste: there are SEVERAL command sequences for this. You could:
- position the cursor at the start of the block press ma (set a mark named a at this line)
- move to some other line press y'a (yank / copy from this line to mark a) or d'a (delete / cut from this line to mark a)
- then move to the line you want insert those copied or cut lines and press p (paste).
- gvim supports this:
- CTRL-W N splits the current window horizontally. (think: Control Window New)
- CTRL-W J moves the focus to the window below
- CTRL-W K moves the focus to the window above
- :q (or another exit command) will close the current window
- you can cut / paste between any of the windows
- Jump to specific line number:
- :(number)
- :.+10 ten lines below the current one
- :$ last line of the file
- :$-5 5 lines before last line of file
- Umm...regex find and replace. hello? :) you can also have it prompt per each replacment by adding c after the closing / on the replacement
HTH
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Editing features for power users
by jlongino (Parson) on Jan 27, 2002 at 01:42 UTC | |
by Aristotle (Chancellor) on Jan 27, 2002 at 03:48 UTC | |
Re^3: Editing features for power users
by hiseldl (Priest) on Mar 24, 2003 at 20:07 UTC | |
by htoug (Deacon) on May 15, 2003 at 14:13 UTC | |
by hiseldl (Priest) on May 15, 2003 at 14:41 UTC |
In Section
Meditations