aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-19 11:27:55 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-19 11:27:55 +0200
commitf212b9d4952c87052e23b5161195917410b7c911 (patch)
tree238e6fdefac447230b556779870dde4baa466247 /config.def.h
parentdef913f428365d048ce30d71117421acbf379a75 (diff)
downloadvis-f212b9d4952c87052e23b5161195917410b7c911.tar.gz
vis-f212b9d4952c87052e23b5161195917410b7c911.tar.xz
Implement expand tab functionality, make tabwidth configurable
If expandtab is enabled then inserted tabs are replaced by tabwidth amount of spaces. Both settings apply to all windows files and can be changed via: :set tabwidth n # where 1 <= n <= 8 :set expandtab (1|yes|true)|(0|no|false)
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index c03da71..6e235a0 100644
--- a/config.def.h
+++ b/config.def.h
@@ -52,6 +52,7 @@ static Command cmds[] = {
{ "^qa(ll)?!?$", cmd_qall },
{ "^q(quit)?!?$", cmd_quit },
{ "^r(ead)?$", cmd_read },
+ { "^set$", cmd_set },
{ "^sp(lit)?$", cmd_split },
{ "^s(ubstitute)?$", cmd_substitute },
{ "^v(split)?$", cmd_vsplit },
@@ -474,6 +475,7 @@ static KeyBinding vis_mode_insert[] = {
{ { CONTROL('M') }, insert_newline, { NULL } },
{ { CONTROL('O') }, switchmode, { .i = VIS_MODE_OPERATOR } },
{ { CONTROL('V') }, insert_verbatim, { NULL } },
+ { { NONE('\t') }, insert_tab, { NULL } },
{ /* empty last element, array terminator */ },
};