]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ftplugin/css.vim
vim: shiftwidth 2 for css
[dotfiles.git] / vim / ftplugin / css.vim
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