aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin/css/css.vim
diff options
context:
space:
mode:
Diffstat (limited to 'files/vim/ftplugin/css/css.vim')
-rw-r--r--files/vim/ftplugin/css/css.vim12
1 files changed, 10 insertions, 2 deletions
diff --git a/files/vim/ftplugin/css/css.vim b/files/vim/ftplugin/css/css.vim
index 0064fda..bbb1939 100644
--- a/files/vim/ftplugin/css/css.vim
+++ b/files/vim/ftplugin/css/css.vim
@@ -3,9 +3,17 @@
"
" Syntastic linters: csslint, prettycss, sstylelint
+let g:syntastic_css_csslint_args = "--ignore=order-alphabetical,ids"
+setlocal textwidth=80
call matchadd('ColorColumn', '\%81v', 100)
-let g:syntastic_css_csslint_args = "--ignore=order-alphabetical,ids"
+" Tabs are expanded to 4 spaces
+setlocal tabstop=4 shiftwidth=4 noexpandtab
+" Don't show existing tabs
+setlocal nolist
-autocmd BufEnter *.css source ~/.vim/ftplugin/css/css_mappings.vim
+" 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>