forked from aniani/vim
runtime(defaults): Detect putty terminal and switch to dark background
Vim tries to determine the default background and checks for $TERM and even checks for the "putty" value. But unfortunately, putty by default uses "xterm" as $TERM value and as such Vim uses a "light" background. So use a TermResponse autocommand to set the background for putty back to dark. Note: this only works on non-tiny builds and when defaults.vim is in use. Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -1701,6 +1701,8 @@ func Test_verbose_option()
|
||||
CheckScreendump
|
||||
|
||||
let lines =<< trim [SCRIPT]
|
||||
" clear the TermResponse autocommand from defaults.vim
|
||||
au! vimStartup TermResponse
|
||||
command DoSomething echo 'hello' |set ts=4 |let v = '123' |echo v
|
||||
call feedkeys("\r", 't') " for the hit-enter prompt
|
||||
set verbose=20
|
||||
|
||||
Reference in New Issue
Block a user