mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +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)
|
function! s:NM_newBuffer(type, content)
|
||||||
enew
|
enew
|
||||||
setlocal buftype=nofile readonly modifiable
|
setlocal buftype=nofile readonly modifiable scrolloff=0 sidescrolloff=0
|
||||||
silent put=a:content
|
silent put=a:content
|
||||||
keepjumps 0d
|
keepjumps 0d
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
set scrolloff=0
|
|
||||||
set sidescrolloff=0
|
|
||||||
execute printf('set filetype=notmuch-%s', a:type)
|
execute printf('set filetype=notmuch-%s', a:type)
|
||||||
execute printf('set syntax=notmuch-%s', a:type)
|
execute printf('set syntax=notmuch-%s', a:type)
|
||||||
let b:nm_type = a:type
|
let b:nm_type = a:type
|
||||||
|
|
Loading…
Add table
Reference in a new issue