From f9ed36870c9372e676ff0c6bbf1cf43ffe90678a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 24 Feb 2015 14:52:11 +0000 Subject: [PATCH] vim: shiftwidth 2 for css --- vim/ftplugin/css.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 vim/ftplugin/css.vim diff --git a/vim/ftplugin/css.vim b/vim/ftplugin/css.vim new file mode 100644 index 0000000..c040374 --- /dev/null +++ b/vim/ftplugin/css.vim @@ -0,0 +1,7 @@ +" invert all hex colors +" :%s/\v#(\x{6})/\=printf('#%06x', 0xffffff - eval('0x'.submatch(1))) + +setlocal expandtab +setlocal tabstop=2 +setlocal shiftwidth=2 +setlocal softtabstop=2 -- 2.48.1