mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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:
committed by
Christian Brabandt
parent
a54816b884
commit
17c71daf83
@ -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:
|
||||
|
Reference in New Issue
Block a user