From 5bb149aab27b68d48b165f1e0dae19d1a83cc6f2 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Thu, 26 Nov 2009 22:25:43 -0500 Subject: [PATCH] vim: cleanup settings in newBuffer() and make them local --- vim/plugin/notmuch.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.43.0