Source

frawor / test / rtp / ftplugin / test.vim

Full commit
1
2
3
4
5
execute frawor#Setup('0.0', {'@/mappings': '0.0',
            \                '@/commands': '0.0',}, 1)
call s:_f.mapgroup.add('FtGroup', {'test': {'expr': 1, 'lhs': 'a', 'rhs': 'WriteFile("a")'}})
call s:_f.command.add('FtWrite', 'execute "W In buffer ".bufnr("%").":".&ft', {})
autocmd BufNewFile test setlocal ft=test