From 94c7988c84066922586c295efe59ee112bd2c67d Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Wed, 17 Mar 2021 07:34:50 +0100 Subject: [PATCH] Update Vim and zshrc --- vim/after/ftplugin/go.vim | 5 +++-- vimrc | 21 +++++++++++++++------ zshrc | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index d7efbd4..e56b3e9 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -1,4 +1,4 @@ -nmap gb :GoBuild +nmap gb :up:GoBuild nmap gr :GoRun nmap gc :GoCallers nmap gi :GoImplements @@ -15,7 +15,8 @@ nmap gt :up:GoTest nmap gf :up:GoTestFunc nmap gat :GoAddTags nmap grt :GoRemoveTags -nmap ge :GoIfErr +nmap gec :up:GoErrCheck +nmap gie :GoIfErr nnoremap dr :GoDebugBreakpoint nnoremap d! :GoDebugStart diff --git a/vimrc b/vimrc index 30f07df..5f6bfca 100644 --- a/vimrc +++ b/vimrc @@ -23,7 +23,7 @@ set shiftwidth=2 set shiftround set tabstop=2 set expandtab -" set smarttab +set smarttab set splitbelow set splitright set encoding=utf-8 @@ -58,10 +58,10 @@ set lazyredraw set timeoutlen=1000 set ballooneval set balloonevalterm -set scrolloff=5 +set scrolloff=15 set dictionary=/usr/share/dict/words set shortmess+=I -set updatetime=100 +set updatetime=250 set pastetoggle= " See :help thesaurus set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt @@ -78,7 +78,10 @@ if exists('+termguicolors') endif " Colour scheme: -colorscheme iceberg +packadd! gruvbox +let g:gruvbox_contrast_dark='soft' +let g:gruvbox_contrast_light='soft' +colorscheme gruvbox augroup vimrc autocmd! @@ -89,6 +92,8 @@ augroup vimrc " set cursor line highlight in insert mode. autocmd InsertEnter * set cul autocmd InsertLeavePre * set nocul + " use tabs in .gitconfig + autocmd FileType gitconfig setlocal shiftwidth=2 tabstop=2 noexpandtab augroup end " But, don't remember the current directory for a given file: @@ -106,6 +111,8 @@ imap imap imap imap +nmap ]q :cn +nmap [q :cp nnoremap ,/ :nohlsearch map :tabnew @@ -172,8 +179,11 @@ xmap ah (GitGutterTextObjectOuterVisual) let g:rustfmt_autosave = 1 " echodoc configuration: -set cmdheight=2 +set cmdheight=1 +set noshowmode +let g:echodoc#type='echo' let g:echodoc#enable_at_startup = 1 +packadd! echodoc.vim " ALE configuration: function SymbolSearch() @@ -259,7 +269,6 @@ runtime macros/matchit.vim packadd! ale " load other plugins: -packadd! echodoc.vim packadd! lightline.vim packadd! tmux-complete.vim packadd! vim-commentary diff --git a/zshrc b/zshrc index e0b98e4..56497d5 100644 --- a/zshrc +++ b/zshrc @@ -161,7 +161,7 @@ setxkbmap -option caps:none # Set zshfunctions dir as per https://github.com/alacritty/alacritty/blob/master/INSTALL.md#debianubuntu fpath+=${ZDOTDIR:-~}/.zsh_functions -export BAT_THEME=Nord +export BAT_THEME=gruvbox-dark # Vim keymap bindkey -v