From cd61f1029c8b83db07ff35579057da6614e7e0d9 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 13 Dec 2017 21:23:28 +0800 Subject: [PATCH] Add filetype --- autoload/vebugger.vim | 1 + autoload/vebugger/std.vim | 1 + 2 files changed, 2 insertions(+) diff --git a/autoload/vebugger.vim b/autoload/vebugger.vim index 1c3871a..4ff724b 100644 --- a/autoload/vebugger.vim +++ b/autoload/vebugger.vim @@ -106,6 +106,7 @@ function! s:f_debugger.showTerminalBuffer() dict new setlocal buftype=nofile setlocal bufhidden=wipe + setlocal filetype=VebuggerTerminal let self.terminalBuffer=bufnr('') silent file Vebugger:Terminal wincmd p diff --git a/autoload/vebugger/std.vim b/autoload/vebugger/std.vim index 5d8c8c6..ac8275b 100644 --- a/autoload/vebugger/std.vim +++ b/autoload/vebugger/std.vim @@ -116,6 +116,7 @@ function! vebugger#std#openShellBuffer(debugger) let b:debugger=a:debugger autocmd BufDelete if exists('b:debugger') | call b:debugger.kill() | endif setlocal buftype=nofile + setlocal filetype=VebuggerShell setlocal bufhidden=wipe let a:debugger.shellBuffer=bufnr('') silent file Vebugger:Shell