diff options
Diffstat (limited to 'tutorials/vim/how-to-fix-neovim-nerdtree-rendering-issue.html')
-rw-r--r-- | tutorials/vim/how-to-fix-neovim-nerdtree-rendering-issue.html | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/tutorials/vim/how-to-fix-neovim-nerdtree-rendering-issue.html b/tutorials/vim/how-to-fix-neovim-nerdtree-rendering-issue.html index 17f8c84..c5179a6 100644 --- a/tutorials/vim/how-to-fix-neovim-nerdtree-rendering-issue.html +++ b/tutorials/vim/how-to-fix-neovim-nerdtree-rendering-issue.html @@ -1,11 +1,11 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> +<html lang="" xml:lang="" xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta charset="utf-8" /> - <meta name="generator" content="pandoc" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> - <title>how-to-fix-neovim-nerdtree-rendering-issue</title> - <style> +<meta charset="utf-8"/> +<meta content="pandoc" name="generator"/> +<meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport"/> +<title>how-to-fix-neovim-nerdtree-rendering-issue</title> +<style> html { line-height: 1.5; font-family: Georgia, serif; @@ -222,26 +222,25 @@ <nav id="TOC" role="doc-toc"> <h2 id="toc-title">Contents</h2> <ul> -<li><a href="#the-problem">The Problem</a></li> -<li><a href="#the-attempt">The Attempt</a></li> -<li><a href="#the-actual-solution">The Actual Solution</a></li> +<li><a href="#the-problem" target="_self">The Problem</a></li> +<li><a href="#the-attempt" target="_self">The Attempt</a></li> +<li><a href="#the-actual-solution" target="_self">The Actual Solution</a></li> </ul> </nav> -<p>I really like neovim since <a -href="https://github.com/neoclide/coc.nvim">COC</a> is integrated with +<p>I really like neovim since <a href="https://github.com/neoclide/coc.nvim">COC</a> is integrated with it to work nicely. Plus, I like the defaults and the fact there's a lot of active development on extensions. I didn't use it for a long time because I <em>needed</em> NerdTree but every time I'd scroll the window, I'd get a mess.</p> <h2 id="the-problem">The Problem</h2> -<p><img src="/static/mess.gif" /></p> +<p><img src="/static/mess.gif"/></p> <p>Now, yes, I know I'm a heretic for using the arrow keys and not just jumping around, but I thought it was weird I didn't see this issue anywhere else. Also, vim doesn't have this problem.</p> -<p><img src="/static/nomess-vim.gif" /></p> +<p><img src="/static/nomess-vim.gif"/></p> <p>It's also not because of my meme tmux setup, the same issue happens in terminator, which I happened to have installed.</p> -<p><img src="/static/mess-terminator.gif" /></p> +<p><img src="/static/mess-terminator.gif"/></p> <h2 id="the-attempt">The Attempt</h2> <p>There's a better way to do this, but I first figured just triggering a redraw on scroll would do the trick. You can do so by adding the @@ -256,11 +255,11 @@ program).</p> TERM variable was set to 'xterm'. I'm not sure if I did that intentionally to run something or if it's just a legacy thing I left in from Debian's default bashrc, but all I had to do was change it:</p> -<div class="sourceCode" id="cb2"><pre -class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="bu">export</span> <span class="va">TERM</span><span class="op">=</span><span class="st">'tmux256-color'</span></span></code></pre></div> -<p><img src="/static/fixed.gif" /></p> +<div class="sourceCode" id="cb2"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a aria-hidden="true" href="#cb2-1" tabindex="-1"></a><span class="bu">export</span> <span class="va">TERM</span><span class="op">=</span><span class="st">'tmux256-color'</span></span></code></pre></div> +<p><img src="/static/fixed.gif"/></p> <p>No more hacky autocommands!</p> <p>If I had the foresight to test the issue in xterm first, I probably would have seen it right away....</p> </body> </html> + |