Skip to content

Instantly share code, notes, and snippets.

@xkstein
Last active December 7, 2022 23:00
Show Gist options
  • Select an option

  • Save xkstein/786800948ae70b0c0b20d4660eada9ae to your computer and use it in GitHub Desktop.

Select an option

Save xkstein/786800948ae70b0c0b20d4660eada9ae to your computer and use it in GitHub Desktop.
My .vimrc and .tmux.conf
highlight clear
if exists("syntax_on")
syntax reset
endif
set background=dark
let colors_name="jim2"
set background=dark
if version > 580
" no guarantees for version 5.8 and below, but this makes it stop
" complaining
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name="desert"
hi Normal guifg=White guibg=grey20
" highlight groups
hi Cursor guibg=khaki guifg=slategrey
"hi CursorIM
"hi Directory
"hi DiffAdd
"hi DiffChange
"hi DiffDelete
"hi DiffText
"hi ErrorMsg
hi VertSplit guibg=#c2bfa5 guifg=grey50 gui=none
hi Folded guibg=grey30 guifg=gold
hi FoldColumn guibg=grey30 guifg=tan
hi IncSearch guifg=slategrey guibg=khaki
"hi LineNr
hi ModeMsg guifg=goldenrod
hi MoreMsg guifg=SeaGreen
hi NonText guifg=LightBlue guibg=grey30
hi Question guifg=springgreen
hi Search guibg=peru guifg=wheat
hi SpecialKey guifg=yellowgreen
hi StatusLine guibg=#c2bfa5 guifg=black gui=none
hi StatusLineNC guibg=#c2bfa5 guifg=grey50 gui=none
hi Title guifg=indianred
hi Visual gui=none guifg=khaki guibg=olivedrab
"hi VisualNOS
hi WarningMsg guifg=salmon
"hi WildMenu
"hi Menu
"hi Scrollbar
"hi Tooltip
" syntax highlighting groups
hi Comment guifg=SkyBlue
hi Constant guifg=#ffa0a0
hi Identifier guifg=palegreen
hi Statement guifg=khaki
hi PreProc guifg=indianred
hi Type guifg=darkkhaki
hi Special guifg=navajowhite
"hi Underlined
hi Ignore guifg=grey40
"hi Error
hi Todo guifg=orangered guibg=yellow2
" color terminal definitions
hi Normal ctermfg=15
hi LineNr ctermfg=7
hi Identifier ctermfg=6
hi PreProc ctermfg=13
hi Comment ctermfg=5
hi Constant ctermfg=5
hi Special ctermfg=5
hi Statement ctermfg=3
hi SpecialKey ctermfg=darkgreen
hi NonText cterm=bold ctermfg=darkblue
hi Directory ctermfg=7
hi ErrorMsg cterm=bold ctermfg=7 ctermbg=1
hi IncSearch cterm=NONE ctermfg=yellow ctermbg=green
hi Search cterm=NONE ctermfg=grey ctermbg=blue
hi MoreMsg ctermfg=2
hi ModeMsg cterm=NONE ctermfg=brown
hi Question ctermfg=2
hi StatusLine cterm=bold,reverse
hi StatusLineNC cterm=reverse
hi VertSplit cterm=reverse
hi Title ctermfg=5
hi Visual cterm=reverse
hi VisualNOS cterm=bold,underline
hi WarningMsg ctermfg=1
hi WildMenu ctermfg=0 ctermbg=11
hi Folded ctermfg=darkgrey ctermbg=NONE
hi FoldColumn ctermfg=darkgrey ctermbg=NONE
hi DiffAdd ctermbg=4
hi DiffChange ctermbg=5
hi DiffDelete cterm=bold ctermfg=4 ctermbg=6
hi DiffText cterm=bold ctermbg=1
hi Type ctermfg=2
hi Underlined cterm=underline ctermfg=5
hi Ignore ctermfg=darkgrey
hi Error cterm=bold ctermfg=7 ctermbg=1
"vim: sw=4
set -g default-terminal "xterm-256color"
unbind %
unbind '"'
unbind |
unbind -
bind-key | split-window -h
bind-key - split-window -v
unbind `
bind-key ` resize-pane -Z
unbind h
unbind j
unbind k
unbind l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n M-m "set mouse"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
set -g window-style 'bg=color17'
set -g window-active-style 'bg=color0'
set -g pane-border-style 'fg=color17, bg=color17'
set -g pane-active-border-style 'fg=color17, bg=color17'
set -g @batt_color_status_primary_discharging 'colour13'
set -g @batt_color_status_primary_charging 'colour5'
set -g @batt_color_status_primary_charged 'colour11'
set -g @batt_color_status_primary_attached 'colour10'
set -g @mode_indicator_empty_mode_style 'bg=color13,fg=black'
set -g status-bg color241
set -g status-right-length 40
set -g status-right '#{battery_color_status_bg} #{battery_icon_charge} #{battery_percentage} | %a %h-%d %H:%M #{tmux_mode_indicator}'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jaclu/tmux-power-zoom'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
" Plugin Stuff
execute pathogen#infect()
" nmap j gj
" nmap k gk
" nmap $ g$
" nmap 0 g0
syntax on
colorscheme jim2
" Python Stuff
filetype plugin indent on
set tags=tags;/
" let g:jedi#completions_command = "<C-J>"
" This is for switching buffers
nnoremap <C-h> :bnext<Enter>
nnoremap <C-l> :bprev<Enter>
" turn hybrid line numbers on
set number relativenumber
inoremap jk <Esc>
set tabstop=2
set shiftwidth=2
set expandtab
set wrap!
set cursorline
" set cindent
set autoindent
set colorcolumn=80
hi clear colorcolumn
hi colorcolumn ctermbg=17
"hi Cursorline cterm=none
hi clear Cursorline
hi CursorLineNR ctermfg=white ctermbg=8
autocmd InsertEnter * highlight CursorLineNR ctermfg=0 ctermbg=11
autocmd InsertLeave * highlight CursorLineNR ctermfg=0 ctermbg=7
" Unmap arrowkeys
map <left> <nop>
map <right> <nop>
imap <left> <nop>
imap <right> <nop>
" C
set exrc
set secure
" path to directory where library can be found
" let g:clang_library_path='/usr/local/opt/llvm/lib'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment