[opensuse] where to enable syntax highlighting ?
On leap421, /etc/multipath.conf has syntax highlighting active in vim, on leap422 it does not. In leap421, when editing this file, I can turn it on and off with "syntax on/off", in leap422 this makes no difference. Syntax highlighting does work in leap422, e.g. in /etc/resolv.conf. /etc/vimrc on the two systems are identical. -- Per Jessen, Zürich (20.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Aug 24, 2017 at 9:15 AM, Per Jessen <per@computer.org> wrote:
On leap421, /etc/multipath.conf has syntax highlighting active in vim, on leap422 it does not. In leap421, when editing this file, I can turn it on and off with "syntax on/off", in leap422 this makes no difference. Syntax highlighting does work in leap422, e.g. in /etc/resolv.conf. /etc/vimrc on the two systems are identical.
Not that it helps, but syntax highlighting works in Leap 42.3. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
On Thu, Aug 24, 2017 at 9:15 AM, Per Jessen <per@computer.org> wrote:
On leap421, /etc/multipath.conf has syntax highlighting active in vim, on leap422 it does not. In leap421, when editing this file, I can turn it on and off with "syntax on/off", in leap422 this makes no difference. Syntax highlighting does work in leap422, e.g. in /etc/resolv.conf. /etc/vimrc on the two systems are identical.
Not that it helps, but syntax highlighting works in Leap 42.3.
It seems to work fine in 421 and 422 too. Here is something funny - I added a line at the very top, just '#', and all of a sudden syntax highlighting works. Delete the saame line, and it stops working. Try this - create ~/robert.conf with something like this: defaults { name "robert" } Syntax highlighting is inactive. Add a line at the top containing only '#', write to disk and leave vi. Reopen file - et voila, syntax highlighting works. Delete again, syntax highlighting doesn't work. -- Per Jessen, Zürich (20.8°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/24/2017 02:15 AM, Per Jessen wrote:
On leap421, /etc/multipath.conf has syntax highlighting active in vim, on leap422 it does not. In leap421, when editing this file, I can turn it on and off with "syntax on/off", in leap422 this makes no difference. Syntax highlighting does work in leap422, e.g. in /etc/resolv.conf. /etc/vimrc on the two systems are identical.
I put it in .vimrc: " this is the one you want :) " syntax on " " these are just helpful... " noremap Y y$ set expandtab tabstop=8 softtabstop=4 shiftwidth=4 " " This unsets the "last search pattern" register by hitting return " nnoremap <CR> :noh<CR><CR> -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin wrote:
On 08/24/2017 02:15 AM, Per Jessen wrote:
On leap421, /etc/multipath.conf has syntax highlighting active in vim, on leap422 it does not. In leap421, when editing this file, I can turn it on and off with "syntax on/off", in leap422 this makes no difference. Syntax highlighting does work in leap422, e.g. in /etc/resolv.conf. /etc/vimrc on the two systems are identical.
I put it in .vimrc:
It turns out there is nothing to do, except make sure the first line of a conf file is a comment. -- Per Jessen, Zürich (22.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
David C. Rankin
-
Per Jessen
-
Roger Oberholtzer