<div dir="ltr"><div>An update ... <br><br>Thanks to Paul Nijjar, I now have a solution (of sorts).<br><br>By having this line in my .vimrc, the syntax highlighting is restored.<br><br></div>:syntax on<br><br><div>Autoindents are disabled, but that is better than frustratingly wrong autointendation.<br><br><span class="gmail-im"></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 6:27 PM, Khalid Baheyeldin <span dir="ltr"><<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For an editor, I have been using vi (then vim) for 31 years.<br clear="all"><div><br></div><div>For a long time I had my own customizations in .vimrc, or under .vim directory.<br></div><div>But some time ago I discovered that I don't need these customization, since the default syntax, tab width, ..etc. all worked well.<br><br></div><div>On my Ubuntu 16.04 boxes (this laptop, servers, ...etc.), I have vim 7.4, and all is good.<br><br></div><div>When I got the new Raspberry Pi 3, I installed the latest Raspian on it, and that happened to be version 9. It came with vim 8.0.<br><br></div><div>The packages I have installed are: vim, vim-common, vim-runtime and vim-tiny. /usr/bin/vi symlinks to /usr/bin/vim.basic.<br><br></div><div>On the Ubuntu machines, with vim 7.4, it all works well. Syntax and indenting work correctly for the files I used on a daily basis, such as config files, .yaml, python, c, and php. I don't have a .vimrc file anymore.<br><br></div><div>However, on Raspian 9's vim 8.0, syntax highlighting is correct, but indentation is wrong and it forces wrong indents when I add lines, ...etc.<br><br></div><div>So, I thought that I would override indentation on the RPi using a .vimrc file. The problem is: once I have a .vimrc or .vim directory, all syntax highlighting goes away completely, even if the .vimrc file is empty! That is not the behaviour on Ubuntu: a .vimrc does not cause syntax highlighting to be disabled. <br><br></div><div>One way to solve this is to copy all the syntax stuff from /usr/share/vim80/* into my .vimrc directory, and edit it to remove the offending indentation. But that would be duplication, and not the proper way of doing this.<br><br></div><div>So:<br><br></div><div>Anyone encounter this issue? <br></div><div><br>What are good ways to solve it, other than the duplicating above?<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div class="m_-423353960660878904gmail_signature" data-smartmail="gmail_signature">Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br></div>
</div>