From a0606e24e5271fc1c2ed067b78b2ac90751e3de4 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Sat, 6 Jan 2024 16:29:40 +0900 Subject: [PATCH] add faq --- docs/faq/index.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/faq/index.md b/docs/faq/index.md index eb22a05c..2f490d72 100644 --- a/docs/faq/index.md +++ b/docs/faq/index.md @@ -20,4 +20,36 @@ Please extend the display time of the virtual command line as follows. set cmd_fadeout = 3600 " one hour visible ``` +## Can I disable everything and only use EasyClick? +Yes, you can only use EasyClick without other features. +To achieve this, please refer to the following .vindrc. + +```vim +version tiny +set initmode=i " Insert mode + +" Overwrite default bindings into the dummy key +imap +imap +imap +imap + +" Define with your favorite bindings. +imap + +" Scan UI objects asynchronously (Optional) +set uiacachebuild + +" Hold UI cache for 5 sec. (Optional) +set uiacachebuild_lifetime=5000 + +" Generate a cache between 0.5 and 2.0 seconds after the operation stops. (Optional) +set uiacachebuild_staybegin=500 +set uiacachebuild_stayend=2000 +``` +Firstly, you remove all mapping in the initial mode with map command, which is the same way as Vim. +In the sample .vindrc, the initial mode is set to the insert mode. +Next, define the mapping for EasyClick with your favorite keys (the example maps with ctrl + shift + space). +Optionally, you can use the uiacachebuild option to scan the UI objects asynchronously and efficiently reuse the cache. +