aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2023-03-25 15:01:36 -0600
committerAlexis Hovorka <[email protected]>2023-03-25 15:01:36 -0600
commit6d21e6a94fbcc061966a5b3850477202e868a912 (patch)
treec1ccc8873a73eb0a6eeabf187d86a70ecfbb7266
parent031c8adfcd16a714f57e12f550c772631cad6bf6 (diff)
[fix] Make Shift+O faster in vim
-rw-r--r--base/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/vimrc b/base/vimrc
index 0db1a1e..1f74846 100644
--- a/base/vimrc
+++ b/base/vimrc
@@ -241,6 +241,11 @@ nnoremap <leader>N :call NumberToggle()<cr>
"au InsertEnter * :set norelativenumber
"au InsertLeave * :set relativenumber
+" Make <shift>O a little faster when coming straight out of insert mode
+set timeout ttimeout " separate mapping and keycode timeouts
+set timeoutlen=500 " mapping timeout 500ms
+set ttimeoutlen=50 " keycode timeout 50ms
+
" Open to last position ====----
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif