Mercurial > vim
comparison runtime/doc/syntax.txt @ 2965:f2de38a019a2
Updated runtime files.
Add missing test82 files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 18 Jul 2011 19:40:27 +0200 |
parents | 3c7da93eb7f9 |
children | 887d6d91882e |
comparison
equal
deleted
inserted
replaced
2964:39cb812cf477 | 2965:f2de38a019a2 |
---|---|
1 *syntax.txt* For Vim version 7.3. Last change: 2011 May 06 | 1 *syntax.txt* For Vim version 7.3. Last change: 2011 Jul 18 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
864 used. | 864 used. |
865 | 865 |
866 Detecting whether a file is csh or tcsh is notoriously hard. Some systems | 866 Detecting whether a file is csh or tcsh is notoriously hard. Some systems |
867 symlink /bin/csh to /bin/tcsh, making it almost impossible to distinguish | 867 symlink /bin/csh to /bin/tcsh, making it almost impossible to distinguish |
868 between csh and tcsh. In case VIM guesses wrong you can set the | 868 between csh and tcsh. In case VIM guesses wrong you can set the |
869 "filetype_csh" variable. For using csh: > | 869 "filetype_csh" variable. For using csh: *g:filetype_csh* |
870 | 870 > |
871 :let filetype_csh = "csh" | 871 :let g:filetype_csh = "csh" |
872 | 872 |
873 For using tcsh: > | 873 For using tcsh: > |
874 | 874 |
875 :let filetype_csh = "tcsh" | 875 :let g:filetype_csh = "tcsh" |
876 | 876 |
877 Any script with a tcsh extension or a standard tcsh filename (.tcshrc, | 877 Any script with a tcsh extension or a standard tcsh filename (.tcshrc, |
878 tcsh.tcshrc, tcsh.login) will have filetype tcsh. All other tcsh/csh scripts | 878 tcsh.tcshrc, tcsh.login) will have filetype tcsh. All other tcsh/csh scripts |
879 will be classified as tcsh, UNLESS the "filetype_csh" variable exists. If the | 879 will be classified as tcsh, UNLESS the "filetype_csh" variable exists. If the |
880 "filetype_csh" variable exists, the filetype will be set to the value of the | 880 "filetype_csh" variable exists, the filetype will be set to the value of the |
2369 to a larger number: > | 2369 to a larger number: > |
2370 :let rexx_minlines = 50 | 2370 :let rexx_minlines = 50 |
2371 This will make the syntax synchronization start 50 lines before the first | 2371 This will make the syntax synchronization start 50 lines before the first |
2372 displayed line. The default value is 10. The disadvantage of using a larger | 2372 displayed line. The default value is 10. The disadvantage of using a larger |
2373 number is that redrawing can become slow. | 2373 number is that redrawing can become slow. |
2374 | |
2375 Vim tries to guess what type a ".r" file is. If it can't be detected (from | |
2376 comment lines), the default is "r". To make the default rexx add this line to | |
2377 your .vimrc: *g:filetype_r* | |
2378 > | |
2379 :let g:filetype_r = "r" | |
2374 | 2380 |
2375 | 2381 |
2376 RUBY *ruby.vim* *ft-ruby-syntax* | 2382 RUBY *ruby.vim* *ft-ruby-syntax* |
2377 | 2383 |
2378 There are a number of options to the Ruby syntax highlighting. | 2384 There are a number of options to the Ruby syntax highlighting. |