aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin/css/css.vim
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-12-04 19:02:03 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-12-04 19:02:03 +0100
commit8f25ec25a41be4abee3217842c350a45e1995b0b (patch)
tree8a025984bd4fa26bb323555bbf5d239c685480f7 /files/vim/ftplugin/css/css.vim
parentcf6fed448406631c8d7e2cbfb7e25248e2ab305f (diff)
downloadconfigs-8f25ec25a41be4abee3217842c350a45e1995b0b.tar.gz
configs-8f25ec25a41be4abee3217842c350a45e1995b0b.zip
Discovered setlocal and map <buffer>.
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>