From: Bart Trojanowski Date: Fri, 27 Nov 2009 03:25:43 +0000 (-0500) Subject: vim: cleanup settings in newBuffer() and make them local X-Git-Tag: 0.1~313^2~29 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=5bb149aab27b68d48b165f1e0dae19d1a83cc6f2;hp=bbca6e03c650fcd29e88c8aa2cdd987195e3903a vim: cleanup settings in newBuffer() and make them local --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 7c69bc8b..8e3a92ab 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -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