bashrc, zshrc: vim aliases; vimplugrc: get rid of gvim, I do not use it anyway
This commit is contained in:
parent
6006e52950
commit
e788939620
3 changed files with 15 additions and 11 deletions
4
bashrc
4
bashrc
|
@ -59,6 +59,10 @@ atmux() { tmux attach; }
|
||||||
rscreen() { command screen -Dr; }
|
rscreen() { command screen -Dr; }
|
||||||
scr() { command screen sudo -Es; }
|
scr() { command screen sudo -Es; }
|
||||||
|
|
||||||
|
# vim
|
||||||
|
vi() { $(whence nvim || whence vim || return 1) "$@"; }
|
||||||
|
vim() { vi "$@"; }
|
||||||
|
|
||||||
# termcompat
|
# termcompat
|
||||||
s() { "$(command -v termcompat||return 0)" ssh "$@"; }
|
s() { "$(command -v termcompat||return 0)" ssh "$@"; }
|
||||||
|
|
||||||
|
|
18
vimplugrc
18
vimplugrc
|
@ -42,22 +42,18 @@ nmap <Leader>ft :Filetypes<CR>
|
||||||
" vimwiki
|
" vimwiki
|
||||||
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
|
|
||||||
" colorscheme and gui
|
" colorschemes
|
||||||
if has('gui_running')
|
if $TERM =~ '^tmux' || $TERM =~ '^xterm' || $TERM =~ '^st'
|
||||||
set bg=dark
|
set bg=dark tgc
|
||||||
set guifont=JetBrains\ Mono\ 10
|
let g:gruvbox_filetype_hi_groups = 1
|
||||||
set guicursor=a:blinkon0,a:block,i:ver1-Cursor/lCursor,r:hor1-Cursor/lCursor
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
set guiheadroom=0 guioptions=aei mouse=a
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
|
|
||||||
map <S-Insert> <MiddleMouse>
|
|
||||||
map! <S-Insert> <MiddleMouse>
|
|
||||||
|
|
||||||
colorscheme gruvbox8
|
colorscheme gruvbox8
|
||||||
elseif $TERM !~ '^linux'
|
elseif $TERM !~ '^linux'
|
||||||
set bg=light
|
set bg=light
|
||||||
let g:solarized_use16 = 1
|
|
||||||
let g:solarized_italics = 1
|
|
||||||
let g:solarized_extra_hi_groups = 1
|
let g:solarized_extra_hi_groups = 1
|
||||||
|
let g:solarized_use16 = 1
|
||||||
|
|
||||||
colorscheme solarized8
|
colorscheme solarized8
|
||||||
endif
|
endif
|
||||||
|
|
4
zshrc
4
zshrc
|
@ -178,6 +178,10 @@ atmux() { tmux attach }
|
||||||
rscreen() { command screen -Dr }
|
rscreen() { command screen -Dr }
|
||||||
scr() { command screen sudo -Es }
|
scr() { command screen sudo -Es }
|
||||||
|
|
||||||
|
# vim
|
||||||
|
vi() { $(whence nvim || whence vim || return 1) $@ }
|
||||||
|
vim() { vi $@ }
|
||||||
|
|
||||||
# termcompat
|
# termcompat
|
||||||
s() { $(whence termcompat||return 0) ssh $@ }
|
s() { $(whence termcompat||return 0) ssh $@ }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue