1 line
1.3 KiB
Plaintext
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'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'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's solved.</p> </div><!-- SC_ON -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/archlinux/comments/rd5zgs/having_a_vimrc_shows_sign_instead_the_last_line/">[comments]</a></span> |