1 files changed, 6 insertions(+), 0 deletions(-)
M visrc.lua
M visrc.lua => visrc.lua +6 -0
@@ 43,6 43,12 @@ function on_file_open(file)
elseif suffix == "py" then
vis:command("set tabwidth 4")
vis:command("set expandtab")
+ elseif suffix == "rs" then
+ vis:command("set tabwidth 4")
+ vis:command("set expandtab")
+ elseif suffix == "html" then
+ vis:command("set tabwidth 1") -- compromise between small size and easy editing
+ vis:command("set expandtab")
else
vis:command("set tabwidth 2")
vis:command("set expandtab")