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