aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/css/css.vim
diff options
context:
space:
mode:
Diffstat (limited to 'stow/vim/.vim/ftplugin/css/css.vim')
-rw-r--r--stow/vim/.vim/ftplugin/css/css.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/stow/vim/.vim/ftplugin/css/css.vim b/stow/vim/.vim/ftplugin/css/css.vim
new file mode 100644
index 0000000..695243c
--- /dev/null
+++ b/stow/vim/.vim/ftplugin/css/css.vim
@@ -0,0 +1,20 @@
+" ~/.vim/ftplugin/css/css.vim
+" CSS-specific vim configuration
+"
+" Syntastic linters: csslint, prettycss, sstylelint
+
+"let g:syntastic_css_csslint_args = "--ignore=order-alphabetical,ids"
+
+setlocal textwidth=80
+call matchadd('ColorColumn', '\%81v', 100)
+
+" Tabs are expanded to 2 spaces
+setlocal tabstop=2 shiftwidth=2 expandtab
+" Don't show existing tabs
+setlocal nolist
+
+" Mappings
+nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/css/css.vim<CR>
+nnoremap <buffer> <leader>e :Errors<CR>
+nnoremap <buffer> <leader>s vi{!sort<CR>
+