help.txt (1689B)
1 2 3 VIM REFERENCE MANUAL by Bram Moolenaar 4 and Somebody Else 5 and Another Person 6 7 8 VIM USER MANUAL by Bram Moolenaar 9 and Somebody Else 10 and Another Person 11 12 13 VIM HELP FILE FORMAT 14 15 16 Issue #17721 (Strange >vim highlighting in help documentation?)~ 17 18 *restore-cursor* *last-position-jump* >vim 19 augroup RestoreCursor 20 autocmd! 21 autocmd BufReadPost * 22 \ let line = line("'\"") 23 \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit' 24 \ && index(['xxd', 'gitrebase'], &filetype) == -1 25 \ && !&diff 26 \ | execute "normal! g`\"" 27 \ | endif 28 augroup END 29 30 31 URLs~ 32 33 *g:zig_recommended_style* 34 By default the following indentation options are set, in accordance with Zig's 35 recommended style (https://ziglang.org/documentation/master/): > 36 37 38 NOTE, WARNING and DEPRECATED~ 39 40 When you 'send a file to Vim', Vim changes to that file's directory. Note, 41 however, that any long directory names will appear in their short (MS-DOS) 42 form on some Windows versions. This is a limitation of the Windows "Send To" 43 mechanism. 44 45 46 EXAMPLE LANGUAGES~ 47 *vim9-mix* 48 There is one way to use both legacy and Vim9 syntax in one script file: >vim9 49 50 " _legacy Vim script_ comments are placed here 51 if !has('vim9script') 52 " _legacy Vim script_ comments and commands are placed here 53 finish 54 endif 55 vim9script 56 # _Vim9 script_ commands/commands from here onwards 57 echowindow $"has('vim9script') == {has('vim9script')}" 58 59 This allows for writing a script that takes advantage of the Vim9 script 60 syntax if possible, but will also work on a Vim version without it. 61 62 vim:tw=78:ts=8:noet:ft=help:norl: