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.

Ask HN: Share your .vimrc file and what plug-ins you use

14 pointsby mrburtonover 5 years ago

4 comments

oftenwrongover 5 years ago
Below are some various things I actually use... and not all of the junk in my vimrc I don&#x27;t actually use.<p>Plugins:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tmhedberg&#x2F;matchit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tmhedberg&#x2F;matchit</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;tpope&#x2F;vim-sleuth" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tpope&#x2F;vim-sleuth</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;tpope&#x2F;vim-repeat" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tpope&#x2F;vim-repeat</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;tpope&#x2F;vim-surround" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tpope&#x2F;vim-surround</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;junegunn&#x2F;fzf.vim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;junegunn&#x2F;fzf.vim</a><p>(also see <a href="https:&#x2F;&#x2F;jesseleite.com&#x2F;posts&#x2F;2&#x2F;its-dangerous-to-vim-alone-take-fzf" rel="nofollow">https:&#x2F;&#x2F;jesseleite.com&#x2F;posts&#x2F;2&#x2F;its-dangerous-to-vim-alone-ta...</a> )<p>Some snippets:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mhinz&#x2F;vim-galore#change-cursor-style-dependent-on-mode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mhinz&#x2F;vim-galore#change-cursor-style-depe...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;mhinz&#x2F;vim-galore#saner-behavior-of-n-and-n" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mhinz&#x2F;vim-galore#saner-behavior-of-n-and-...</a><p>and a similar snippet:<p><pre><code> &quot; consistent direction regardless of initial charsearch direction for ; and , nnoremap &lt;expr&gt; ; &#x27;,;&#x27;[getcharsearch().forward] nnoremap &lt;expr&gt; , &#x27;;,&#x27;[getcharsearch().forward] </code></pre> I use my arrow keys for buffer navigation in normal mode:<p><pre><code> nnoremap &lt;up&gt; :Buffers&lt;cr&gt; nnoremap &lt;down&gt; :b#&lt;cr&gt; nnoremap &lt;left&gt; :bp&lt;cr&gt; nnoremap &lt;right&gt; :bn&lt;cr&gt; </code></pre> ...and disable them in insert mode:<p><pre><code> inoremap &lt;down&gt; &lt;nop&gt; inoremap &lt;left&gt; &lt;nop&gt; inoremap &lt;right&gt; &lt;nop&gt; inoremap &lt;up&gt; &lt;nop&gt;</code></pre>
deepaksurtiover 5 years ago
- Pathogen: Plugin manager<p>- Solarized: Theme<p>- POwerline: Metadata<p>- NerdTree: Navigator<p>- Command T: Fast File nav<p>- Gundo: undo tree<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;dmsurti&#x2F;myconf&#x2F;blob&#x2F;master&#x2F;.vimrc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dmsurti&#x2F;myconf&#x2F;blob&#x2F;master&#x2F;.vimrc</a>
matt_the_bassover 5 years ago
I had a meeting with Bill Joy some time ago. He typed on his laptop the whole time (presumably taking notes). I wanted to ask him what he had in his (or if even still uses VI&#x2F;vi derivatives)<p>But of course I didn’t.
mrburtonover 5 years ago
Plugins:<p>yuttie&#x2F;comfortable-motion.vim - Gives you nice smooth scrolling to the bottom junegunn&#x2F;fzf - Great fuzzy searching for files scrooloose&#x2F;nerdtree - A file system navigator itchyny&#x2F;lightline.vim - nice fancy status bar.