From 6ff4b3c21e23ddbd01af184c498a76b4438df099 Mon Sep 17 00:00:00 2001 From: Jordan Mandel Date: Fri, 29 Sep 2023 13:21:56 -0400 Subject: [PATCH] Update yankstack.txt Added description of yankstack_yank_keys to documentation. --- doc/yankstack.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/yankstack.txt b/doc/yankstack.txt index 2a7dee5..5e09038 100644 --- a/doc/yankstack.txt +++ b/doc/yankstack.txt @@ -72,6 +72,18 @@ For example, if you wanted to define some mappings based on your |leader| key, y nmap p yankstack_substitute_older_paste nmap P yankstack_substitute_newer_paste +You can also prevent certain keys from being remapped by setting the `g:yankstack_yank_keys` +to the keys of your choosing. For example, if you only want Yankstack to remap `y` and `d`: + +``` +let g:yankstack_yank_keys = ['y', 'd'] +``` + +the default value of this variable is + +``` +let g:yankstack_yank_keys = ['c', 'C', 'd', 'D', 's', 'S', 'x', 'X', 'y', 'Y'] +``` COMPATIBILITY *yankstack-compatibility*