Before (Check :Startify): Startify Execute (Check options): AssertEqual 'startify', &filetype AssertEqual 'wipe', &bufhidden AssertEqual 'nofile', &buftype AssertEqual 0, &buflisted AssertEqual 0, &cursorcolumn AssertEqual 0, &cursorline AssertEqual 0, &list AssertEqual 0, &number AssertEqual 0, &swapfile Do (open new buffer in insert mode with 'i'): ifoo Expect (only "foo"): foo Do (open new buffer in normal mode with 'e'): eibar Expect (only "bar"): bar