Permalink
Browse files

Add note about possible change to file writing

  • Loading branch information...
1 parent 2269d77 commit 6a2b175e9a4a178fef45e70924cc7becc7a0199a Rein Henrichs committed Apr 18, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/makegreen.vim
@@ -28,7 +28,7 @@ function MakeGreen(...) "{{{1
let make_args = '%'
endif
- silent! w
+ silent! w " TODO: configuration option?
@CharString
CharString Feb 9, 2013

Instead of inventing a new option you could follow what :set autowrite? says; calling MakeGreen expects a jump to a different buffer.
Or you could remove this line altogether. In a way it is a config option already:
map <leader>t :w<cr>:call MakeGreen()<cr>

let s:old_sp = &shellpipe
if has('unix')
set shellpipe=&> "quieter make output
@@ -46,6 +46,7 @@ function MakeGreen(...) "{{{1
endif
endfunction
"}}}1
+"
" Utility Functions" {{{1
function s:GetFirstError()
if getqflist() == []

0 comments on commit 6a2b175

Please sign in to comment.