The attached patch corrects the problem when valid syntax like this: > val=$((some_variable - 1)) > val=$(some_function_or_command) > val=$(${SOME_VAR} arg1 arg2) is marked as red in syntax highlighter, because $() is the POSIX feature, and vim needs this enabled. Since BSD runs such shell, it makes sense to enable it by default.
Created attachment 154560 [details] patch
A commit references this bug: Author: sunpoet Date: Sat Mar 28 16:12:12 UTC 2015 New revision: 382520 URL: https://svnweb.freebsd.org/changeset/ports/382520 Log: - Add "let: g:is_posix = 1" to default vimrc - Bump PORTREVISION for package change PR: 198728 Submitted by: <yuri@rawbw.com> Changes: head/editors/vim/Makefile head/editors/vim/files/vimrc
Committed. Thanks!