~quf/visrc

f75804ce1c566a6f4cccd3c1843131fac7a333ef — Lukas Himbert 1 year, 8 months ago 8f95850 trunk
rust und html
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")