From 3f119fc3fcf8bafdc37f81d0402a8768fec3bc61 Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Sun, 18 Dec 2022 11:55:40 +0300 Subject: [PATCH] vis: add python ftdetect, drop expandtab for c++ --- vis/visrc.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vis/visrc.lua b/vis/visrc.lua index 3ef1cce..097b7dd 100644 --- a/vis/visrc.lua +++ b/vis/visrc.lua @@ -13,10 +13,10 @@ vis.ftdetect.filetypes.rust.cmd = { "set expandtab", "set tabwidth 4", }; ---vis.ftdetect.filetypes.python.cmd = { --- "set expandtab", --- "set tabwidth 4", ---}; +vis.ftdetect.filetypes.python.cmd = { + "set expandtab", + "set tabwidth 4", +}; vis.ftdetect.filetypes.diff.ext = { "%.diff$", "%.patch$", "%.rej$" }; vis.ftdetect.filetypes["git-commit"] = { ext = { "^COMMIT_EDITMSG$" }, @@ -45,7 +45,6 @@ vis.ftdetect.filetypes.css.cmd = { "set tabwidth 2", }; vis.ftdetect.filetypes.cpp.cmd = { - "set expandtab", "set tabwidth 4", }; vis.ftdetect.filetypes.scheme.cmd = { -- 2.38.5