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:
as for between other apps, copy or cutting goes to the windows clipboard and mouse highlighting will copy to the X buffer.
- 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:
- :.+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
A very large part of the appeal for me is that my hands never
leave the home keys regardless of the task I'm performing. I even mapped the escape key to ALT so that I didn't have to reach for it.
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"