vim: cleanup settings in newBuffer() and make them local

This commit is contained in:
Bart Trojanowski 2009-11-26 22:25:43 -05:00
parent bbca6e03c6
commit 5bb149aab2

View file

@ -847,12 +847,10 @@ endfunction
function! s:NM_newBuffer(type, content)
enew
setlocal buftype=nofile readonly modifiable
setlocal buftype=nofile readonly modifiable scrolloff=0 sidescrolloff=0
silent put=a:content
keepjumps 0d
setlocal nomodifiable
set scrolloff=0
set sidescrolloff=0
execute printf('set filetype=notmuch-%s', a:type)
execute printf('set syntax=notmuch-%s', a:type)
let b:nm_type = a:type