From: Samir Benmendil Date: Tue, 24 Feb 2015 14:52:11 +0000 (+0000) Subject: vim: shiftwidth 2 for css X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/f9ed36870c9372e676ff0c6bbf1cf43ffe90678a?ds=sidebyside vim: shiftwidth 2 for css --- 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