emacs/var/elfeed/db/data/4f/4f454e4e374a66827f57f471fec9f584b0f420fa
2022-01-03 12:49:32 -06:00

1 line
1.3 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>Even if I have an empty ~/.vimrc i.e. delete all the lines, the document displays like <a href="https://i.imgur.com/Iuxab7B.png">this</a>. Only if I remove the file ~/.vimrc it <a href="https://i.imgur.com/MLFcdoB.png">resolves.</a> I&#39;m new to vim, pls help.</p> <p>Edit: From the ArchWiki:</p> <blockquote> <p>Commonly expected behavior such as syntax highlighting is enabled in <code>defaults.vim</code>, which is loaded when no <code>~/.vimrc</code> is present. Add <code>let skip_defaults_vim=1</code> to <code>/etc/vimrc</code> to disable loading of <code>defaults.vim</code> completely.</p> </blockquote> <p>Means <code>defaults.vim</code> isn&#39;t loaded if <code>~/.vimrc</code> is present. This is what causing the problem. There was this <code>set display=truncate</code> line in <code>defaults.vim</code> running what solve the issue. So I put that in my vimrc and it&#39;s solved.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/WeirdAsQuantumWorld"> /u/WeirdAsQuantumWorld </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/rd5zgs/having_a_vimrc_shows_sign_instead_the_last_line/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/rd5zgs/having_a_vimrc_shows_sign_instead_the_last_line/">[comments]</a></span>