Vim updates
This commit is contained in:
parent
5b4e8e01de
commit
6ab779b9bf
|
@ -49,3 +49,4 @@ iabbrev errl <esc>ccif err != nil {<cr>log.Println(err)<cr>}
|
||||||
iabbrev errp <esc>ccif err != nil {<cr>fmt.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 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
|
||||||
|
|
15
vimrc
15
vimrc
|
@ -27,7 +27,6 @@ set expandtab
|
||||||
set splitbelow
|
set splitbelow
|
||||||
set splitright
|
set splitright
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set nocompatible
|
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
set termguicolors
|
set termguicolors
|
||||||
set hidden
|
set hidden
|
||||||
|
@ -41,7 +40,7 @@ set showmatch
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildmode=list:full,full
|
set wildmode=list:full,full
|
||||||
set number
|
set number
|
||||||
set norelativenumber
|
set relativenumber
|
||||||
set ruler
|
set ruler
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set ignorecase
|
set ignorecase
|
||||||
|
@ -58,11 +57,11 @@ set ttymouse=sgr
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set mousemodel=popup_setpos
|
set mousemodel=popup_setpos
|
||||||
set lazyredraw
|
set lazyredraw
|
||||||
set timeoutlen=600
|
set timeoutlen=1000
|
||||||
set ballooneval
|
set ballooneval
|
||||||
set balloonevalterm
|
set balloonevalterm
|
||||||
set scrolloff=5
|
set scrolloff=5
|
||||||
set dict=/usr/share/dict/words
|
set dictionary=/usr/share/dict/words
|
||||||
set shortmess+=I
|
set shortmess+=I
|
||||||
set updatetime=100
|
set updatetime=100
|
||||||
set pastetoggle=<f2>
|
set pastetoggle=<f2>
|
||||||
|
@ -183,7 +182,7 @@ let g:echodoc#enable_at_startup = 1
|
||||||
" ALE configuration:
|
" ALE configuration:
|
||||||
function SymbolSearch()
|
function SymbolSearch()
|
||||||
call inputsave()
|
call inputsave()
|
||||||
let s:pattern = trim(input("symbol search: "))
|
let s:pattern = trim(input('symbol search: '))
|
||||||
call inputrestore()
|
call inputrestore()
|
||||||
if len(s:pattern) > 0
|
if len(s:pattern) > 0
|
||||||
execute 'ALESymbolSearch' s:pattern
|
execute 'ALESymbolSearch' s:pattern
|
||||||
|
@ -192,8 +191,10 @@ endfunction
|
||||||
map <Leader>ss :call SymbolSearch()<CR>
|
map <Leader>ss :call SymbolSearch()<CR>
|
||||||
nmap [L <Plug>(ale_first)
|
nmap [L <Plug>(ale_first)
|
||||||
nmap ]L <Plug(ale_last)
|
nmap ]L <Plug(ale_last)
|
||||||
nmap [l <Plug>(ale_previous_wrap_error)
|
nmap [e <Plug>(ale_previous_wrap_error)
|
||||||
nmap ]l <Plug>(ale_next_wrap_error)
|
nmap ]e <Plug>(ale_next_wrap_error)
|
||||||
|
nmap [w <Plug>(ale_previous_wrap)
|
||||||
|
nmap ]w <Plug>(ale_next_wrap)
|
||||||
|
|
||||||
nmap <leader>ad :ALEDetail<cr>
|
nmap <leader>ad :ALEDetail<cr>
|
||||||
map <Leader>g :ALEGoToDefinition<CR>
|
map <Leader>g :ALEGoToDefinition<CR>
|
||||||
|
|
Loading…
Reference in New Issue