]> git.notmuchmail.org Git - notmuch/blobdiff - vim/plugin/notmuch.vim
vim: don't use scrolloff/sidesscrolloff in notmuch buffers
[notmuch] / vim / plugin / notmuch.vim
index b6bc6120f301aaf9a4ca211427da57c3d5f49a96..b4eeb416ce608ad58b31883639d1f8a03bd76141 100644 (file)
@@ -791,6 +791,8 @@ function! s:NM_newBuffer(type, content)
         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