mirror of
https://github.com/amix/vimrc
synced 2025-07-03 22:25:32 +08:00
No wait for ESC key; remove some unused configs
This commit is contained in:
@ -119,7 +119,9 @@ set mat=2
|
|||||||
set noerrorbells
|
set noerrorbells
|
||||||
set novisualbell
|
set novisualbell
|
||||||
set t_vb=
|
set t_vb=
|
||||||
set tm=500
|
" Unset this timeout
|
||||||
|
set tm=200
|
||||||
|
set ttimeoutlen=0
|
||||||
|
|
||||||
" Properly disable sound on errors on MacVim
|
" Properly disable sound on errors on MacVim
|
||||||
if has("gui_macvim")
|
if has("gui_macvim")
|
||||||
|
@ -19,7 +19,7 @@ Glug blazedeps
|
|||||||
|
|
||||||
" code format for build file
|
" code format for build file
|
||||||
Glug codefmt
|
Glug codefmt
|
||||||
Glug codefmt-google
|
Glug codefmt-google auto_filetypes+=python,cc,proto,
|
||||||
autocmd FileType bzl AutoFormatBuffer buildifier
|
autocmd FileType bzl AutoFormatBuffer buildifier
|
||||||
|
|
||||||
Glug relatedfiles plugin[mappings]=',2'
|
Glug relatedfiles plugin[mappings]=',2'
|
||||||
@ -135,3 +135,12 @@ command! -nargs=+ CommandCabbr call CommandCabbr(<f-args>)
|
|||||||
execute 'CommandCabbr ccab CommandCabbr'
|
execute 'CommandCabbr ccab CommandCabbr'
|
||||||
execute 'CommandCabbr e GoogleE'
|
execute 'CommandCabbr e GoogleE'
|
||||||
|
|
||||||
|
" Play the macro in register q.
|
||||||
|
nnoremap <Leader>. @q
|
||||||
|
|
||||||
|
" FromProto
|
||||||
|
let @f = "ywidata.\<Esc>wwi = proto.\<Esc>pa()\<Esc>jb"
|
||||||
|
" ToProto
|
||||||
|
let @t = "ywiif (proto->\<Esc>wwi() != data.\<Esc>pa) {\<Enter>\<Enter>}\<Esc>kAproto->\<Esc>pbdwaset_\<Esc>pa(data.\<Esc>pa);\<Esc>jxj"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user