@@ -12,14 +12,15 @@ The MacVim Graphical User Interface *macvim* *gui-macvim*
1212 4. Special colors | macvim-colors |
1313 5. Menus | macvim-menus |
1414 6. Toolbar | macvim-toolbar |
15- 7. Dialogs | macvim-dialogs |
16- 8. System services | macvim-services |
17- 9. mvim:// URL handler | macvim-url-handler |
18- 10. Keyboard shortcuts | macvim-shortcuts |
19- 11. Trackpad gestures | macvim-gestures |
20- 12. International | macvim-international |
21- 13. Known bugs/missing features | macvim-todo |
22- 14. Hints | macvim-hints |
15+ 7. Touch Bar | macvim-touchbar |
16+ 8. Dialogs | macvim-dialogs |
17+ 9. System services | macvim-services |
18+ 10. mvim:// URL handler | macvim-url-handler |
19+ 11. Keyboard shortcuts | macvim-shortcuts |
20+ 12. Trackpad gestures | macvim-gestures |
21+ 13. International | macvim-international |
22+ 14. Known bugs/missing features | macvim-todo |
23+ 15. Hints | macvim-hints |
2324
2425Other relevant documentation:
2526| gui.txt | For generic items of the GUI.
@@ -345,7 +346,7 @@ associated: a title, a key equivalent and an action message. When a menu is
345346displayed the title is shown on the left and the key equivalent (if any) is
346347shown on the right. Key equivalents enable you to access a menu item using
347348the keyboard instead of having to use the mouse. When a menu item is clicked
348- it will send it's associated action message. Actions can be used to instruct
349+ it will send its associated action message. Actions can be used to instruct
349350MacVim to paste some text (paste:), open a new window (newWindow:), etc.
350351Certain actions are standard throughout OS X which is why MacVim must be able
351352to set these for each menu item. (E.g. the menu item "Edit.Paste" must be
@@ -467,19 +468,47 @@ empty space which will shink or expand so that the items to the right of it
467468are right-aligned. A space (flexspace) will be created for any toolbar item
468469whose name begins with "-space" ("-flexspace") and ends with "-"
469470
470- Toolbar icons should be tiff, png or icns , of dimension 32x32 or 24x24 pixels.
471- The larger size is used when 'tbis' is "medium" or "large", otherwise the
472- smaller size is used (which is the default). If the icon file only contains
473- one dimension then Mac OS X will scale the icon to the appropriate dimension
474- if necessary. To avoid this, use a file format which supports multiple
475- resolutions (such as icns) and provide both 32x32 and 24x24 versions of the
476- icon.
471+ Toolbar icons should be tiff, png, icns, or heic , of dimension 32x32 or 24x24
472+ pixels. The larger size is used when 'tbis' is "medium" or "large", otherwise
473+ the smaller size is used (which is the default). If the icon file only
474+ contains one dimension then Mac OS X will scale the icon to the appropriate
475+ dimension if necessary. To avoid this, use a file format which supports
476+ multiple resolutions (such as icns) and provide both 32x32 and 24x24 versions
477+ of the icon.
477478
478479Note: Only a subset of the builtin toolbar items presently have icons. If no
479480icon can be found a warning triangle is displayed instead.
480481
481482==============================================================================
482- 7. Dialogs *macvim-dialogs*
483+ 7. Touch Bar *macvim-touchbar*
484+
485+ Touch Bar in MacVim works similar to the toolbar (see | macvim-toolbar | ). The
486+ difference is that you use the special menu "TouchBar" instead of "ToolBar": >
487+ :an TouchBar.Hello :echo "Hello"<CR>
488+
489+ The separators work similar to how toolbars work: >
490+ :an TouchBar.-Sep- <Nop>
491+ :an TouchBar.-space1- <Nop>
492+ :an TouchBar.-flexspace2- <Nop>
493+
494+ The first example is a Vim separator (see | menu-separator | ) and injects a
495+ space between two buttons. The second creates a smaller space than a normal
496+ separator and are specified by names that begin with "-space" and ends with
497+ "-". The third creates a flexible empty space which will shrink or expand so
498+ that items after it will be right-aligned, and is specified by names that
499+ begin with "-flexspace" and ends with "-".
500+
501+ You can specify icons for Touch Bar buttons the same way for toolbar icons.
502+ Touch Bar icons should ideally be 36x36 pixels, and no larger than 44x44
503+ pixels. You can also use default template icons provided by Apple by using
504+ their template names. An example: >
505+ :an icon=NSTouchBarListViewTemplate TouchBar.ShowList <Nop>
506+
507+ This feature only works on Mac devices that come with Touch Bars. On the ones
508+ that don't, nothing will show up.
509+
510+ ==============================================================================
511+ 8. Dialogs *macvim-dialogs*
483512
484513Dialogs can be controlled with the keyboard in two ways. By default each
485514button in a dialog is bound to a key. The button that is highlighted by blue
@@ -498,7 +527,7 @@ select the current button. The current button is indicated with a blue
498527outline.
499528
500529==============================================================================
501- 8 . System services *macvim-services*
530+ 9 . System services *macvim-services*
502531
503532MacVim supports two system services. These can be accessed from the MacVim
504533submenu in the Services menu or by right-clicking a selection. For services
@@ -516,7 +545,7 @@ The services respect the "Open files from applications" setting in the general
516545preferences.
517546
518547==============================================================================
519- 9 . mvim:// URL handler *mvim://* *macvim-url-handler*
548+ 10 . mvim:// URL handler *mvim://* *macvim-url-handler*
520549
521550MacVim supports a custom URL handler for "mvim://" URLs. The handler is
522551supposed to be compatible to TextMate's URL scheme as documented at >
@@ -537,7 +566,7 @@ will open the file /etc/profile on line 20 when clicked in a web browser.
537566Note that url has to be a file:// url pointing to an existing local file.
538567
539568==============================================================================
540- 10 . Keyboard shortcuts *macvim-shortcuts*
569+ 11 . Keyboard shortcuts *macvim-shortcuts*
541570
542571Most keyboard shortcuts in MacVim are bound to menu items and can be
543572discovered by looking through the menus (see | macvim-menus | on how to create
@@ -617,7 +646,7 @@ sometimes be slightly involved. Here are all the things you need to consider:
617646- A few command key mappings are set up by MacVim, see | cmd-movement | .
618647
619648==============================================================================
620- 11 . Trackpad gestures *macvim-gestures*
649+ 12 . Trackpad gestures *macvim-gestures*
621650
622651MacVim supports trackpad swipe gestures. By default this can be used to
623652navigate back/forward in the help (try it!).
@@ -652,7 +681,7 @@ As another example, here is how to switch buffers by swiping left/right: >
652681 See the section on | key-mapping | for more help on how to map keys.
653682
654683==============================================================================
655- 12 . International *macvim-international*
684+ 13 . International *macvim-international*
656685
657686When editing non-English text it may be convenient to keep separate keyboard
658687layouts for normal and insert mode. This is supported via the 'imd' option on
@@ -673,7 +702,7 @@ wrong layout when going back to normal mode, then select the layout you want
673702to use in normal mode and type ":set imd" followed by ":set noimd".
674703
675704==============================================================================
676- 13 . Known bugs/missing features *macvim-todo*
705+ 14 . Known bugs/missing features *macvim-todo*
677706
678707This list is by no means exhaustive, it only enumerates some of the more
679708prominent bugs/missing features.
@@ -697,7 +726,7 @@ This is also the best place for making feature requests as well as for asking
697726general questions about MacVim.
698727
699728==============================================================================
700- 14 . Hints *macvim-hints*
729+ 15 . Hints *macvim-hints*
701730
702731In this section some general (not necessarily MacVim specific) hints are
703732given.
0 commit comments