From b98cea909f1a38fc8d0f901164e1e44b03620e2a Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 1 Nov 2015 21:26:53 +0300 Subject: shada: Also store last search direction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note: it looks like viminfo files do not store search direction intentionally. After reading viminfo file search direction was considered to be “forward”. Note 2: all files created on earlier Neovim version will automatically receive “forward” direction. Fixes #3580 --- runtime/doc/starting.txt | 2 ++ runtime/doc/vim_diff.txt | 1 + 2 files changed, 3 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 572823eca9..f729fbefcc 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -1232,6 +1232,8 @@ exactly four MessagePack objects: With |shada-h| or 'nohlsearch' this key is always false. sp Binary N/A Actual pattern. Required. + sb Boolean false True if search direction is + backward. * any none Other keys are allowed for compatibility reasons, see |shada-compatibility|. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 6cbc2aef59..a6cbf6f4c4 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -117,6 +117,7 @@ Additional differences: |shada-error-handling| - Vim keeps no timestamps at all, neither in viminfo file nor in the instance itself. +- ShaDa file keeps search direction (|v:searchforward|), viminfo does not. ============================================================================== 4. New Features *nvim-features-new* -- cgit