runtime(vimtutor): Add a second chapter

fixes: #5719
closes: #5729

Signed-off-by: Paul Desmond Parker <pauldesmondparker@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Paul Desmond Parker
2024-11-03 20:47:53 +01:00
committed by Christian Brabandt
parent a54816b884
commit 17c71daf83
10 changed files with 687 additions and 59 deletions

View File

@ -180,8 +180,13 @@ if &enc == 'utf-8' && s:ext !~ '\.utf-8'
let s:ext .= '.utf-8'
endif
" 2. Build the name of the file:
let s:tutorfile = "/tutor/tutor"
" 2. Build the name of the file and chapter
let s:chapter = exists("$CHAPTER") ? $CHAPTER : ''
if s:chapter == "1"
let s:chapter = ''
endif
let s:tutorfile = "/tutor/tutor" . s:chapter
let s:tutorxx = $VIMRUNTIME . s:tutorfile . s:ext
" 3. Finding the file: