drmikehenry / vim-fontsize

Adjust Gvim font size via keypresses
43 stars 5 forks source link

stay in the font-size mode until asked to leave it #5

Closed cyboflash closed 9 years ago

cyboflash commented 9 years ago

Is it possible to introduce the following enhancement

Instead of using a timeout value, simply stay in the font-size mode until asked to leave it.

example: execute command to get into the font-size mode modify font size to one's liking execute command to exit font-size mode

vim-submode could be useful in creating this mode

drmikehenry commented 9 years ago

I can see why it would be useful to have separate values for the fontsize key timeout and Vim's overall timeout value. I'll give this some investigation.

drmikehenry commented 9 years ago

I've released version 0.4.0 with the ability to configure the time-out settings independently from Vim's 'timeout' and 'timeoutlen', inspired by the implementation of Kana's vim-submode plugin. The following line in your .vimrc will disable the time-out feature:

let g:fontsize#timeout = 0
cyboflash commented 9 years ago

Thanks. It seems to be working. I really appreciate reworking this.

drmikehenry commented 9 years ago

Great - I'm glad it's working for you :-)