Last active
March 12, 2018 00:51
-
-
Save tsengeagle/85fdd540d0fddb4b6f5d9e3d9a2092d0 to your computer and use it in GitHub Desktop.
rcfile for linux server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set tabstop=2 | |
:set shiftwidth=2 | |
:set expandtab | |
:set smarttab | |
:retab | |
:set number relativenumber hlsearch incsearch ignorecase smartcase showmode | |
:set noerrorbells novisualbell | |
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
noremap <Left> <NOP> | |
noremap <Right> <NOP> | |
inoremap <Up> <NOP> | |
inoremap <Down> <NOP> | |
inoremap <Left> <NOP> | |
inoremap <Right> <NOP> | |
vnoremap <Up> <NOP> | |
vnoremap <Down> <NOP> | |
vnoremap <Left> <NOP> | |
vnoremap <Right> <NOP> | |
" ragular action | |
vmap <ESC> <ESC><ESC><ESC><ESC> | |
imap jj <ESC> | |
nmap <BS> a<BS> | |
nmap hh ^ | |
nmap ll $ | |
imap zh <ESC>^i | |
imap zl <END> | |
nmap hc ^C | |
nmap zb bcw | |
imap zd <ESC>dd | |
nmap qq ZQ | |
nmap zq :wq<CR> | |
map ,i i?<ESC>r | |
map ,a a?<ESC>r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd StdinReadPre * let s:std_in=1 | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
" change cursor dependent on which mode | |
if exists('$TMUX') | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
else | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
endif | |
:autocmd InsertEnter * set cul | |
:autocmd InsertLeave * set nocul | |
" vim plugin (only linux) | |
:source ~/.gvimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH=~/.oh-my-zsh | |
export USER_NAME="tsengeagle" | |
ZLE_RPROMPT_INDENT=0 | |
ZSH_THEME="clean" | |
plugins=( | |
git | |
zsh-syntax-highlighting | |
) | |
# for zsh-completions | |
fpath=(/usr/local/share/zsh-completions $fpath) | |
source $ZSH/oh-my-zsh.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment