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.

Intermediate Vim tips

200 pointsby kinbikoover 7 years ago

11 comments

lillesvinover 7 years ago
Whenever a Vim post mentions grep, ack or ag — especially in conjunction with fzf&#x2F;fzy — I&#x27;ll make sure to mention the even faster rg (ripgrep): <a href="https:&#x2F;&#x2F;github.com&#x2F;BurntSushi&#x2F;ripgrep" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;BurntSushi&#x2F;ripgrep</a> BurntSushi&#x27;s write-up about the internal workings of ripgrep is also super interesting: <a href="http:&#x2F;&#x2F;blog.burntsushi.net&#x2F;ripgrep&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.burntsushi.net&#x2F;ripgrep&#x2F;</a>)<p>It&#x27;s a really amazing piece of software. It has also recently been included in Visual Studio Code to search in files.
评论 #15986307 未加载
评论 #15985994 未加载
baby_wipeover 7 years ago
I’m probably the minority here but I don’t like to customize my Vim too much. 1 - it takes time. 2 - half the reason I like Vim is because I can use it anywhere. If I’m so used to a highly customized setup, then I am going to feel out of place when I log on somewhere else.
评论 #15984629 未加载
评论 #15984524 未加载
评论 #15985187 未加载
评论 #15984684 未加载
评论 #15984602 未加载
评论 #15985485 未加载
评论 #15985617 未加载
评论 #15985313 未加载
评论 #15984839 未加载
评论 #15985092 未加载
nulagrithomover 7 years ago
&gt; I don&#x27;t like excessively long lines of code (120+ in most languages)<p>Quick straw poll on this... How many people like a line length limit?<p>My personal preference is a fairly strict 80 (barring silly things like URLs), but I&#x27;ve always been met with resistance to ANY line length limit. Is it really that imposing?
评论 #15985183 未加载
评论 #15984518 未加载
评论 #15984785 未加载
评论 #15984558 未加载
评论 #15985059 未加载
评论 #15984564 未加载
评论 #15984803 未加载
评论 #15985408 未加载
评论 #15984652 未加载
评论 #15984590 未加载
评论 #15984830 未加载
评论 #15984665 未加载
评论 #15985326 未加载
n1ckedover 7 years ago
I&#x27;ve done a similar thing with my whitespace, but prefer characters that I&#x27;m less likely to have typed myself (like a small arrow for tab).<p><pre><code> set listchars=tab:→\ ,nbsp:␣,trail:·</code></pre>
hzhou321over 7 years ago
I am so glad that I can live without these tips. As I grow older, every year I feel the need to cut down on my essentials. My .vimrc gets shorter every year. Earlier, I was so annoyed by the default parentheses highlighting yet so dislike the solutions of adding more lines to my .vimrc, I was forced to do some research and found out that all I need to do is to delete the plugin from &#x2F;usr&#x2F;share&#x2F;.... I deleted the entire plugins folder there. I felt like Picaaso.
i_feel_greatover 7 years ago
Where have you been all my life, &quot;set cursorcolumn&quot;?
评论 #15985988 未加载
评论 #15985105 未加载
评论 #15986279 未加载
unknown_apostleover 7 years ago
Having a free day, it&#x27;s cold and rainy, but this actually made me come out of bed to crank up vim :-)
keithnzover 7 years ago
I use vim bindings in visual studio and do a lot of custom binding to resharper functionality. It&#x27;s quite magic, the only thing I really miss from Vim is easy motion and the vim emulation is not complete so for some editing tasks I have to open a file in Vim.
Jeayeover 7 years ago
For anyone wanting to peruse another large vim setup (mostly C++ and Clojure): <a href="https:&#x2F;&#x2F;github.com&#x2F;jeaye&#x2F;vimrc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jeaye&#x2F;vimrc</a>
ekianjoover 7 years ago
I dont use fzf but CtrlP for vim is also very good at fuzzy search.
评论 #15985188 未加载
评论 #15987976 未加载
评论 #15985627 未加载
评论 #15987119 未加载
评论 #15993806 未加载
geezk7over 7 years ago
Do you even emacs bro?
评论 #15986340 未加载