TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Commanding your text editor

82 点作者 aggarwalachal超过 12 年前

14 条评论

petepete超过 12 年前
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 未加载
jheriko超过 12 年前
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 未加载
jrajav超过 12 年前
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.
kayoone超过 12 年前
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 未加载
tubs超过 12 年前
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.
welp超过 12 年前
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.
michaelfeathers超过 12 年前
I hardly ever use 'delete word' because I use 'change word' so much.
评论 #4674887 未加载
评论 #4673809 未加载
评论 #4674511 未加载
goldfeld超过 12 年前
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.
scrumper超过 12 年前
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.
cocoflunchy超过 12 年前
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.
hmart超过 12 年前
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 未加载
eitland超过 12 年前
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 未加载
netghost超过 12 年前
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 未加载
darkgray超过 12 年前
ST2 can also delete entire words: Ctrl+Del (ahead) Ctrl+Backspace (behind)<p>Ctrl+Del even works in Notepad, if that's your thing.