about [UPDATING (4 days)] [MOVED (15 hours)] [vuxml (11 minutes)]summaryrefslograw-logtreecommitdiffstats
path: root/editors/vim-classic/files/patch-runtime_defaults.vim [up]
Last 15 commits to file "editors/vim-classic/files/patch-runtime_defaults.vim" in the last year: [ Last 15 commits to this file | All commits to this file ]
 
Commit messageAuthorDateFilesLines
* [ file ]editors/vim-classic: New port: Fork of Vim 8.x for long-term maintenanceBruce M Simpson2026-08-13 21:31:13 +01001-0/+24


commit: (<title> <author> <date> etc.)
blob: 0523e79e1ee2865a506bd767696140f1c9d1884f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
We wrap `syntax on` in a try block so that it won't produce errors for
vim-tiny, which doens't include the runtime library.

We also source our own FreeBSD-specific defaults file.

--- runtime/defaults.vim.orig	2022-09-04 15:43:53 UTC
+++ runtime/defaults.vim
@@ -130,7 +130,9 @@ endif
 " GUI (which always has colors).
 if &t_Co > 2 || has("gui_running")
   " Revert with ":syntax off".
-  syntax on
+  try
+    syntax on
+  catch | endtry
 
   " I like highlighting strings inside C comments.
   " Revert with ":unlet c_comment_strings".
@@ -152,3 +154,5 @@ if has('langmap') && exists('+langremap')
   " compatible).
   set nolangremap
 endif
+
+source $VIMRUNTIME/defaults_freebsd.vim
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.