Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 96: Line 96:
 
let s:insert_char_pre = ''
 
let s:insert_char_pre = ''
 
let s:insert_leave = ''
 
let s:insert_leave = ''
let s:char_count = 0
 
 
endfunction
 
endfunction
   
Line 110: Line 109:
 
if s:char_count == a:count
 
if s:char_count == a:count
 
call feedkeys("\<Esc>")
 
call feedkeys("\<Esc>")
 
let s:char_count = 0
 
endif
 
endif
 
endfunction
 
endfunction
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)