Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Adds compile command for CSS and modifies other compile commands
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jonathan Hodgson committed Dec 19, 2018
1 parent edcddfe commit 22499cc
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 22499cc

Please sign in to comment.