[OpenIndiana-discuss] VIM 9: lost shell (read bash) syntax
Toomas Soome
tsoome at me.com
Mon Feb 20 16:07:49 UTC 2023
> On 20. Feb 2023, at 18:05, Predrag Zecevic via openindiana-discuss <openindiana-discuss at openindiana.org> wrote:
>
> On 20.02.2023 16:53, Udo Grabowski (IMK) wrote:
>> On 20/02/2023 16:49, Udo Grabowski (IMK) wrote:
>>> On 20/02/2023 16:20, Predrag Zecevic via openindiana-discuss wrote:
>>>> Hi all,
>>>>
>>>> does anyone has nice .vimrc, which still obey syntax coloring? Especially for
>>>> bash...
>>>>
>>>> Recently, vim was upgrade from version 8 to 9:
>>>>
>>>> :; pkg list *editor/vim*
>>>> NAME (PUBLISHER) VERSION IFO
>>>> editor/vim 9.0.1300-2023.0.0.0 i--
>>>> editor/vim/vim-core 9.0.1300-2023.0.0.0 i--
>>>>
>>>> Since then, bash syntax coloring is not working with neither .vimrc (old one,
>>>> and modified one). Or w/o .vimrc.
>>>> Previously, that syntax highlighting could help a lot, when entering shell
>>>> commands to point to the syntax error.
>>>>
>>>> Now, it is completely useless...
>>>>
>>>> Any thoughts? Anyone still uses it?
>>>
>>> No problem here, with .vimrc
>>>
>>> set encoding=utf-8
>>> set term=xterm-color
>>> syntax enable
>>>
>>> everything highlights fine, even bash scripts.
>>>
>>
>> You may also need this (one line) :
>> autocmd Syntax * exec("set dict+=".$VIMRUNTIME."/syntax/".expand('<amatch>').".vim")
>>
> Thanks,
>
> ---8<------
> :; cat ~/.vim/vimrc
> set encoding=utf-8
> set term=xterm-color
> syntax enable
>
> autocmd Syntax * exec("set dict+=".$VIMRUNTIME."/syntax/".expand('<amatch>').".vim")
> ---8<------
>
> and still no luck (tried from within *tmux* session and from pure bash shell).
> Same version from Ubuntu 22.04 (I had to install it from PPA repo) shows test bash file properly.
>
> So, it could be something on my machine.
> The problem is I have no clue where to start.
pkg verify vim vim-core
then check /etc/vimrc
rgds,
toomas
>
> Regards.
>>
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-discuss at openindiana.org <mailto:openindiana-discuss at openindiana.org>
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
> --
> Predrag Zečević
> predrag.zecevic.1961 at googlemail.com <mailto:predrag.zecevic.1961 at googlemail.com>
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org <mailto:openindiana-discuss at openindiana.org>
> https://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the openindiana-discuss
mailing list