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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

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

14 点作者 mrburton超过 5 年前

4 条评论

oftenwrong超过 5 年前
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>
deepaksurti超过 5 年前
- 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_bass超过 5 年前
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.
mrburton超过 5 年前
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.