projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbca6e0
)
vim: cleanup settings in newBuffer() and make them local
author
Bart Trojanowski
<bart@jukie.net>
Fri, 27 Nov 2009 03:25:43 +0000
(22:25 -0500)
committer
Bart Trojanowski
<bart@jukie.net>
Fri, 27 Nov 2009 03:25:43 +0000
(22:25 -0500)
vim/plugin/notmuch.vim
patch
|
blob
|
history
diff --git
a/vim/plugin/notmuch.vim
b/vim/plugin/notmuch.vim
index 7c69bc8bfc34e41469e43d61a9624faa88c0960a..8e3a92abcfd82e9bef2310fc8552a5603aede88a 100644
(file)
--- 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