gyim / vim-boxdraw

An ASCII box drawing plugin for Vim
MIT License
194 stars 18 forks source link

Has to have whitespace in order to start? #13

Closed mitchweaver closed 3 years ago

mitchweaver commented 3 years ago

Sorry if this is a misunderstanding, but do you have whitespace dumped in a file in order to start drawing with boxdraw? If I go into visual mode, I can only "select" areas where there is text within the file.

Ideally I'd like to open a new, blank file and start drawing diagrams immediately. Maybe a vim macro to help? dump say 20 lines of 72char columns of whitespace?

gyim commented 3 years ago

If you set virtualedit+=all, you only need a few blank lines. So I typically do 20o<Esc> and ]ov and I'm ready to start (the ]ov mapping is provided by Tim Pope's vim-unimpaired plugin).