From 0a56d3efdde9b862767d254687ecd28543570af1 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 20 Aug 2016 10:40:48 +0200 Subject: [PATCH] Change `` ` `` into `'` This is both for the `` ` `` shortcut (go to mark) and the `` ` `` mark (last position). Both `` ` `` and `'` are used in Vim. `'` is a better default, because it is easier to type -- both on an en-US QWERTY keyboard and, more importantly, on some international layouts, such as the sv-SE layout. Refs. #788. --- documentation/commands.md | 10 +++++----- documentation/options.md | 4 ++-- extension/lib/defaults.coffee | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/documentation/commands.md b/documentation/commands.md index 7d61370..71574b4 100644 --- a/documentation/commands.md +++ b/documentation/commands.md @@ -141,16 +141,16 @@ eating your best hint char on most pages; see [The hint commands]). [The hint commands]: #the-hint-commands--hints-mode -### Marks: `m` and `` ` `` +### Marks: `m` and `'` Other than traditional scrolling, VimFx has _marks._ Press `m` followed by a letter to associate the current scroll position with that letter. For example, press `ma` to save the position into mark _a._ Then you can return to that -position by pressing `` ` `` followed by the same letter, e.g. `` `a ``. +position by pressing `'` followed by the same letter, e.g. `'a`. -One mark is special: `` ` ``. Pressing ``` `` ``` takes you to the scroll -position before the last `gg`, `G`, `0`, `$`, `/`, `n`, `N` or `` ` ``. (You can -change this mark using the [`scroll.last_position_mark`] pref.) +One mark is special: `'`. Pressing `''` takes you to the scroll position before +the last `gg`, `G`, `0`, `$`, `/`, `n`, `N` or `'`. (You can change this mark +using the [`scroll.last_position_mark`] pref.) [`scroll.last_position_mark`]: options.md#scroll.last_position_mark diff --git a/documentation/options.md b/documentation/options.md index 8293b89..99087cf 100644 --- a/documentation/options.md +++ b/documentation/options.md @@ -360,7 +360,7 @@ These are VimFx’s variants, and the commands they affect: - `smoothScroll.lines.spring-constant`: `h`, `l`, `j`, `k` - `smoothScroll.pages.spring-constant`: `d`, `u`, ``, `` -- `smoothScroll.other.spring-constant`: `gg`, `G`, `0`, `^`, `$`, `` ` `` +- `smoothScroll.other.spring-constant`: `gg`, `G`, `0`, `^`, `$`, `'` Note that the value of these prefs are _strings,_ not numbers! @@ -411,7 +411,7 @@ different page scrolling commands. #### `scroll.last_position_mark` -The special mark for the [`` ` ``][scroll-to-mark] command that takes you to the +The special mark for the [`'`][scroll-to-mark] command that takes you to the last position. [scroll-to-mark]: commands.md#marks-m-and- diff --git a/extension/lib/defaults.coffee b/extension/lib/defaults.coffee index c09bd86..1b3d973 100644 --- a/extension/lib/defaults.coffee +++ b/extension/lib/defaults.coffee @@ -57,7 +57,7 @@ shortcuts = '0 ^': 'scroll_to_left' '$': 'scroll_to_right' 'm': 'mark_scroll_position' - '`': 'scroll_to_mark' + "'": 'scroll_to_mark' 'tabs': 't': 'tab_new' @@ -178,7 +178,7 @@ advanced_options = 'scroll.reset_timeout': 1000 'scroll.full_page_adjustment': 40 'scroll.half_page_adjustment': 20 - 'scroll.last_position_mark': '`' + 'scroll.last_position_mark': "'" 'pattern_selector': ':-moz-any( a, button, input[type="button"] ):not([role="menu"]):not([role="tab"])' -- 2.39.3