]> granicus.if.org Git - vim/commitdiff
updated for version 7.0098
authorBram Moolenaar <Bram@vim.org>
Thu, 30 Jun 2005 22:04:15 +0000 (22:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 30 Jun 2005 22:04:15 +0000 (22:04 +0000)
19 files changed:
runtime/doc/options.txt
runtime/doc/spell.txt
runtime/doc/starting.txt
runtime/doc/tags
runtime/filetype.vim
runtime/indent/tcsh.vim
src/ex_cmds2.c
src/glbl_ime.h
src/globals.h
src/if_cscope.h
src/misc2.c
src/nbdebug.h
src/option.c
src/option.h
src/os_msdos.h
src/screen.c
src/structs.h
src/version.c
src/version.h

index 3d47c6b830aed6e99946fb1f12def72c806dcc5a..678d63e6ff9586e4b73b82209a12d09539fa915d 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 7.0aa.  Last change: 2005 Jun 28
+*options.txt*  For Vim version 7.0aa.  Last change: 2005 Jun 30
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1443,7 +1443,8 @@ A jump table for the options with a short description can be found at |Q_op|.
        |fold-marker|.
 
                        *'compatible'* *'cp'* *'nocompatible'* *'nocp'*
-'compatible' 'cp'      boolean (default on, off when a .vimrc file is found)
+'compatible' 'cp'      boolean (default on, off when a .vimrc or .gvimrc file
+                                                               is found)
                        global
                        {not in Vi}
        This option has the effect of making Vim either more Vi-compatible, or
@@ -1458,12 +1459,13 @@ A jump table for the options with a short description can be found at |Q_op|.
        options.  This default was chosen for those people who want to use Vim
        just like Vi, and don't even (want to) know about the 'compatible'
        option.
-       When a ".vimrc" file is found while Vim is starting up, this option is
-       switched off, and all options that have not been modified will be set
-       to the Vim defaults.  Effectively, this means that when a ".vimrc"
-       file exists, Vim will use the Vim defaults, otherwise it will use the
-       Vi defaults.  (Note: This doesn't happen for the system-wide vimrc
-       file).  Also see |compatible-default| and |posix-compliance|.
+       When a ".vimrc" or ".gvimrc" file is found while Vim is starting up,
+       this option is switched off, and all options that have not been
+       modified will be set to the Vim defaults.  Effectively, this means
+       that when a ".vimrc" or ".gvimrc" file exists, Vim will use the Vim
+       defaults, otherwise it will use the Vi defaults.  (Note: This doesn't
+       happen for the system-wide vimrc or gvimrc file).  Also see
+       |compatible-default| and |posix-compliance|.
        You can also set this option with the "-C" argument, and reset it with
        "-N".  See |-C| and |-N|.
        Switching this option off makes the Vim defaults be used for options
index 606a030dc86c3fd3512907386a6f52353c8303e9..1a9e64f290f13dd6fc35e446605741cd9e0902e6 100644 (file)
@@ -1,4 +1,4 @@
-*spell.txt*    For Vim version 7.0aa.  Last change: 2005 Jun 29
+*spell.txt*    For Vim version 7.0aa.  Last change: 2005 Jun 30
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -7,8 +7,9 @@
 Spell checking                                         *spell*
 
 1. Quick start                 |spell-quickstart|
-2. Generating a spell file     |spell-mkspell|
-3. Spell file format           |spell-file-format|
+2. Remarks on spell checking   |spell-remarks|
+3. Generating a spell file     |spell-mkspell|
+4. Spell file format           |spell-file-format|
 
 {Vi does not have any of these commands}
 
@@ -36,8 +37,6 @@ To search for the next misspelled word:
                                                        *]s* *E756*
 ]s                     Move to next misspelled word after the cursor.
                        A count before the command can be used to repeat.
-                       This uses the @Spell and @NoSpell clusters from syntax
-                       highlighting, see |spell-syntax|.
 
                                                        *[s*
 [s                     Like "]s" but search backwards, find the misspelled
@@ -72,9 +71,9 @@ zw                    Add word under the cursor as a wrong (bad) word to
 :spellw[rong] {word}   Add [word} as a wrong (bad) word to 'spellfile'.
 
 After adding a word to 'spellfile' with the above commands its associated
-".spl" file will automatically be updated.  If you edit 'spellfile' manually
-you need to use the |:mkspell| command.  This sequence of commands mostly
-works well: >
+".spl" file will automatically be updated and reloaded.  If you change
+'spellfile' manually you need to use the |:mkspell| command.  This sequence of
+commands mostly works well: >
        :exe 'e ' . &spellfile
 <      (make changes to the spell file) >
        :mkspell! %
@@ -83,12 +82,11 @@ More details about the 'spellfile' format below |spell-wordlist-format|.
 
 
 Finding suggestions for bad words:
-
                                                        *z?*
 z?                     For the word under/after the cursor suggest correctly
-                       spelled words.  This also works to find alternative
-                       for words that are not highlighted as bad words, e.g.,
-                       when the word after it is bad.
+                       spelled words.  This also works to find alternatives
+                       for a word that is not highlighted as a bad word,
+                       e.g., when the word after it is bad.
                        The results are sorted on similarity to the word
                        under/after the cursor.
                        This may take a long time.  Hit CTRL-C when you are
@@ -99,7 +97,7 @@ z?                    For the word under/after the cursor suggest correctly
                        <Enter> if you don't want to replace.  You can also
                        use the mouse to click on your choice (only works if
                        the mouse can be used in Normal mode and when there
-                       are no line wraps!).  Click on the first (header) line
+                       are no line wraps).  Click on the first (header) line
                        to cancel.
                        If 'verbose' is non-zero a score will be displayed to
                        indicate the likeliness to the badly spelled word (the
@@ -115,17 +113,18 @@ z?                        For the word under/after the cursor suggest correctly
 The 'spellsuggest' option influences how the list of suggestions is generated
 and sorted.  See |'spellsuggest'|.
 
+==============================================================================
+2. Remarks on spell checking                           *spell-remarks*
 
 PERFORMANCE
 
-Note that Vim does on-the-fly spell checking.  To make this work fast the word
-list is loaded in memory.  Thus this uses a lot of memory (1 Mbyte or more).
-There might also be a noticeable delay when the word list is loaded, which
-happens when 'spell' is set and when 'spelllang' is set while 'spell' was
-already set.  To minimize the delay each word list is only loaded once, it
-is not deleted when 'spelllang' is made empty or 'spell' is reset.  When
-'encoding' is set all the word lists are reloaded, thus you may notice a delay
-then too.
+Vim does on-the-fly spell checking.  To make this work fast the word list is
+loaded in memory.  Thus this uses a lot of memory (1 Mbyte or more).  There
+might also be a noticeable delay when the word list is loaded, which happens
+when 'spell' is set and when 'spelllang' is set while 'spell' was already set.
+To minimize the delay each word list is only loaded once, it is not deleted
+when 'spelllang' is made empty or 'spell' is reset.  When 'encoding' is set
+all the word lists are reloaded, thus you may notice a delay then too.
 
 
 REGIONS
@@ -272,9 +271,10 @@ find these functions useful:
 
     spellbadword()     find badly spelled word at the cursor
     spellsuggest()     get list of spelling suggestions
+    soundfold()                get the sound-a-like version of a word
 
 ==============================================================================
-2. Generating a spell file                             *spell-mkspell*
+3. Generating a spell file                             *spell-mkspell*
 
 Vim uses a binary file format for spelling.  This greatly speeds up loading
 the word list and keeps it small.
@@ -284,7 +284,7 @@ uses.  Myspell is used by OpenOffice.org and Mozilla.  You should be able to
 find them here:
        http://lingucomponent.openoffice.org/spell_dic.html
 You can also use a plain word list.  The results are the same, the choice
-depends on what you find.
+depends on what word lists you can find.
 
 Make sure your current locale is set properly, otherwise Vim doesn't know what
 characters are upper/lower case letters.  If the locale isn't available (e.g.,
@@ -296,7 +296,7 @@ then Vim will try to guess.
                                                        *:mksp* *:mkspell*
 :mksp[ell][!] [-ascii] {outname} {inname} ...
                        Generate a Vim spell file word lists.  Example: >
-               :mkspell nl nl_NL.words
+               :mkspell /tmp/nl nl_NL.words
 <                                                              *E751*
                        When {outname} ends in ".spl" it is used as the output
                        file name.  Otherwise it should be a language name,
@@ -304,7 +304,7 @@ then Vim will try to guess.
                        written will be "{outname}.{encoding}.spl", where
                        {encoding} is the value of the 'encoding' option.
 
-                       When the output file already exists [!] must be added
+                       When the output file already exists [!] must be used
                        to overwrite it.
 
                        When the [-ascii] argument is present, words with
@@ -330,18 +330,18 @@ then Vim will try to guess.
                        the optimal word tree (Polish requires a few hundred
                        Mbyte).  The final result will be much smaller.
 
-                       When the spell file was written all currently used
-                       spell files will be reloaded.
+                       After the spell file was written and it was being used
+                       in a buffer it will be reloaded automatically.
 
 :mksp[ell] [-ascii] {name}.{enc}.add
                        Like ":mkspell" above, using {name}.{enc}.add as the
-                       input file and producing an output file that has
-                       ".spl" appended.
+                       input file and producing an output file in the same
+                       directory that has ".spl" appended.
 
 :mksp[ell] [-ascii] {name}
                        Like ":mkspell" above, using {name} as the input file
-                       and producing an output file that has ".{enc}.spl"
-                       appended.
+                       and producing an output file in the same directory
+                       that has ".{enc}.spl" appended.
 
 Since you might want to change a Myspell word list for use with Vim the
 following procedure is recommended:
@@ -351,9 +351,11 @@ following procedure is recommended:
 3. Change the xx_YY.aff and xx_YY.dic files to remove bad words, add missing
    words, define word characters with FOL/LOW/UPP, etc.  The distributed
    "src/spell/*.diff" files can be used.
-4. Set 'encoding' to the desired encoding and use |:mkspell| to generate the
-   Vim spell file.
-5. Try out the spell file with ":set spell spelllang=xx_YY".
+4. Start Vim with the right locale and use |:mkspell| to generate the Vim
+   spell file.
+5. Try out the spell file with ":set spell spelllang=xx" if you wrote it in
+   a spell directory in 'runtimepath, or ":set spelllang=xx.enc.spl" if you
+   wrote it somewhere else.
 
 When the Myspell files are updated you can merge the differences:
 1. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic.
@@ -372,8 +374,8 @@ used spelling files, use this command:
                                                        *:spelldump* *:spelld*
 :spelld[ump]           Open a new window and fill it with all currently valid
                        words.
-                       Note: For some languages the result may be huge and
-                       Vim may run out of memory.
+                       Note: For some languages the result may be enormous,
+                       causing Vim to run out of memory.
 
 The format of the word list is used |spell-wordlist-format|.  You should be
 able to read it with ":mkspell" to generate one .spl file that includes all
@@ -382,46 +384,59 @@ the words.
 Only words for the current region are included.  No "/regions" line is
 generated.
 
-Comment lines are used to indicate which .spl file the words came from.
+Comment lines with the name of the .spl file are used as a header above the
+words that were generated from that .spl file.
 
 ==============================================================================
-3. Spell file format                                   *spell-file-format*
+4. Spell file format                                   *spell-file-format*
 
 This is the format of the files that are used by the person who creates and
 maintains a word list.
 
 Note that we avoid the word "dictionary" here.  That is because the goal of
 spell checking differs from writing a dictionary (as in the book).  For
-spelling we need a list of words that are OK, thus need not to be highlighted.
-Names will not appear in a dictionary, but do appear in a word list.  And
-some old words are rarely used and are common misspellings.  These do appear
-in a dictionary but not in a word list.
+spelling we need a list of words that are OK, thus should not to be
+highlighted.  Person and company names will not appear in a dictionary, but do
+appear in a word list.  And some old words are rarely used while they are
+common misspellings.  These do appear in a dictionary but not in a word list.
 
-There are two formats: one with affix compression and one without.  The files
-with affix compression are used by Myspell (Mozilla and OpenOffice.org).  This
-requires two files, one with .aff and one with .dic extension.  The second
-format is a list of words.
+There are two formats: A straigth list of words and a list using affix
+compression.  The files with affix compression are used by Myspell (Mozilla
+and OpenOffice.org).  This requires two files, one with .aff and one with .dic
+extension.
 
 
-FORMAT OF WORD LIST                            *spell-wordlist-format*
+FORMAT OF STRAIGHT WORD LIST                           *spell-wordlist-format*
 
 The words must appear one per line.  That is all that is required.
+
 Additionally the following items are recognized:
+
 - Empty and blank lines are ignored.
+
 - Lines starting with a # are ignored (comment lines).
+
 - A line starting with "/encoding=", before any word, specifies the encoding
   of the file.  After the second '=' comes an encoding name.  This tells Vim
-  to setup conversion from the specified encoding to 'encoding'.
+  to setup conversion from the specified encoding to 'encoding'.  Thus you can
+  use one word list for several target encodings.
+
 - A line starting with "/regions=" specifies the region names that are
   supported.  Each region name must be two ASCII letters.  The first one is
   region 1.  Thus "/regions=usca" has region 1 "us" and region 2 "ca".
-  In an addition word list the list should be equal to the main word list!
+  In an addition word list the region names should be equal to the main word
+  list!
+
 - A line starting with "/?" specifies a word that should be marked as rare.
+
 - A line starting with "/!" specifies a word that should be marked as bad.
+
 - A line starting with "/=" specifies a word where case must match exactly.
   A "?" or "!" may be following: "/=?" and "/=!".
+
 - Digits after "/" indicate the regions in which the word is valid.  If no
   regions are specified the word is valid in all regions.
+
 - Other lines starting with '/' are reserved for future use.  The ones that
   are not recognized are ignored (but you do get a warning message).
 
@@ -492,7 +507,7 @@ is required at this position.  The same word with a lower-case letter at this
 position will not match. When some of the other letters are upper-case it will
 not match either.
 
-The same word with all upper-case characters will always be OK.
+The word with all upper-case characters will always be OK.
 
        word list       matches                 does not match ~
        als             als Als ALS             ALs AlS aLs aLS
@@ -509,7 +524,9 @@ when it appears with a non-word character before and after it.  For Myspell a
 word starting with a non-word character probably won't work.
 
 After the word there is an optional slash and flags.  Most of these flags are
-letters that indicate the affixes that can be used with this word.
+letters that indicate the affixes that can be used with this word.  These are
+specified with SFX and PFX lines in the .aff file.  See the Myspell
+documentation.
 
                                                        *spell-affix-vim*
 A flag that Vim adds and is not in Myspell is the flag defined with KEP in the
@@ -527,7 +544,8 @@ the affix file.  The affix file must always be in the same encoding as the
 word list.  This is compatible with Myspell.  For Vim the encoding may also be
 something else, any encoding that "iconv" supports.  The "SET" line must
 specify the name of the encoding.  When using a multi-byte encoding it's
-possible to use more different affixes.
+possible to use more different affixes (but Myspell doesn't support that, thus
+you may not want to use it anyway).
 
 
 CHARACTER TABLES
@@ -677,11 +695,14 @@ used to make spelling suggestions.  The items define the "from" text and the
        REP ch k ~
 
 The first line specifies the number of REP lines following.  Vim ignores it.
+Don't include simple one-character replacements or swaps.  Vim will try these
+anyway.  You can include whole words if you want to, but you might want to use
+the "file:" item in 'spellsuggest' instead.
 
 
 SIMILAR CHARACTERS                                     *spell-affix-MAP*
 
-In the affix file MAP items can be used to define letters that very much
+In the affix file MAP items can be used to define letters that are very much
 alike.  This is mostly used for a letter with different accents.  This is used
 to prefer suggestions with these letters substituted.  Example:
 
@@ -691,22 +712,23 @@ to prefer suggestions with these letters substituted.  Example:
 
 The first line specifies the number of MAP lines following.  Vim ignores it.
 
-A letter must only appear in one of the MAP items.  It's a bit more efficient
-if the first letter is ASCII or at least one without accents.
+Each letter must appear in only one of the MAP items.  It's a bit more
+efficient if the first letter is ASCII or at least one without accents.
 
 
-SOUNDS-A-LIKE                                          *spell-affix-SAL*
+SOUND-A-LIKE                                           *spell-affix-SAL*
 
 In the affix file SAL items can be used to define the sounds-a-like mechanism
 to be used.  The main items define the "from" text and the "to" replacement.
-Example:
+Simplistic example:
 
        SAL CIA                  X ~
        SAL CH                   X ~
        SAL C                    K ~
        SAL K                    K ~
 
-An explantion how it works can be found in the Aspell manual:
+There are a few rules and this can become quite complicated.  An explantion
+how it works can be found in the Aspell manual:
 http://aspell.net/man-html/Phonetic-Code.html.
 
 There are a few special items:
@@ -723,7 +745,7 @@ SIMPLE SOUNDFOLDING         *spell-affix-SOFOFROM* *spell-affix-SOFOTO*
 The SAL mechanism is complex and slow.  A simpler mechanism is mapping all
 characters to another character, mapping similar sounding characters to the
 same character.  At the same time this does case folding.  You can not have
-SAL items at the same time.
+both SAL items and simple soundfolding.
 
 There are two items required: one to speficy the characters that are mapped
 and one that specifies the characters they are mapped to.  They must have
@@ -733,9 +755,9 @@ exactly the same number of characters.  Example:
     SOFOTO   ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkes ~
 
 In the example all vowels are mapped to the same character 'e'.  Another
-method is to leave out all vowels.  Some characters that sound nearly the same
-and are often mixed up, such as 'm' and 'n', are mapped to the same character.
-Don't do this too much, all words will start looking alike.
+method would be to leave out all vowels.  Some characters that sound nearly
+the same and are often mixed up, such as 'm' and 'n', are mapped to the same
+character.  Don't do this too much, all words will start looking alike.
 
 Characters that do not appear in SOFOFROM will be left out, except that all
 white space is replaced by one space.  Sequences of the same character in
index 1d56980287328a5cfae41dd19280a95e3594a79c..7335d30a0da5da5238d89bfdeb0a2216ecc96546 100644 (file)
@@ -1,4 +1,4 @@
-*starting.txt*  For Vim version 7.0aa.  Last change: 2005 May 31
+*starting.txt*  For Vim version 7.0aa.  Last change: 2005 Jun 30
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -890,7 +890,8 @@ set, it will be set to 'nocompatible'.  This has the side effect of setting or
 resetting other options (see 'compatible').  But only the options that have
 not been set or reset will be changed.  This has the same effect like the
 value of 'compatible' had this value when starting Vim.  Note that this
-doesn't happen for the system-wide vimrc file.
+doesn't happen for the system-wide vimrc file.  It does also happen for gvimrc
+files.
 
 But there is a side effect of setting or resetting 'compatible' at the moment
 a .vimrc file is found: Mappings are interpreted the moment they are
index 67930a2a881cfb97cd8df9bb0c4a20c5ad75a83a..255fec9bf91d367b81cfea86c720198b10f83f31 100644 (file)
@@ -6293,6 +6293,7 @@ spell-load        spell.txt       /*spell-load*
 spell-midword  spell.txt       /*spell-midword*
 spell-mkspell  spell.txt       /*spell-mkspell*
 spell-quickstart       spell.txt       /*spell-quickstart*
+spell-remarks  spell.txt       /*spell-remarks*
 spell-syntax   spell.txt       /*spell-syntax*
 spell-wordlist-format  spell.txt       /*spell-wordlist-format*
 spell.txt      spell.txt       /*spell.txt*
index 9b47dca6755a0370123c0c1b80e65ca759769a63..c11c012c31014e15aeb2a951d97ecebf292f17dd 100644 (file)
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last Change: 2005 Jun 29
+" Last Change: 2005 Jun 30
 
 " Listen very carefully, I will say this only once
 if exists("did_load_filetypes")
@@ -1585,7 +1585,27 @@ au BufNewFile,BufRead *.slt                      setf tsalt
 au BufNewFile,BufRead *.ti                     setf terminfo
 
 " TeX
-au BufNewFile,BufRead *.tex,*.latex,*.sty,*.dtx,*.ltx,*.bbl    setf tex
+au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl  setf tex
+au BufNewFile,BufRead *.tex                    call s:FTtex()
+
+fun! s:FTtex()
+  let n = 1
+  while n < 10 && n < line("$")
+    let line = getline(n)
+    if line =~ '^\s*\\\%(documentclass\>\|usepackage\>\|begin{\)'
+      setf tex
+      return
+    elseif line =~ '^\s*\\\%(start\l\+\|setup\l\+\|usemodule\)\>'
+      setf context
+      return
+    endif
+    let n = n + 1
+  endwhile
+  setf tex
+endfun
+
+" Context
+au BufNewFile,BufRead tex/context/*/*.tex      setf context
 
 " Texinfo
 au BufNewFile,BufRead *.texinfo,*.texi,*.txi   setf texinfo
@@ -1746,7 +1766,7 @@ au BufNewFile,BufRead *.y                 call s:FTy()
 
 fun! s:FTy()
   let n = 1
-  while n < 10
+  while n < 10 && n < line("$")
     if getline(n) =~ '^\s*\(#\|class\>\)'
       setf racc
       return
index 89403c9c9819996f48d96d7886600f654f1a570a..a33bdb715e0c849c10bb60fb447336fee9395763 100644 (file)
@@ -1,6 +1,6 @@
 " Vim indent file
 " Language:            C-shell (tcsh)
-" Maintainor:          Gautam Iyer <gautam@math.uchicago.edu>
+" Maintainer:          Gautam Iyer <gautam@math.uchicago.edu>
 " Last Modified:       Wed 04 Feb 2004 04:36:07 PM CST
 
 " Only load this indent file when no other was loaded.
index 29687d2fc25804c0404d8503a4e8dc9c71d9c9c7..0eac58bda038bc8c96fd8166841ac211f1487171 100644 (file)
@@ -4829,7 +4829,7 @@ struct prt_dsc_line_S
 
 
 #define SIZEOF_CSTR(s)      (sizeof(s) - 1)
-struct prt_dsc_comment_S prt_dsc_table[] =
+static struct prt_dsc_comment_S prt_dsc_table[] =
 {
     {PRT_DSC_TITLE,       SIZEOF_CSTR(PRT_DSC_TITLE),     PRT_DSC_TITLE_TYPE},
     {PRT_DSC_VERSION,     SIZEOF_CSTR(PRT_DSC_VERSION),
@@ -4876,6 +4876,7 @@ static int prt_next_dsc __ARGS((struct prt_dsc_line_S *p_dsc_line));
 #ifdef FEAT_MBYTE
 static int prt_build_cid_fontname __ARGS((int font, char_u *name, int name_len));
 static void prt_def_cidfont __ARGS((char *new_name, int height, char *cidfont));
+static void prt_dup_cidfont __ARGS((char *original_name, char *new_name));
 static int prt_match_encoding __ARGS((char *p_encoding, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_encoding_S **pp_mbenc));
 static int prt_match_charset __ARGS((char *p_charset, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_charset_S **pp_mbchar));
 #endif
index 2bdffc6cea629a9cbcef6fc53eef79d6c66b8261..711f9e53ec19251c884961e2e2b7a8b74f7e8e5f 100644 (file)
@@ -19,8 +19,10 @@ extern "C" {
     BOOL WINAPI global_ime_TranslateMessage(CONST MSG *);
     void WINAPI global_ime_set_position(POINT*);
     void WINAPI global_ime_set_font(LOGFONT*);
+#if 0
     void WINAPI global_ime_status_evacuate(void);
     void WINAPI global_ime_status_restore(void);
+#endif
     void WINAPI global_ime_set_status(int status);
     int WINAPI global_ime_get_status(void);
 #ifdef __cplusplus
index 87b99e3eb462ce1ba17a45f41f4c52174a629a76..6bc9b1a5082df86a111d73606a406096d285c86b 100644 (file)
@@ -989,7 +989,6 @@ EXTERN char breakat_flags[256];     /* which characters are in 'breakat' */
 
 /* these are in version.c */
 extern char *Version;
-extern char *mediumVersion;
 #if defined(HAVE_DATE_TIME) && defined(VMS) && defined(VAXC)
 extern char longVersion[];
 #else
@@ -1200,11 +1199,6 @@ EXTERN char      pseps[2]                /* normal path separator string */
                        = {'\\', 0}
 # endif
                        ;
-EXTERN char    psepsN[2]               /* abnormal path separator string */
-# ifdef DO_INIT
-                       = {'/', 0}
-# endif
-                       ;
 #endif
 
 #ifdef FEAT_VIRTUALEDIT
@@ -1244,7 +1238,6 @@ EXTERN char *netbeansArg INIT(= NULL);    /* the -nb[:host:port:passwd] arg */
 EXTERN int netbeansCloseFile INIT(= 0);        /* send killed if != 0 */
 EXTERN int netbeansFireChanges INIT(= 1); /* send buffer changes if != 0 */
 EXTERN int netbeansForcedQuit INIT(= 0);/* don't write modified files */
-EXTERN int netbeansOpenFile INIT(= 1); /* send fileOpened if != 0 */
 EXTERN int netbeansReadFile INIT(= 1); /* OK to read from disk if != 0 */
 EXTERN int netbeansSuppressNoLines INIT(= 0); /* skip "No lines in buffer" */
 EXTERN int usingNetbeans INIT(= 0);    /* set if -nb flag is used */
index a88ba63a4a2b923317d6e8c62266bbdf5b9d6b25..5dc69e8ff295229db85d17351f73a07fa06c2669 100644 (file)
@@ -29,7 +29,6 @@
 
 #define        CSCOPE_DBFILE           "cscope.out"
 #define        CSCOPE_PROMPT           ">> "
-#define        CSCOPE_QUERIES          "sgdct efi"
 
 /*
  * s 0name     Find this C symbol
index d176303d1fc9f21a4c3d2a34a83ae1b2876f45a5..75d8a4dc27a265dec3747b8a5dac9d3c5791a1b7 100644 (file)
@@ -1366,6 +1366,7 @@ del_trailing_spaces(ptr)
 
 /*
  * Like strncpy(), but always terminate the result with one NUL.
+ * "to" must be "len + 1" long!
  */
     void
 vim_strncpy(to, from, len)
index b540481cda9116ced0d1fd5ccd725098de4a4e34..3baeca4dde54b1cb8b3f16a8dd74e9cc4a8aec00 100644 (file)
@@ -24,7 +24,6 @@
 #endif
 
 #define nbdebug(a) nbdbg##a
-#define nbprint(a) nbprt##a
 
 #define NB_TRACE               0x00000001
 #define NB_TRACE_VERBOSE       0x00000002
index 8553771ae6ac7fc38bf6cfe99f2bb90c9ed15841..eef61292b65dbe1a514817ae2fe99102d9a41cb1 100644 (file)
@@ -6645,14 +6645,12 @@ set_bool_option(opt_idx, varp, value, opt_flags)
            psepc = '/';
            psepcN = '\\';
            pseps[0] = '/';
-           psepsN[0] = '\\';
        }
        else
        {
            psepc = '\\';
            psepcN = '/';
            pseps[0] = '\\';
-           psepsN[0] = '/';
        }
 
        /* need to adjust the file name arguments and buffer names. */
index 2b7e80d7e8629f8295ce7f607904a91a13e4f29b..9aa2aaa3a9ffdfb0dfda171d197b7987f1556ca8 100644 (file)
@@ -467,7 +467,9 @@ static char *(p_fdo_values[]) = {"all", "block", "hor", "mark", "percent",
 # define FDO_JUMP              0x400
 #endif
 EXTERN char_u  *p_fp;          /* 'formatprg' */
+#ifdef HAVE_FSYNC
 EXTERN int     p_fs;           /* 'fsync' */
+#endif
 EXTERN int     p_gd;           /* 'gdefault' */
 #ifdef FEAT_PRINTER
 EXTERN char_u  *p_pdev;        /* 'printdevice' */
index 576b2383c35f43c51e0f00f14b7b22bc6830c74f..b8e90e111abc45b93099d0a3421414cff3a01ec5 100644 (file)
@@ -14,7 +14,6 @@
 
 #define BINARY_FILE_IO
 #define USE_EXE_NAME           /* use argv[0] for $VIM */
-#define NO_COOKED_INPUT                /* mch_inchar() doesn't return whole lines */
 #define SYNC_DUP_CLOSE         /* sync() a file with dup() and close() */
 #define USE_TERM_CONSOLE
 #ifdef DJGPP
index dfeca60552c8cb51af68303dba6f5bf9a965122a..f1a7c7ad03533fda3ae1a3cab158afdadb5a43c9 100644 (file)
@@ -2509,8 +2509,8 @@ win_line(wp, lnum, startrow, endrow)
                                           starts */
     int                spell_attr = 0;         /* attributes desired by spelling */
     int                word_end = 0;           /* last byte with same spell_attr */
-    static linenr_T  checked_lnum = 0; /* line number for checked_col */
-    static int checked_col = 0;        /* column in checked_lnum up to which
+    static linenr_T  checked_lnum = 0; /* line number for "checked_col" */
+    static int checked_col = 0;        /* column in "checked_lnum" up to which
                                         * there are no spell errors */
     int                cur_checked_col = 0;    /* checked column for current line */
 #endif
index e0d129c600e0b5f633daa42fc9f9f1d21d21c21e..bc2b1bbd58efdc7e595848c92144d67aaea8f8a6 100644 (file)
@@ -1469,7 +1469,10 @@ struct file_buffer
 
     /* for spell checking */
     garray_T   b_langp;        /* list of pointers to slang_T, see spell.c */
-
+    char_u     b_spell_ismw[256];/* flags: is midword char */
+# ifdef FEAT_MBYTE
+    char_u     *b_spell_ismw_mb; /* multi-byte midword chars */
+# endif
 #endif /* FEAT_SYN_HL */
 
 #ifdef FEAT_SIGNS
index e879438f77b98f8b838cdbad4265095ee0386f29..e52839c8b5174c13a7e730ad3873b95099ad8cb0 100644 (file)
@@ -27,8 +27,8 @@
 
 #include "version.h"
 
-char   *Version = VIM_VERSION_SHORT;
-char   *mediumVersion = VIM_VERSION_MEDIUM;
+char           *Version = VIM_VERSION_SHORT;
+static char    *mediumVersion = VIM_VERSION_MEDIUM;
 
 #if defined(HAVE_DATE_TIME) || defined(PROTO)
 # if (defined(VMS) && defined(VAXC)) || defined(PROTO)
index 59a8854245ef791763c055200022048046ef2e74..8c74f3cd4b26690ea965ca5c7c6fd68f6bbe8d0f 100644 (file)
@@ -36,5 +36,5 @@
 #define VIM_VERSION_NODOT      "vim70aa"
 #define VIM_VERSION_SHORT      "7.0aa"
 #define VIM_VERSION_MEDIUM     "7.0aa ALPHA"
-#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 29)"
-#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 29, compiled "
+#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 30)"
+#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 30, compiled "