TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Commanding your text editor

82 pointsby aggarwalachalover 12 years ago

14 comments

petepeteover 12 years ago
A nice introduction, although I'd be surprised if anyone who wasn't totally new to development didn't know these already.<p>Also, 'Fuzzy file' searching in vim: <a href="https://github.com/kien/ctrlp.vim" rel="nofollow">https://github.com/kien/ctrlp.vim</a>
评论 #4673650 未加载
评论 #4673146 未加载
评论 #4673870 未加载
jherikoover 12 years ago
I think its much more important to become good at using whatever text editor is infront of you - i.e. learning the standard Windows/Mac shortcuts, instead of becoming reliant on what I consider the 'old' style of text editor.<p>Yet to meet anyone using vim or emacs who is actually more productive than me... the more productive people use Visual Studio, Xcode, Eclipse or whatever else is infront of them.<p>Maybe I am wrong, but I think typing is probably 30% or less of the time I spend coding... and thinking to make sure I write less code is probably more valuable than typing faster, not just in saving me time, but in improving stability and ease of reading code...
评论 #4673260 未加载
评论 #4674425 未加载
评论 #4673249 未加载
jrajavover 12 years ago
The "keys instead of notations" idea is neat, but it makes it a little more difficult to visually parse, and more importantly, it ignores other keyboard layouts. For such a small article it's not a big deal, but if this were a larger list, I would definitely go with a more abstract representation.
kayooneover 12 years ago
As long as my programmer idols Carmack and Persson use Visual Studio and Eclipse respectively to produce amazing stuff, i dont really care about changing to vim/emacs...besides i work mostly in statically typed languages anyway, so i would miss alot of the IDE features for refactoring.
评论 #4673669 未加载
评论 #4673479 未加载
评论 #4673505 未加载
评论 #4675130 未加载
tubsover 12 years ago
If you are deleting a word in order to correct a mistake (ie/ by typing it back in) it's usually best to `cw` or `cb`, which will leave you in insert mode after the delete.
welpover 12 years ago
For some more modern auto-complete functionality in vim, clang_complete is worth a look: <a href="https://github.com/Rip-Rip/clang_complete" rel="nofollow">https://github.com/Rip-Rip/clang_complete</a>. It uses clang for intelligently auto-completing C and C++, and I am constantly surprised that more people haven't heard of it.
michaelfeathersover 12 years ago
I hardly ever use 'delete word' because I use 'change word' so much.
评论 #4674887 未加载
评论 #4673809 未加载
评论 #4674511 未加载
goldfeldover 12 years ago
The other day I was thinking about how Sublime Text's Ctrl+P's great usability could be extended to more use cases, and I began wondering,<p>1. Why doesn't it already index on the function names (the ones you get to by pressing @), so that I could find a file not by it's name or path, but by it's function definition (and with less priority, by it's function use)?<p>2. Why doesn't find in files work with the same usability, even if the match would not be as instant? Having an overhead box and the file auto open in the buffer as it matched would be a great improvement over what seems like a set in stone standard of opening a new dialog/file to display the find in files results.<p>If anyone knows of settings, plugins or even other editors I can get for these features, I'd be in heaven.
scrumperover 12 years ago
Good article, I feel rather foolish for not knowing the delete whole words stuff; I have the feeling it's going to be a big step up in productivity for me.<p>There's project-wide fuzzy opening in Xcode too: bind "Open Quickly" to whatever you like (I use cmd+O). It has the same fuzzy searching as Sublime Text (for example, gvcm will take you straight to your GridViewController) but builds on it can take you straight to symbols if you want.
cocoflunchyover 12 years ago
A few missing things from Sublime users:<p>Ctrl/Cmd + P is even better than fuzzy search in Sublime; it searches in all the files that are contained in opened folders.<p>Automatic indentation is also available without plugin, though you have to add a key binding:<p><pre><code> { "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false} } </code></pre> or look for it in Edit &#62; Line &#62; Reindent.<p>Completion works with Tab too on Sublime.
hmartover 12 years ago
I love Peepcode screencasts, the Vim series is great, They should release a Sublime Text one. Meanwhile this TutsPlus free course about ST2 <a href="http://net.tutsplus.com/articles/news/perfect-workflow-in-sublime-text-free-course/" rel="nofollow">http://net.tutsplus.com/articles/news/perfect-workflow-in-su...</a>
评论 #4673240 未加载
eitlandover 12 years ago
Regarding the point about autocompletion: If autocompletion is needed don't use vim or emacs, -use Netbeans or eclipse, both excellent, free (both ways) and open source.<p>vim is great and I use it all the time but not for Java and PHP where the IDE support is so good that it really makes a difference.
评论 #4672975 未加载
评论 #4673965 未加载
评论 #4672948 未加载
评论 #4672956 未加载
评论 #4673237 未加载
评论 #4673265 未加载
netghostover 12 years ago
I have to say, I really enjoy TextMate's autocomplete word. It's not fancy, but it saves me tons of time.<p>Also, not listed there, but TextMate's autocomplete word can also be used with [Shift - Esc] for the reverse direction.
评论 #4674063 未加载
darkgrayover 12 years ago
ST2 can also delete entire words: Ctrl+Del (ahead) Ctrl+Backspace (behind)<p>Ctrl+Del even works in Notepad, if that's your thing.