소스 검색

changed autocommand to compile povray files on saving them and removed keybinging for said compilation

bananicorn 6 년 전
부모
커밋
9e674dc529
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      .vimrc

+ 6 - 2
.vimrc

@@ -36,7 +36,8 @@ set fileencoding=utf-8
 "turn on syntax highlighting and indentation
 syntax on
 filetype indent plugin on
-colorscheme zellner
+"colorscheme zellner
+colorscheme gentooish "available in the void-package vim-colorschemes
 
 "for indentating html - otherwise these tags are not recognized
 let g:html_indent_inctags = "html,body,head,tbody,table,td,tr,th,canvas"
@@ -104,4 +105,7 @@ nnoremap <silent> <esc><esc> :noh<CR>
 " nnoremap <silent> <esc> :noh<CR>
 
 "f5 triggers a povray render when in a .pov file
-autocmd FileType pov nnoremap <F5> :!povray .<CR>:redraw!<CR>
+augroup pov
+autocmd!
+	au BufWritePost *.pov !povray .
+augroup END