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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Finding your way in vim: tags, cscope, grep and more

124 点作者 paweln将近 14 年前

5 条评论

thristian将近 14 年前
&#62; A word of caution first: there is no perfect symbol-based navigation for programming languages such as C++ or Java in vim, as vim doesn't perform any syntax analysis of the code.<p>At least for Python, Vim's OmniCompletion does a reasonable job of figuring out function names:<p><a href="http://vimdoc.sourceforge.net/htmldoc/version7.html#new-omni-completion" rel="nofollow">http://vimdoc.sourceforge.net/htmldoc/version7.html#new-omni...</a>
评论 #2816088 未加载
评论 #2817715 未加载
评论 #2816095 未加载
viandante将近 14 年前
Maybe somebody could help me to figure out how to save files properly with vim.<p>I made a script that opens all the files I need. I call the script with: :source scriptname.<p>Only problem is that the script works only if I open vim with 'vim' and not with 'sudo vim' (by the way, why is that?).<p>But if I open with 'vim', then it give me problem when I try to save...
评论 #2815931 未加载
评论 #2816021 未加载
评论 #2817014 未加载
评论 #2816039 未加载
losvedir将近 14 年前
tags and cscope look excellent.<p>However, for the grepping and general file searching stuff, wouldn't that be better done from the shell? I generally have both vim (either MacVim, or shell-vim) running, as well as a the command line sitting in a window right next to it.<p>What's the advantage of doing the searching inside vs. outside vim?
评论 #2816838 未加载
评论 #2816890 未加载
评论 #2816923 未加载
评论 #2817862 未加载
exDM69将近 14 年前
Using cscope, ctags and grep with Vim's location list and quickfix list has been a huge productivity booster for me. I highly recommend experimenting with different key bindings to ease navigating with tags other search results (:cnext :cprev :lnext :lprev, etc).
lwhi将近 14 年前
I find VIM so difficult to get my head around. Emacs seems to make more sense.. is there any point in trying to grok VIM?
评论 #2816020 未加载
评论 #2816025 未加载
评论 #2816844 未加载
评论 #2816097 未加载
评论 #2816185 未加载
评论 #2816189 未加载
评论 #2817593 未加载