Various updates

This commit is contained in:
Rob Watson 2021-03-15 16:29:40 +01:00
parent c90f517bb5
commit f9220da492
3 changed files with 13 additions and 2 deletions

View File

@ -1,10 +1,13 @@
nmap <leader>gb :GoBuild<cr> nmap <leader>gb :GoBuild<cr>
nmap <leader>gr :GoRun<cr>
nmap <leader>gc :GoCallers<cr> nmap <leader>gc :GoCallers<cr>
nmap <leader>gi :GoImplements<cr> nmap <leader>gi :GoImplements<cr>
nmap <leader>^ :GoAlternate<cr> nmap <leader>^ :GoAlternate<cr>
nmap <leader>gk :GoDocBrowser<cr> nmap <leader>gk :GoDocBrowser<cr>
nmap <leader>gd :GoDecls<cr> nmap <leader>gd :GoDecls<cr>
nmap <leader>gD :GoDeclsDir<cr> nmap <leader>gD :GoDeclsDir<cr>
" mnemonic: match
nmap <leader>gm :GoSameIds<cr>
nmap <leader>gv <esc>:vsplit<bar>:GoAlternate!<cr> nmap <leader>gv <esc>:vsplit<bar>:GoAlternate!<cr>
nmap <leader>gs <esc>:split<bar>:GoAlternate!<cr> nmap <leader>gs <esc>:split<bar>:GoAlternate!<cr>
@ -64,3 +67,7 @@ iabbrev errp <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}
iabbrev errr <esc>ccif err != nil {<cr>return err<cr>} iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
iabbrev []b []byte()<esc>i iabbrev []b []byte()<esc>i
iabbrev logd log.Debug().Msg("
iabbrev logi log.Info().Msg("
iabbrev loge log.Error().Msg("
iabbrev logf log.Fatal().Msg("

5
vimrc
View File

@ -78,7 +78,7 @@ if exists('+termguicolors')
endif endif
" Colour scheme: " Colour scheme:
colorscheme nord colorscheme iceberg
augroup vimrc augroup vimrc
autocmd! autocmd!
@ -151,7 +151,8 @@ inoremap <expr><C-]> pumvisible() ? "\<C-]>" : "\<Enter>"
let g:vim_markdown_conceal = 1 let g:vim_markdown_conceal = 1
" fzf configuration: " fzf configuration:
nmap <leader>t :GFiles<cr> nmap <leader>t :Files<cr>
nmap <leader>T :GFiles<cr>
nmap <leader>b :Buffers<cr> nmap <leader>b :Buffers<cr>
nmap <leader>gg :Rg<cr> nmap <leader>gg :Rg<cr>

3
zshrc
View File

@ -127,12 +127,15 @@ git config --global alias.st status
git config --global alias.br branch git config --global alias.br branch
# Other aliases # Other aliases
alias ll="exa -l --group-directories-first --git"
alias sysc="systemctl" alias sysc="systemctl"
alias hib="sudo systemctl hibernate" alias hib="sudo systemctl hibernate"
alias dc="docker-compose -f docker-compose.yml" alias dc="docker-compose -f docker-compose.yml"
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml" alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
alias clp="tmux kill-pane" alias clp="tmux kill-pane"
alias clw="tmux kill-window" alias clw="tmux kill-window"
alias pk="pkill -fc"
alias pg="pgrep -fa"
alias updatevimplugins="cd $HOME/.vim/pack/git-plugins && find . -mindepth 2 -maxdepth 2 -type d | xargs -I{} bash -c 'cd {} ; printf \"In {}...\"; git pull --rebase' ; cd -" alias updatevimplugins="cd $HOME/.vim/pack/git-plugins && find . -mindepth 2 -maxdepth 2 -type d | xargs -I{} bash -c 'cd {} ; printf \"In {}...\"; git pull --rebase' ; cd -"
# recursive grep with line numbers and colour, ignoring binary files: # recursive grep with line numbers and colour, ignoring binary files: