René Nyffenegger
  • Member for 6 years, 11 months
  • Last seen this week
Is it possible to create mappings with parameters?
7 votes

Thanks to Peter Rincker's comment, I have found the answer: :nnoremap <buffer> <leader> xyz :call SomeFunc(input('Param: '))<CR>

View answer
Is there a vimscript function to wrap text
Accepted answer
1 votes

This function does what I need fu! TextWrap(text, width, indent) let l:line = '' let l:ret = '' for word in split(a:text) if len(l:line) + len(word) + 1 > a:width if len(l:...

View answer