wincmd_spec.lua 305 B

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