From 22499cc8976cf5ca6cc09bc48802ca9cccdcdff9 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 19 Dec 2018 15:17:29 +0000 Subject: [PATCH] Adds compile command for CSS and modifies other compile commands The global compile commands now show the shell reponce until you push enter to go back to vim The CSS compile command is seperate from the others because it doesn't use the file name, it looks for a styles.less file and compiles that. --- .vimrc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index 85c7f21..b9b7e9e 100644 --- a/.vimrc +++ b/.vimrc @@ -355,10 +355,10 @@ nnoremap xp nnoremap xhP " Compiles documents -nnoremap cc :w! \| !compiler % -nnoremap cf :w! \| !compiler % fplreport -nnoremap cl :w! \| !compiler % letter -nnoremap co :!opout % +nnoremap cc :w! \| !compiler % +nnoremap cf :w! \| !compiler % fplreport +nnoremap cl :w! \| !compiler % letter +nnoremap co :!opout % " Activate spelling nnoremap :set spell! @@ -470,13 +470,19 @@ augroup file_web autocmd FileType html,xhtml,css,less,javascript,php EmmetInstall augroup END -nnoremap b Ithis.^y$$a = pa.bind(this); " js maps {{{2 augroup javascript autocmd! "binds this in class autocmd FileType javascript nnoremap b Ithis.^y$$a = pa.bind(this); augroup END +" +" less maps {{{2 +augroup css + autocmd! + "binds this in class + autocmd FileType less nnoremap cc :w! \| !lessc --clean-css --source-map --autoprefix="last 3 versions, ie >= 11" styles.less styles.min.css +augroup END " Add Html maps, Currently only pandoc conversion {{{2 augroup html