Do not set a filetype in scratch buffers.
This commit is contained in:
parent
d0e7fa747f
commit
f8a07ae8e3
@ -100,9 +100,9 @@ def feedkeys(keys, mode='n'):
|
||||
|
||||
def new_scratch_buffer(text):
|
||||
"""Create a new scratch buffer with the text given"""
|
||||
command("botright new")
|
||||
command("set ft=")
|
||||
command("set buftype=nofile")
|
||||
vim.command("botright new")
|
||||
vim.command("set ft=")
|
||||
vim.command("set buftype=nofile")
|
||||
|
||||
vim.current.buffer[:] = text.splitlines()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user