6

How can you put vim in an insert mode where the entire screen is effectively whitespace i.e. you can type anywhere?

I know it's possible, I just cannot remember the command, unfortunately!

This allows you to draw diagrams and whatnot easily, I hope this rings a bell?


Update: Thanks to @phd I made:

                                                    ┏━━━[ Tasker Radars ]━━━┓
                                                    ┃  has 1 mile radius  ┃
                  ,,ggddY''''Ybbgg,,                ┃  has 5 mile radius  ┃
             ,agd'''              `''bg,            ┃  has 20 mile radius ┃
          ,gdP'                       'Ybg,         ┗━━━━━━━━━━━━━━━━━━━━━━━┛
        ,dP'                             'Yb,
      ,dP'         _,,ddP'''Ybb,,_         'Yb,<━━━━━━ 20 miles
     ,8'         ,dP''         `'Yb,         '8,
    ,8'        ,d'                 'b,<━━━━━━━━━━━━━━━ 5 miles
   ,8'        d'                     'b        `8,
   d'        d'        ,gPPRg,<━━━━━━━━━━━━━━━━━━━━━━━ 1 mile
   8         8        dP'   `Yb        8         8
   8         8        8)     (8      8       8    
   8         8        Yb   dP        8         8
   8         Y,        '8ggg8'        ,P         8
   Y,         Ya                     aP         ,P
   `8,         'Ya               aP'         ,8'
    `8,          'Yb,_         _,dP'          ,8'
     `8a           `''YbbgggddP'''           a8'
      `Yba                                 adP'
        'Yba                           adY'
          `'Yba,                     ,adP''
             `'Y8ba,             ,ad8P''
                  ``''YYbaaadPP''''
Stefan Collier
  • 4,314
  • 2
  • 23
  • 33

1 Answers1

9

Set virtualedit option:

set virtualedit=insert

http://vimdoc.sourceforge.net/htmldoc/options.html#%27virtualedit%27

phd
  • 82,685
  • 13
  • 120
  • 165
  • Thank you! You've just made my ascii diagrams so much easier! – Stefan Collier Jul 31 '18 at 23:59
  • Thanks! I came here hoping to just add things in a column in visual block mode when the block has different end points. This answer was more than enough to help me find what I needed (it's "block" instead of "insert" and really feels like it should be the default sometimes... there are more options, too! and it will be henceforth on my vim :D click on the helpfully provided link to learn what they all do.) – James Andariese Feb 21 '22 at 03:34