From c20b8fce3c5883a2ec52875d5adeb8aa06dd85c6 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 26 Mar 2020 12:09:42 +0100 Subject: [PATCH 1/2] Make lightbg lighter The three-digit color codes in xtermcontrol work differently than in CSS. #EEE is equivalent to #E0E0E0, not #EEEEEE. --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index d3fdc2d..0c0f63b 100644 --- a/.zshrc +++ b/.zshrc @@ -28,7 +28,7 @@ then alias ack=$ack fi alias darkbg='xtermcontrol --bg "#000" --fg "#FFF" --highlight="#00F"; export BG=dark' -alias lightbg='xtermcontrol --bg "#EEE" --fg "#000" --highlight="#0FF"; export BG=light' +alias lightbg='xtermcontrol --bg "#F0F0F0" --fg "#000" --highlight="#0FF"; export BG=light' alias defaultbg='. ~/.zxtermcolors' alias ag='ag --color-path "34;47"' From 9a3b1f0b9bd045ff0b0f427b910ffb6211fc4d81 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 26 Mar 2020 14:55:30 +0100 Subject: [PATCH 2/2] Handle .ts and .html files Recognize .ts files as javascript (its really typescript but I don't have syntax highlighting for that). Set sw for javascript and html. --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index a4bdc73..4354793 100644 --- a/.vimrc +++ b/.vimrc @@ -42,3 +42,8 @@ autocmd FileType perl syntax on autocmd FileType go set sw=8 autocmd FileType go set tw=79 autocmd FileType go set noexpandtab + +autocmd BufRead,BufNewFile *.ts set filetype=javascript +autocmd FileType javascript set sw=2 + +autocmd FileType html set sw=2