mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 03:35:10 +01:00
Better true colour support
This commit is contained in:
@@ -88,7 +88,7 @@ function grepl
|
|||||||
end
|
end
|
||||||
|
|
||||||
## Various
|
## Various
|
||||||
alias tmux 'tmux -2'
|
#alias tmux 'tmux -2'
|
||||||
alias tmux_reload "tmux source-file ~/.tmux.conf"
|
alias tmux_reload "tmux source-file ~/.tmux.conf"
|
||||||
alias tmux_takeover "tmux detach -a"
|
alias tmux_takeover "tmux detach -a"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ set -g bell-action any
|
|||||||
|
|
||||||
# Default termtype. If the rcfile sets $TERM, that overrides this value.
|
# Default termtype. If the rcfile sets $TERM, that overrides this value.
|
||||||
set -g default-terminal tmux-256color-italic
|
set -g default-terminal tmux-256color-italic
|
||||||
set -g terminal-overrides ',tmux-256color-italic:Tc'
|
#set -g terminal-overrides ',tmux-256color-italic:Tc'
|
||||||
|
set -g terminal-overrides ',*256col*:Tc'
|
||||||
|
|
||||||
# Keep your finger on ctrl, or don't
|
# Keep your finger on ctrl, or don't
|
||||||
bind-key ^D detach-client
|
bind-key ^D detach-client
|
||||||
|
|||||||
20
.vimrc
20
.vimrc
@@ -431,22 +431,20 @@ set hidden
|
|||||||
set cryptmethod=blowfish2
|
set cryptmethod=blowfish2
|
||||||
|
|
||||||
" Ensure 256 colour support if the terminal supports it
|
" Ensure 256 colour support if the terminal supports it
|
||||||
"if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
|
if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
|
||||||
"set t_Co=256
|
|
||||||
" The "^[" is a single character. You enter it by pressing Ctrl+v and then ESC.
|
|
||||||
set t_8f=^[[38;2;%lu;%lu;%lum
|
|
||||||
set t_8b=^[[48;2;%lu;%lu;%lum
|
|
||||||
|
|
||||||
colorscheme falcon
|
colorscheme falcon
|
||||||
|
|
||||||
" This is what sets vim to use 24-bit colors. It will also work for any version of neovim
|
|
||||||
" newer than 0.1.4.
|
|
||||||
set termguicolors
|
|
||||||
|
|
||||||
" create a bar for airline
|
" create a bar for airline
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
"endif
|
endif
|
||||||
|
|
||||||
|
" This is what sets vim to use 24-bit colors. It will also work for any version of neovim
|
||||||
|
if exists('+termguicolors')
|
||||||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
|
set termguicolors
|
||||||
|
endif
|
||||||
|
|
||||||
" Toggle paste and autoindent mode (enable paste so no indention weirdness
|
" Toggle paste and autoindent mode (enable paste so no indention weirdness
|
||||||
" happens when pasting into the current file)
|
" happens when pasting into the current file)
|
||||||
|
|||||||
Reference in New Issue
Block a user