summaryrefslogtreecommitdiff
path: root/vim.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-06-07 07:58:51 -0700
committerBen Sima <ben@bsima.me>2018-06-07 07:58:51 -0700
commit77ab26d4c4575a5d0d7dafe55b24c21887d19e67 (patch)
treea2c0cc975cac2884648bd8cf732c8ff09fe19122 /vim.nix
parentd50827c01003214094d4b87fa58d14a445e71589 (diff)
Colorscheme fixes
Diffstat (limited to 'vim.nix')
-rw-r--r--vim.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/vim.nix b/vim.nix
index 311300b..f458165 100644
--- a/vim.nix
+++ b/vim.nix
@@ -39,6 +39,10 @@ in
imap fd <Esc>
set mouse=a
""
+ "" https://github.com/lifepillar/vim-solarized8#troubleshooting
+ "let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
+ "let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
+ set termguicolors
"" Auto-switch theme
let hour = strftime("%H")
if 6 <= hour && hour < 18
@@ -47,6 +51,6 @@ in
set background=dark
endif
let g:solarized_termcolors=256
- colorscheme solarized
+ colorscheme solarized8
'';
}