Skip to content

Commit 29f0530

Browse files
authored
Merge pull request #1307 from ychin/docs-add-reference-to-os-appearance
Add clearer documentation about how to query the system appearance mode
2 parents 2fbd8bf + 52dcad2 commit 29f0530

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

runtime/doc/autocmd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ OptionSet After setting an option. The pattern is
10421042
OSAppearanceChanged After changing the variable |v:os_appearance|.
10431043
This change happens only if the OS changes
10441044
its appearance and Vim is running with a GUI.
1045+
{only in MacVim GUI}
10451046

10461047
*QuickFixCmdPre*
10471048
QuickFixCmdPre Before a quickfix command is run (|:make|,

runtime/doc/gui_mac.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ These are the non-standard commands that MacVim supports:
121121
These are the non-standard events that MacVim supports:
122122
|OSAppearanceChanged|
123123

124+
*macvim-internal-variables*
125+
These are the non-standard internal variables that MacVim supports:
126+
|v:os_appearance|
127+
124128
*macvim-find*
125129
Whenever you search for something in Vim (e.g. using "/"), or hit <D-e> when
126130
you have text selected, the search query is copied to the macOS "Find
@@ -319,7 +323,7 @@ this behaviour set MMLoginShellArgument to "--".
319323
==============================================================================
320324
4. MacVim appearance *macvim-appearance*
321325

322-
MacVim can be used in full screen mode, see 'fullscreen'.
326+
For more configuration options, see the Preferences… → Appearance pane.
323327

324328
*macvim-appearance-mode* *macvim-dark-mode*
325329
MacVim will by default use the system apperance mode (light or dark). However,
@@ -330,7 +334,14 @@ color scheme while system preferences are configured to use light mode. It's
330334
also the recommended setting when title bar is configured to be "Transparent"
331335
(see |MMTitlebarAppearsTransparent|).
332336

337+
If you would like to query the system apperance mode in Vim (e.g. to change
338+
the color scheme at launch), see |v:os_appearance|. You can also use the
339+
autocommand |OSAppearanceChanged| to be notified when the OS changes its
340+
appearance.
341+
333342
*macvim-full-screen*
343+
MacVim can be used in full screen mode, see 'fullscreen'.
344+
334345
There are two types of full screen modes. By default, MacVim uses macOS'
335346
native full screen functionality, which creates a separate space in Mission
336347
Control. MacVim also provides a non-native full screen mode, which can be set

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8389,6 +8389,7 @@ macvim-full-screen gui_mac.txt /*macvim-full-screen*
83898389
macvim-gestures gui_mac.txt /*macvim-gestures*
83908390
macvim-help-menu gui_mac.txt /*macvim-help-menu*
83918391
macvim-hints gui_mac.txt /*macvim-hints*
8392+
macvim-internal-variables gui_mac.txt /*macvim-internal-variables*
83928393
macvim-international gui_mac.txt /*macvim-international*
83938394
macvim-login-shell gui_mac.txt /*macvim-login-shell*
83948395
macvim-menus gui_mac.txt /*macvim-menus*

0 commit comments

Comments
 (0)