Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
tutor.vim45 linesDownload Raw Back to ftplugin
1" Tutor filetype plugin2" Language:	Tutor (the new tutor plugin)3" Maintainer:	This runtime file is looking for a new maintainer.4" Last Change:	2025 May 105" Contributors:	Phạm Bình An <phambinhanctb2004@gmail.com>6" Original Author: Felipe Morales <hel.sheep@gmail.com>7" Last Change:8" 2025 May 10 set b:undo_ftplugin9" 2025 May 12 update b:undo_ftplugin10 11" Base: {{{112call tutor#SetupVim()13 14" Buffer Settings: {{{115setlocal noreadonly16setlocal noundofile17 18setlocal keywordprg=:help19setlocal iskeyword=@,-,_20 21" The user will have to enable the folds himself, but we provide the foldexpr22" function.23setlocal foldmethod=manual24setlocal foldexpr=tutor#TutorFolds()25setlocal foldlevel=426 27" Load metadata if it exists: {{{128if filereadable(expand('%').'.json')29    call tutor#LoadMetadata()30endif31 32" Mappings: {{{133 34call tutor#SetNormalMappings()35 36" Checks: {{{137 38sign define tutorok text=✓ texthl=tutorOK39sign define tutorbad text=✗ texthl=tutorX40 41let b:undo_ftplugin = "setl foldmethod< foldexpr< foldlevel< undofile< keywordprg< iskeyword< |"42    \ . "call tutor#EnableInteractive(v:false) |"43 44" vim: fdm=marker45 
codekingpro/portable-devtools · Team Ai