]> git.rmz.io Git - dotfiles.git/commitdiff
vim: shiftwidth 2 for css
authorSamir Benmendil <samir.benmendil@gmail.com>
Tue, 24 Feb 2015 14:52:11 +0000 (14:52 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Tue, 24 Feb 2015 14:52:11 +0000 (14:52 +0000)
vim/ftplugin/css.vim [new file with mode: 0644]

diff --git a/vim/ftplugin/css.vim b/vim/ftplugin/css.vim
new file mode 100644 (file)
index 0000000..c040374
--- /dev/null
@@ -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