Source

frawor / test / filetype-mappings.in

:let &rtp.=",".escape($TESTDIR, ',\').'/rtp'
:let g:testfile="ftplugin/test.vim"
:source test.vim
:normal a
:W: ft=test
:set ft=test
:normal a
:W: ft=
:set ft=
:normal a
:W+ 2()
:new
:normal a
:W+ 3(test)
:new test
:normal a
:W+ 4()
:new
:normal a
:W: 2 ft=test
:call setbufvar(2, "&ft", "test")
:normal a
:W> 2
:b 2
:normal a