neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

wincmd_spec.lua (305B)


      1 local t = require('test.testutil')
      2 local n = require('test.functional.testnvim')()
      3 
      4 local clear = n.clear
      5 local eq = t.eq
      6 local fn = n.fn
      7 local command = n.command
      8 
      9 it(':wincmd accepts a count', function()
     10  clear()
     11  command('vsplit')
     12  eq(1, fn.winnr())
     13  command('wincmd 2 w')
     14  eq(2, fn.winnr())
     15 end)