Changeset 11654 in project


Ignore:
Timestamp:
08/17/08 02:01:39 (13 years ago)
Author:
Ivan Raikov
Message:

Grammar police.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/vim

    r11651 r11654  
    22
    33==Introduction
    4 Following are some configures used to edit scheme file with VIM.
     4
     5Following are some settings used to edit Scheme file with VIM.
    56
    67==Coloring
    7 VIM's default syntax file for Scheme already have some stuff for Chicken Scheme,
    8 we can enable those by add following line into {{~/.vim/ftplugin/scheme.vim}}.
     8
     9VIM's default syntax file for Scheme already has some Chicken-specific
     10settings, we can enable those by adding the following line into
     11{{~/.vim/ftplugin/scheme.vim}}.
    912
    1013<enscript highlight=vim>
     
    1215</enscript>
    1316
    14 But It still remain some annoying stuffs.
    15 Following code is a patch to {{syntax/scheme.vim}},
    16 you can patch the system file directly,
    17 or you can copy system file to {{~/.vim/syntax}},
    18 and then patch to it.
    19 This patch add S-exp comment and Shebang support.
     17But still some annoyances remain.
     18
     19The following code is a patch to {{syntax/scheme.vim}}, you can patch
     20the system-side file, or you can copy it to {{~/.vim/syntax}}, and
     21then patch it.  This patch adds S-expression comment and Unix
     22hash-bang support.
    2023
    2124<enscript highlight=diff>
     
    2730 
    2831+" Add TempStruc before Struc and Quoted.
    29 +" although TempStruc will be overrighted by them when do hightlighting,
     32+" although TempStruc will be overwritten by them when do hightlighting,
    3033+" it still can be used to delimit a sexp.
    3134+syn region schemeTempStruc start="(" end=")" contained transparent contains=schemeTempStruc
     
    6366
    6467===Completion
    65 VIM's completion manner can be configured by 'complete' option.
    66 Look through it's document and we can find something useful for our Scheme editing.
    6768
    68 First is the '''k''' flag, we can supply a dict file to it. So now using following code to generate a dict file.
     69VIM's completion functionality can be configured by 'complete' option.
     70There are several useful settings for Scheme editing.
     71
     72First is the '''k''' flag, we can supply a dict file to it. The
     73following code can be used to generate a Scheme dict file.
    6974
    7075<enscript highlight=scheme>
     
    8489</enscript>
    8590
    86 Then add following line to {{~/.vim/ftplugin/scheme.vim}},
    87 and we will be able to complete some stuff using CTRL-P and CTRL-N.
     91Then add the following line to {{~/.vim/ftplugin/scheme.vim}}, and we
     92will be able to complete identifier names using CTRL-P and CTRL-N.
    8893
    8994<enscript highlight=vim>
     
    9196</enscript>
    9297
    93 Also when we edit c files, VIM find words in not only opened buffers,
    94 but also included files. Those were controlled by following options.
     98Also when we edit c files, VIM finds words in not only opened buffers,
     99but also included files. These are controlled by the following
     100options.
     101
     102Likewise, VIM can be configured to find words in files which are
     103mentioned in '''use''' or '''require-extension'''.  In the example
     104below, change the path to match your setup. The follwing lines go into
     105{{~/.vim/ftplugin/scheme.vim}}:
    95106
    96107<enscript highlight=vim>
     
    101112</enscript>
    102113
    103 With above lines inserted into {{~/.vim/ftplugin/scheme.vim}},
    104 VIM will also try to find words in files which we used for '''use''' or '''require-extension'''.
    105 You my have to change the path to satisfy you situation.
    106114
    107115===Indention
    108 VIM already indent Scheme file well,
    109 except it can't recognise some chicken keywords,
    110 We just have to add them.
     116
     117VIM already indents Scheme file well, except it can't recognise some
     118Chicken keywords. We just have to add them.
    111119
    112120<enscript highlight=vim>
     
    157165</enscript>
    158166
    159 First we create a window in screen with the name of '''csi''' and start csi in it.
    160 Then open a scheme file, using '''<leader>es''' to evaluate a sexp and
    161 using '''<leader>ef''' to load a file.
     167First we create a window in screen with the name of '''csi''' and
     168start csi in it.  Then open a scheme file, using '''<leader>es''' to
     169evaluate a sexp and using '''<leader>ef''' to load a file.
    162170
Note: See TracChangeset for help on using the changeset viewer.