mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-26 11:24:53 +01:00
vim: cleanup settings in newBuffer() and make them local
This commit is contained in:
parent
bbca6e03c6
commit
5bb149aab2
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue