Browse Source

bashrc, zshrc: vim aliases; vimplugrc: get rid of gvim, I do not use it anyway

master
Von Random 11 months ago
parent
commit
e788939620
3 changed files with 15 additions and 11 deletions
  1. +4
    -0
      bashrc
  2. +7
    -11
      vimplugrc
  3. +4
    -0
      zshrc

+ 4
- 0
bashrc View File

@ -59,6 +59,10 @@ atmux() { tmux attach; }
rscreen() { command screen -Dr; }
scr() { command screen sudo -Es; }
# vim
vi() { $(whence nvim || whence vim || return 1) "$@"; }
vim() { vi "$@"; }
# termcompat
s() { "$(command -v termcompat||return 0)" ssh "$@"; }


+ 7
- 11
vimplugrc View File

@ -42,22 +42,18 @@ nmap <Leader>ft :Filetypes<CR>
" vimwiki
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
" colorscheme and gui
if has('gui_running')
set bg=dark
set guifont=JetBrains\ Mono\ 10
set guicursor=a:blinkon0,a:block,i:ver1-Cursor/lCursor,r:hor1-Cursor/lCursor
set guiheadroom=0 guioptions=aei mouse=a
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
" colorschemes
if $TERM =~ '^tmux' || $TERM =~ '^xterm' || $TERM =~ '^st'
set bg=dark tgc
let g:gruvbox_filetype_hi_groups = 1
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
colorscheme gruvbox8
elseif $TERM !~ '^linux'
set bg=light
let g:solarized_use16 = 1
let g:solarized_italics = 1
let g:solarized_extra_hi_groups = 1
let g:solarized_use16 = 1
colorscheme solarized8
endif

+ 4
- 0
zshrc View File

@ -178,6 +178,10 @@ atmux() { tmux attach }
rscreen() { command screen -Dr }
scr() { command screen sudo -Es }
# vim
vi() { $(whence nvim || whence vim || return 1) $@ }
vim() { vi $@ }
# termcompat
s() { $(whence termcompat||return 0) ssh $@ }


Loading…
Cancel
Save