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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Turning vim into an IDE through vim plugins

129 点作者 sds111超过 7 年前

15 条评论

59nadir超过 7 年前
While I would never sell it as &quot;turning vim into an IDE&quot;, I use most of these plugins. ctrl-P is great, but I would probably switch to fzf if I was bothering to update my vimrc and plugins lately.<p>Fundamentally, I think people trying to sell emacs&#x2F;vim with plugins as &quot;turn X into an IDE&quot; are sort of not getting what people see and get from IDEs, though. There&#x27;s quite a bit more integration that goes into IDEs and what you&#x27;re making is a pretty barebones&#x2F;poor IDE with these plugins.<p>Most languages, though, don&#x27;t need an actual IDE for them to be great. You need the auto-completion, automatic compilation&#x2F;error checking, jump to definition, easy-to-reach documentation, etc., for them to instantly be super productive while coding.<p>Spacemacs with Haskell plugins is one of the best coding experiences I&#x27;ve had and it even taught me some patterns that I didn&#x27;t know about. Another highlight is OCaml tooling that works really great with both Emacs and vim.
评论 #15634558 未加载
评论 #15634573 未加载
评论 #15634353 未加载
评论 #15634827 未加载
bechap超过 7 年前
Having seen this article when I first started using vim seriously, I&#x27;d recommend fzf.vim in place of ctrl-p and ALE in place of Syntastic. The former I find is much more performant, and the latter takes advantage of Vim8 &#x2F; neovim&#x27;s asynchronous features. Plus, fzf.vim comes with Ag, which effectively replaces Ack.vim (albeit, with a little bit of tweaking).
评论 #15634135 未加载
评论 #15636539 未加载
评论 #15634007 未加载
评论 #15649862 未加载
评论 #15633897 未加载
127超过 7 年前
I tried very hard to get used to Vim. I just feel compared to something like Visual Studio Code it&#x27;s still very clunky.<p>I can understand why people who have used it for a decade prefer Vim over other text editors. They already know how to use it and how to integrate it into their workflow. For a newcomer this task, it seems, is nigh insurmountable.<p>Are there people who recently got into it and think it&#x27;s the superior way to code and why?<p>For me, it was a lot of wasted time trying to learn Vim and finding out that other editors that I already use are as good or better.
评论 #15634638 未加载
评论 #15634665 未加载
评论 #15634630 未加载
评论 #15634626 未加载
评论 #15634656 未加载
评论 #15635919 未加载
mythrwy超过 7 年前
Surprised they recommend a single colorscheme (jellybeans) at bottom of article.<p>Moving between machines and terminals different colorschemes seem to work better than others. This has like a million colorschemes (OK, slight exaggeration but it does have more than I&#x27;ve been able to review. Usually pick from 5 or 6 favorites commented out in .vimrc).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;flazz&#x2F;vim-colorschemes" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;flazz&#x2F;vim-colorschemes</a><p>Also they recommend <a href="https:&#x2F;&#x2F;github.com&#x2F;Shougo&#x2F;neocomplcache.vim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Shougo&#x2F;neocomplcache.vim</a> (which I&#x27;ve used for years). Reviewing some vim plugins the other day I noticed that github hasn&#x27;t been updated in 3 years and recommends another plugin now. (Don&#x27;t plan on switching until it breaks though).<p>Guessing this article may be a few years old?<p>&lt;edit&gt;Yes, it says 2014 at top
评论 #15634031 未加载
suprfnk超过 7 年前
This is from [2014] and contains outdated information. Can someone update the headline?<p>As posted elsewhere, we now have vim 8, ALE instead of Syntastic, fzf&#x2F;fzy instead of ctrl-p, and more.
Lio超过 7 年前
That article seems somewhat out of date now.<p>For a more up to date approach I&#x27;d suggest Drew Neil&#x27;s Modern Vim book (still in beta)[1] and using async language server plugins[2]<p>[1] <a href="https:&#x2F;&#x2F;pragprog.com&#x2F;book&#x2F;modvim&#x2F;modern-vim" rel="nofollow">https:&#x2F;&#x2F;pragprog.com&#x2F;book&#x2F;modvim&#x2F;modern-vim</a><p>[2] <a href="https:&#x2F;&#x2F;langserver.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;langserver.org&#x2F;</a>
bgrohman超过 7 年前
&quot;NERDTree satisfies this need of mine, replacing vim’s built-in netrw file navigator with a nicer-looking, less buggy, more fully featured alternative.&quot;<p>Wait, what&#x27;s wrong with the built-in netrw? I actually started with NERDTree before I knew netrw existed. After discovering netrw, I switched to it instead. I think it looks just fine and prefer it to the more complex NERDTree.
评论 #15635324 未加载
bgrohman超过 7 年前
I&#x27;m surprised the author didn&#x27;t mention vim&#x27;s sessions feature. The ability to close the editor&#x2F;IDE and pick up right where you left off can save a lot of time when working with multiple large projects. It&#x27;s easy enough to use on its own, but I have a small wrapper plugin that adds a few features for ease of use: <a href="https:&#x2F;&#x2F;github.com&#x2F;bgrohman&#x2F;vim-bg-sessions" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bgrohman&#x2F;vim-bg-sessions</a>.
评论 #15635282 未加载
jmsmistral超过 7 年前
Good list! Also, if you work with databases (particularly PostgreSQL) and want to work with them from Vim, check out dbext: <a href="http:&#x2F;&#x2F;jonathansacramento.com&#x2F;posts&#x2F;20160122-improve-postgresql-workflow-vim-dbext.html" rel="nofollow">http:&#x2F;&#x2F;jonathansacramento.com&#x2F;posts&#x2F;20160122-improve-postgre...</a><p>Link to dbext here: <a href="https:&#x2F;&#x2F;github.com&#x2F;vim-scripts&#x2F;dbext.vim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vim-scripts&#x2F;dbext.vim</a>
tzhenghao超过 7 年前
I&#x27;ll add one more suggestion:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;airblade&#x2F;vim-gitgutter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;airblade&#x2F;vim-gitgutter</a><p>&quot;A Vim plugin which shows a git diff in the gutter (sign column) and stages&#x2F;undoes hunks.&quot;
评论 #15636489 未加载
chewz超过 7 年前
I recommend vim-workspace for IDE-like tabs. Helped me a lot in working with Vim buffers.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bagrat&#x2F;vim-workspace" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bagrat&#x2F;vim-workspace</a>
taternuts超过 7 年前
I&#x27;ll be honest, the only time I try to tweak my VIM setup to be close to an IDE is when I have no other options (developing on a remote box). It&#x27;s always a pretty frustrating experience IMO.
sfifs超过 7 年前
Why not just use an IDE if that&#x27;s what you need with a Vim mode plugin rather than shoe horning Vim into something it is not really meant to be. Virtually every major IDE has a Vim mode.
评论 #15636664 未加载
评论 #15638681 未加载
rimher超过 7 年前
There&#x27;ll always be a part of me that wants to learn vim better and set something like this up. Then there&#x27;s the other part of me, that just uses Sublime instead.
评论 #15635444 未加载
评论 #15634052 未加载
erikb超过 7 年前
This should be only an experiment at best. Please don&#x27;t waste so much time trying to turn a tool into something that it is explicitely not.<p>If you just want an IDE experience use one that already exists. If you want to build your own out of plugins, use something like Emacs that has something like that as a core feature.<p>If you really want to learn vim though, then please learn the IDE that it is already integrated in: Linux. Linux based OSes are the most extensive IDEs because in the past nobody thought there would be a difference between a programmer and a computer user. So it&#x27;s the most complete system that you can find. And additionally to solving all your programmer problems you also learn an OS and its components on the way.