Navigation Menu

Skip to content

Commit

Permalink
Add note about possible change to file writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rein Henrichs committed Apr 18, 2011
1 parent 2269d77 commit 6a2b175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/makegreen.vim
Expand Up @@ -28,7 +28,7 @@ function MakeGreen(...) "{{{1
let make_args = '%'
endif

silent! w
silent! w " TODO: configuration option?

This comment has been minimized.

Copy link
@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
Expand All @@ -46,6 +46,7 @@ function MakeGreen(...) "{{{1
endif
endfunction
"}}}1
"
" Utility Functions" {{{1
function s:GetFirstError()
if getqflist() == []
Expand Down

0 comments on commit 6a2b175

Please sign in to comment.