From 32ee2ac685115afb1f9bf9e32abd8da4c10cc4ef Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 26 Oct 2015 17:33:44 +0100 Subject: [PATCH] Fix typos in api.md --- documentation/api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/api.md b/documentation/api.md index 6de4586..fcffec6 100644 --- a/documentation/api.md +++ b/documentation/api.md @@ -61,7 +61,7 @@ Gets the value of the VimFx pref `pref`. // Get the value of the Hint chars option: vimfx.get('hint_chars') // Get all keyboard shortcuts (as a string) for the `f` command: -vimfx.get('modes.normal.follow') +vimfx.get('mode.normal.follow') ``` #### `vimfx.getDefault(pref)` @@ -78,7 +78,7 @@ Sets the value of the VimFx pref `pref` to `value`. // Set the value of the Hint chars option: vimfx.set('hint_chars', 'abcdefghijklmnopqrstuvwxyz') // Add yet a keyboard shortcut for the `f` command: -vimfx.set('modes.normal.follow', vimfx.getDefault('modes.normal.follow') + ' e') +vimfx.set('mode.normal.follow', vimfx.getDefault('mode.normal.follow') + ' e') ``` When extending a pref (as in the second example above), be sure to use @@ -98,8 +98,8 @@ object] for more information about order. // Even though we set the shortcut for focusing the search bar last, the command // for focusing the location bar “wins”, because it comes first in VimFx’s // settings page in the Add-ons Manager. -vimfx.set('modes.normal.focus_location_bar', 'ö') -vimfx.set('modes.normal.focus_search_bar', 'ö') +vimfx.set('mode.normal.focus_location_bar', 'ö') +vimfx.set('mode.normal.focus_search_bar', 'ö') // Swapping their orders also swaps the “winner”. let {commands} = vimfx.modes.normal -- 2.39.3