From 6b01a301dd32d29d7d3d05474759277aa1704a1e Mon Sep 17 00:00:00 2001 From: plrectco Date: Tue, 22 Oct 2019 09:33:42 -0700 Subject: [PATCH] No wait for ESC key; remove some unused configs --- vimrcs/basic.vim | 4 +++- vimrcs/google.vim | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index c168aa43..c47cb371 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -119,7 +119,9 @@ set mat=2 set noerrorbells set novisualbell set t_vb= -set tm=500 +" Unset this timeout +set tm=200 +set ttimeoutlen=0 " Properly disable sound on errors on MacVim if has("gui_macvim") diff --git a/vimrcs/google.vim b/vimrcs/google.vim index a078e10b..7f30804f 100644 --- a/vimrcs/google.vim +++ b/vimrcs/google.vim @@ -19,7 +19,7 @@ Glug blazedeps " code format for build file Glug codefmt -Glug codefmt-google +Glug codefmt-google auto_filetypes+=python,cc,proto, autocmd FileType bzl AutoFormatBuffer buildifier Glug relatedfiles plugin[mappings]=',2' @@ -135,3 +135,12 @@ command! -nargs=+ CommandCabbr call CommandCabbr() execute 'CommandCabbr ccab CommandCabbr' execute 'CommandCabbr e GoogleE' +" Play the macro in register q. +nnoremap . @q + +" FromProto +let @f = "ywidata.\wwi = proto.\pa()\jb" +" ToProto +let @t = "ywiif (proto->\wwi() != data.\pa) {\\}\kAproto->\pbdwaset_\pa(data.\pa);\jxj" + +