Monday, July 4, 2022

How to map f+ combination to def function ?

Hi,

I just want to map  f+ or f- to increase or decrease guifont size,
what's the best way to do this ? 

def AugmentGuifontSize(): void
    var size = &guifont->split(':')[1]->strpart(1,3)
    echomsg size
enddef
impossible ??  nnoremap f+   :call AugmentGuifontSize()<CR>  

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/463fcdff-af8a-408e-8d8d-2cec2185628an%40googlegroups.com.

No comments: