5 ms·
I've fallen in love with the vertical selection feature (option + drag). You can even create a vertical insertion point and anything you type or delete will ap
by frankus 18y ago
I've fallen in love with the vertical selection feature (option + drag).
You can even create a vertical insertion point and anything you type or delete will appear or disappear on all selected lines.
- aaronblohowiak 18y agohttp://sethmason.com/blog/23/vim-tip-select-column http://sethmason.com/blog/23/vim-tip-select-column
- iron_ball 18y agojEdit has this too. alt-backslash and ctrl-backslash toggle multiple selection/insert and rectangular selection/insert. So you can select multiple blocks of text, then what you type will replace all of them at once.
- aaronblohowiak 18y agoWow, that's pretty awesome. Can you do this without using the mouse?
- iron_ball 18y agoOf course. jEdit uses standard shift+direction selection. And like most good text editors, you can map or remap any command to any key combination. My blog is in a state of utmost disrepair, but if I ever clear its personal content and reboot it as a professional blog, a "hey everybody, jEdit" post will be pretty early on. I think it strikes a nice balance between vim/emacs-like power and GUI-app usability, and as one of the few high-quality Java desktop apps, it's cross-platform.
- aaronblohowiak 18y agoPlease do! email me your blog info (not in your profile) so i can suscribe for when you get around to it. aaron.blohowiak@gmail.com
- iron_ball 18y agoIt's personal right now, I mean to privately archive the old content and start fresh. Once I get around to rebooting it, I'll self-promote by posting something here once I write something people might be interested in. Thanks for your interest, though!
- izak30 18y agoNotepad++ does that too (back before I was a happy TextMate/OSX.. Notepad++ on Win gave a good experience)
- thomasmallen 18y agoExcept for mouse interaction (correct me if I'm wrong, GVim vets), Visual mode in Vim puts TextMate's block select to shame (docs: http://www.vim.org/htmldoc/visual.html http://www.vim.org/htmldoc/visual.html) because it allows you to use Vim's other editing commands (replace, change, insert from beginning or end, etc.). Not to mention that you can select this block based on Vim motions. I guess this all adds up to Vim surpassing most other editors when it comes to selecting text, which is a given considering its focus on moving around code.
- hs 18y agovim has it too, powerful indeed select the block use v or ^v and navigate with hjkl, do commands like c,d replace string in text selection -> v (or ^v) + hjkl + :s/old/new comment a block of code (5 lines) with # -> 0 + ^v + 5j + I + # + Esc + j as a plus, u don't need mouse ... fear the simplicity
- newt0311 18y agoEmacs: Rectangular selection. A complete superset of that functionality. Check out the C-x r --- key combos. Inserting in a rectangle: C-x r t Deleting in a rectangle: C-x r d and more...