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.
master
Jonathan Hodgson 6 years ago
parent edcddfee35
commit 22499cc897
  1. 16
      .vimrc

@ -355,10 +355,10 @@ nnoremap <Right> xp
nnoremap <Left> xhP
" Compiles documents
nnoremap <leader>cc :w! \| !compiler <c-r>%<CR><CR>
nnoremap <leader>cf :w! \| !compiler <c-r>% fplreport<CR><CR>
nnoremap <leader>cl :w! \| !compiler <c-r>% letter<CR><CR>
nnoremap <leader>co :!opout <c-r>%<CR><CR>
nnoremap <leader>cc :w! \| !compiler <c-r>%<CR>
nnoremap <leader>cf :w! \| !compiler <c-r>% fplreport<CR>
nnoremap <leader>cl :w! \| !compiler <c-r>% letter<CR>
nnoremap <leader>co :!opout <c-r>%<CR>
" Activate spelling
nnoremap <F7> :set spell!<cr>
@ -470,13 +470,19 @@ augroup file_web
autocmd FileType html,xhtml,css,less,javascript,php EmmetInstall
augroup END
nnoremap <localleader>b Ithis.^y$$a = pa.bind(this);
" js maps {{{2
augroup javascript
autocmd!
"binds this in class
autocmd FileType javascript nnoremap <localleader>b Ithis.^y$$a = pa.bind(this);
augroup END
"
" less maps {{{2
augroup css
autocmd!
"binds this in class
autocmd FileType less nnoremap <leader>cc :w! \| !lessc --clean-css --source-map --autoprefix="last 3 versions, ie >= 11" styles.less styles.min.css<CR><CR>
augroup END
" Add Html maps, Currently only pandoc conversion {{{2
augroup html

Loading…
Cancel
Save