aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin/css/css.vim
blob: 695243c801e393e4bf9dc03d0f295c39020dbbcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>