From 36cb8655c29b330fda6604dccc5e9c0c2e6c4d59 Mon Sep 17 00:00:00 2001 From: Mick Koch Date: Sat, 13 Aug 2011 07:48:54 -0400 Subject: [PATCH] Set nomodifiable in CoffeeCompile Running CoffeeCompile with an initial empty buffer could leave the CoffeeCompile buffer as modifiable --- ftplugin/coffee.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim index 0ad8359..17f3f3c 100644 --- a/ftplugin/coffee.vim +++ b/ftplugin/coffee.vim @@ -179,7 +179,7 @@ function! s:CoffeeCompile(startline, endline, args) " Set up scratch buffer. setlocal bufhidden=wipe buftype=nofile - setlocal nobuflisted noswapfile nowrap + setlocal nobuflisted nomodifiable noswapfile nowrap autocmd BufWipeout call s:CoffeeCompileClose() nnoremap q :hide