I’m making a simple vim function that counts to n in binary (each number on a new line). I just can’t figure out the correct function to use. I tried :put but that added a new line character every time I used it, which isn’t what I want.
I’m making a simple vim function that counts to n in binary (each number
Share
You can use the
:normalcommand to use any sort of normal mode params. In particular,:normal i0will insert a0, and:normal I0will put a 0 at the beginning of the line.