From 6e86b9b7269178837a99b9dfefaafa0a058a2b55 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 24 Apr 2017 17:29:20 +0100 Subject: [PATCH] Add shortcuts for media queries for css/less --- .vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index aecdd4f..b1ecc38 100644 --- a/.vimrc +++ b/.vimrc @@ -119,7 +119,7 @@ nnoremap gV "`[".getregtype(v:register)[0]."`]" cnoremap w!! w !sudo tee % "Run current line as command -nnoremap Q !!$SHELL +nnoremap q !!$SHELL " Do Shebang line inoremap :sil exe ".!which " s/^/#!/ filetype detectYpDi @@ -189,6 +189,7 @@ augroup file_web augroup END augroup htmlShortcuts + autocmd! autocmd FileType html inoremap ;b (<.>)FbT>i autocmd FileType html inoremap ;i (<.>)FeT>i autocmd FileType html inoremap ;1

(<.>)2kf ;ol
(<.>)03kf ;m @media screen and (min-width:px){(<.>)}?pxi + autocmd FileType css,less inoremap ;M @media screen and (max-width:px){(<.>)}?pxi +augroup end + augroup new_html autocmd! autocmd BufNew,BufNewFile *.html call NewHtml()