update vimrc and zshrc
This commit is contained in:
parent
9ad91efded
commit
a1f6b7d163
|
@ -42,6 +42,8 @@ iabbrev mk make([]MyType, 0)<esc>9h
|
|||
iabbrev wr w http.ResponseWriter, r *http.Request
|
||||
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
|
||||
iabbrev ttt t *testing.T
|
||||
iabbrev errp <esc>ccif err != nil {<cr>panic(err)<cr>}
|
||||
iabbrev errf <esc>ccif err != nil {<cr>log.Fatal(err)<cr>}
|
||||
iabbrev errl <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}
|
||||
iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>}
|
||||
iabbrev errl <esc>ccif err != nil {<cr>log.Println(err)<cr>}
|
||||
iabbrev errp <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}
|
||||
iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
|
||||
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
|
||||
|
|
7
vimrc
7
vimrc
|
@ -21,7 +21,7 @@ command! -nargs=0 -bar Helptags
|
|||
|
||||
set shiftwidth=2
|
||||
set shiftround
|
||||
" set tabstop=8
|
||||
set tabstop=2
|
||||
set expandtab
|
||||
" set smarttab
|
||||
set splitbelow
|
||||
|
@ -172,6 +172,10 @@ nmap [h <Plug>(GitGutterPrevHunk)
|
|||
" Vim-Rust configuration:
|
||||
let g:rustfmt_autosave = 1
|
||||
|
||||
" echodoc configuration:
|
||||
set cmdheight=2
|
||||
let g:echodoc#enable_at_startup = 1
|
||||
|
||||
" ALE configuration:
|
||||
function SymbolSearch()
|
||||
call inputsave()
|
||||
|
@ -245,6 +249,7 @@ runtime macros/matchit.vim
|
|||
packadd! ale
|
||||
|
||||
" load other plugins:
|
||||
packadd! echodoc.vim
|
||||
packadd! lightline.vim
|
||||
packadd! tmux-complete.vim
|
||||
packadd! vim-commentary
|
||||
|
|
3
zshrc
3
zshrc
|
@ -68,7 +68,7 @@ ZSH_THEME="gianu"
|
|||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(git history-substring-search)
|
||||
plugins=(git history-substring-search docker docker-compose golang)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
|
@ -129,6 +129,7 @@ git config --global alias.br branch
|
|||
# Other aliases
|
||||
alias sysc="systemctl"
|
||||
alias hib="sudo systemctl hibernate"
|
||||
alias dc="docker-compose -f docker-compose.yml"
|
||||
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
|
||||
alias tkp="tmux kill-pane"
|
||||
alias tkw="tmux kill-window"
|
||||
|
|
Loading…
Reference in New Issue