From 9d348508960371cf0330d75d8b1d050ab92cdc96 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 22 Oct 2019 14:59:47 +0200 Subject: [PATCH] Removed initial file --- vimrc | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 vimrc diff --git a/vimrc b/vimrc deleted file mode 100644 index df3923b..0000000 --- a/vimrc +++ /dev/null @@ -1,19 +0,0 @@ -" COMBO Counter -let g:combo_counter = 0 " The actual combo variable -let g:best_combo = readfile('/home/$USER/.vim/.combo') " ~ is not expanded ??? -let g:best_combo = g:best_combo[0] " Reading from file returns a list, but an int is needed -let g:last_combo = reltime() " Set current time as last combo time -let g:airline_section_b = 'ᛥ %{g:combo_counter} [%{g:best_combo}]' " I use airline vim and inserted the combo meter in it -function! UpdateCombo() - if reltimefloat(reltime(g:last_combo)) > 1 " Timeout is 1 second - if g:combo_counter > g:best_combo " Before resetting combo counter, check if new high score - call writefile([g:combo_counter], "/home/$USER/.vim/.combo") - let g:best_combo = g:combo_counter - endif - let g:combo_counter = 1 - else - let g:combo_counter +=1 - endif - let g:last_combo = reltime() -endfunction -autocmd CursorMovedI * call UpdateCombo() " Every time the cursor moves, call combo function