diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index f4e6110..e8ee646 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -49,3 +49,4 @@ iabbrev errl ccif err != nil {log.Println(err)} iabbrev errp ccif err != nil {fmt.Println(err)} iabbrev errr ccif err != nil {return err} iabbrev defr ccdefer func() {}()ki +iabbrev []b []byte()i diff --git a/vimrc b/vimrc index 954e4df..1bba7ae 100644 --- a/vimrc +++ b/vimrc @@ -27,7 +27,6 @@ set expandtab set splitbelow set splitright set encoding=utf-8 -set nocompatible set t_Co=256 set termguicolors set hidden @@ -41,7 +40,7 @@ set showmatch set wildmenu set wildmode=list:full,full set number -set norelativenumber +set relativenumber set ruler set backspace=indent,eol,start set ignorecase @@ -58,11 +57,11 @@ set ttymouse=sgr set mouse=a set mousemodel=popup_setpos set lazyredraw -set timeoutlen=600 +set timeoutlen=1000 set ballooneval set balloonevalterm set scrolloff=5 -set dict=/usr/share/dict/words +set dictionary=/usr/share/dict/words set shortmess+=I set updatetime=100 set pastetoggle= @@ -183,7 +182,7 @@ let g:echodoc#enable_at_startup = 1 " ALE configuration: function SymbolSearch() call inputsave() - let s:pattern = trim(input("symbol search: ")) + let s:pattern = trim(input('symbol search: ')) call inputrestore() if len(s:pattern) > 0 execute 'ALESymbolSearch' s:pattern @@ -192,8 +191,10 @@ endfunction map ss :call SymbolSearch() nmap [L (ale_first) nmap ]L (ale_previous_wrap_error) -nmap ]l (ale_next_wrap_error) +nmap [e (ale_previous_wrap_error) +nmap ]e (ale_next_wrap_error) +nmap [w (ale_previous_wrap) +nmap ]w (ale_next_wrap) nmap ad :ALEDetail map g :ALEGoToDefinition