vim: cleanup settings in newBuffer() and make them local
authorBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 03:25:43 +0000 (22:25 -0500)
committerBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 03:25:43 +0000 (22:25 -0500)
vim/plugin/notmuch.vim

index 7c69bc8bfc34e41469e43d61a9624faa88c0960a..8e3a92abcfd82e9bef2310fc8552a5603aede88a 100644 (file)
@@ -847,12 +847,10 @@ endfunction
 
 function! s:NM_newBuffer(type, content)
         enew
 
 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
         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
         execute printf('set filetype=notmuch-%s', a:type)
         execute printf('set syntax=notmuch-%s', a:type)
         let b:nm_type = a:type