aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-18 12:45:13 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-18 15:08:58 +0200
commit0cb6e49b796881cbb8b754051eae10a7151ebd99 (patch)
treeb4b2072981516e724044c03c063c68fb44a17ab7 /config.def.h
parent0d1152340ccb3c6a0a8b4160fda34cc6687b236e (diff)
downloadvis-0cb6e49b796881cbb8b754051eae10a7151ebd99.tar.gz
vis-0cb6e49b796881cbb8b754051eae10a7151ebd99.tar.xz
vis: add completion for current file contents via <C-n> in insert mode
Based on a patch by Silvan Jegen. Close #128, close #277
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 8699136..c6285e1 100644
--- a/config.def.h
+++ b/config.def.h
@@ -319,6 +319,7 @@ static const KeyBinding bindings_insert[] = {
{ "<C-d>", ALIAS("<Escape><<i") },
{ "<C-i>", ALIAS("<Tab>") },
{ "<C-j>", ALIAS("<Enter>") },
+ { "<C-n>", ACTION(COMPLETE_WORD) },
{ "<C-m>", ALIAS("<Enter>") },
{ "<C-o>", ACTION(MODE_OPERATOR_PENDING) },
{ "<C-r>", ACTION(INSERT_REGISTER) },