aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/css/css.vim
blob: f81220974237b2c4f28079f79676ce5fe5a6975c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" ~/.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

let mapleader = " "

nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/css/css.vim<CR>
nnoremap <buffer> <leader>e :Errors<CR>
nnoremap <buffer> <leader>s vi{!sort<CR>