mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
updated for version 7.0063
This commit is contained in:
parent
fc73515f7b
commit
6bb683663a
@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.0aa. Last change: 2005 Mar 19
|
||||
*options.txt* For Vim version 7.0aa. Last change: 2005 Mar 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -5644,6 +5644,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
set spelllang=en_us,nl
|
||||
< This means both US English and Dutch words are recognized. Words that
|
||||
are not recognized will be highlighted.
|
||||
When 'encoding' is set the word lists are loaded again. Thus it's a
|
||||
good idea to set 'spelllang' after setting 'encoding'.
|
||||
More info at |spell|.
|
||||
|
||||
*'splitbelow'* *'sb'* *'nosplitbelow'* *'nosb'*
|
||||
|
@ -1,4 +1,4 @@
|
||||
*spell.txt* For Vim version 7.0aa. Last change: 2005 Mar 20
|
||||
*spell.txt* For Vim version 7.0aa. Last change: 2005 Mar 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -29,6 +29,16 @@ The words that are not recognized are highlighted with one of these:
|
||||
SpellLocal wrong spelling for selected region
|
||||
|
||||
|
||||
PERFORMANCE
|
||||
|
||||
Note that Vim does on-the-fly spellchecking. To make this work fast the
|
||||
word list is loaded in memory. Thus this uses a lot of memory (2 Mbyte or
|
||||
more). There might also be a noticable delay when the word list is loaded,
|
||||
which happens when 'spelllang' is set. Each word list is only loaded once,
|
||||
they are not deleted when 'spelllang' is made empty. When 'encoding' is set
|
||||
the word lists are reloaded, thus you may notice a delay then too.
|
||||
|
||||
|
||||
REGIONS
|
||||
|
||||
A word may be spelled differently in various regions. For example, English
|
||||
@ -55,6 +65,8 @@ Vim searches for spell files in the "spell" subdirectory of the directories in
|
||||
Exception: Vim uses "latin1" when 'encoding' is "iso-8859-15". The euro sign
|
||||
doesn't matter for spelling.
|
||||
|
||||
Spelling for EBCDIC is currently not supported.
|
||||
|
||||
A spell file might not be available in the current 'encoding'. You may try
|
||||
using the "iconv" program to create one: >
|
||||
|
||||
@ -68,6 +80,28 @@ is useful for English: "en.spl" The file with encoding is checked first, thus
|
||||
you could have one with encoding that includes words with non-ASCII characters
|
||||
and use the ASCII file as a fall-back.
|
||||
|
||||
|
||||
WORDS
|
||||
|
||||
Vim uses a fixed method to recognize a word. This is independent of
|
||||
'iskeyword', so that it also works in help files and for languages that
|
||||
include characters like '-' in 'iskeyword'. The word characters do depend on
|
||||
'encoding'.
|
||||
|
||||
A word that starts with a digit is always ignored.
|
||||
|
||||
|
||||
SYNTAX HIGHLIGHTING
|
||||
|
||||
Files that use syntax highlighting can specify where spell checking should be
|
||||
done:
|
||||
|
||||
everywhere default
|
||||
in specific items use "contains=@Spell"
|
||||
everywhere but specific items use "contains=@NoSpell"
|
||||
|
||||
Note that mixing @Spell and @NoSpell doesn't make sense.
|
||||
|
||||
==============================================================================
|
||||
X. Spell file format *spell-file-format*
|
||||
*E751*
|
||||
@ -75,19 +109,22 @@ X. Spell file format *spell-file-format*
|
||||
The spelling for a language is specified in file with a specific format.
|
||||
The first character of a line specifies what follows in the line:
|
||||
|
||||
char argument meaning ~
|
||||
- xx words for xx region follow (repeats)
|
||||
<space> <word> normal word
|
||||
> <word> rare word
|
||||
= <word> word with non-keyword characters
|
||||
+ <word> optional word addition
|
||||
# <anything> comment
|
||||
line meaning ~
|
||||
-xx[-yy]... words for region xx (and region yy, etc.) follow
|
||||
<word> normal word
|
||||
><word> rare word
|
||||
+<word> optional addition after a word
|
||||
!<word> normal word, keep upper/lower case
|
||||
!><word> rare word, keep upper/lower case
|
||||
!+<word> optional word addition, keep upper/lower case
|
||||
#<anything> comment
|
||||
|
||||
Empty lines are ignored. The word continues until the end of the line. Watch
|
||||
out for trailing white space!
|
||||
|
||||
Words that start with an upper-case letter will be required to be written that
|
||||
way. Otherwise, words must be in lower-case.
|
||||
Words that start with an upper-case letter will be required to start with an
|
||||
upper-case letter. Otherwise, words must be in lower-case and case is
|
||||
ignored.
|
||||
|
||||
It is possible that a word appears both with an upper-case letter and as a
|
||||
rare word. This means that the word with an upper-case letter is OK and the
|
||||
@ -98,7 +135,7 @@ starts the word for "en_us". This can be repeated for words that are used in
|
||||
more than one region. For example "-ca-us" is used for Canadian and US
|
||||
English words. Use "---" to go back to the words for all regions.
|
||||
|
||||
Vim supports up to six regions. *E752*
|
||||
Vim supports up to eight regions. *E752*
|
||||
|
||||
It is possible to have a match that starts with a valid word. In that case
|
||||
the match is used, because it is longer. Example:
|
||||
|
@ -7,7 +7,7 @@ vim \- VI Migliorato, un editor di testi per programmatori
|
||||
[opzioni] [file ..]
|
||||
.br
|
||||
.B vim
|
||||
[opzioni] -
|
||||
[opzioni] \-
|
||||
.br
|
||||
.B vim
|
||||
[opzioni] \-t tag
|
||||
@ -69,15 +69,15 @@ Una lista di nomi di file.
|
||||
Il primo di questi sarà il file corrente, e verrà letto nel buffer.
|
||||
Il cursore sarà posizionato sulla prima linea del buffer.
|
||||
Potete arrivare agli altri file col comando ":next".
|
||||
Per editare un file il cui nome inizia per "-" premettete "--" alla
|
||||
Per editare un file il cui nome inizia per "\-" premettete "\-\-" alla
|
||||
lista_file.
|
||||
.TP
|
||||
-
|
||||
\-
|
||||
Il file da editare è letto dallo "stdin" [di solito, ma non
|
||||
necessriamente, il terminale - NdT]. I comandi sono letti da "stderr",
|
||||
necessriamente, il terminale \- NdT]. I comandi sono letti da "stderr",
|
||||
che dovrebbe essere un terminale [tty].
|
||||
.TP
|
||||
-t {tag}
|
||||
\-t {tag}
|
||||
Il file da editare e la posizione iniziale del cursore dipendono da "tag",
|
||||
una specie di "etichetta" a cui saltare.
|
||||
{tag} viene cercata nel file tags, ed il file ad essa associato diventa
|
||||
@ -88,7 +88,7 @@ L'effetto è che il file contenente quella funzione diventa il file corrente
|
||||
e il cursore è posizionato all'inizio della funzione.
|
||||
Vedere ":help tag-commands".
|
||||
.TP
|
||||
-q [file_errori]
|
||||
\-q [file_errori]
|
||||
Inizia nella modalità quickFix [correzione veloce].
|
||||
Il file [file_errori] è letto e il primo errore è visualizzato.
|
||||
Se [file_errori] non è indicato, il suo nome è ottenuto dal valore
|
||||
@ -107,31 +107,31 @@ Modalità "Normal", comportamento normale.
|
||||
ex
|
||||
Inizia in modalità "Ex".
|
||||
Si può passare in modalità "Normal" col comandi ":vi".
|
||||
Si può invocare la modalità "Ex" anche con l'argomento "-e".
|
||||
Si può invocare la modalità "Ex" anche con l'argomento "\-e".
|
||||
.TP
|
||||
view
|
||||
Inizia in modalità "Sola Lettura". Non potete modificare i file.
|
||||
Si può invocare la modalità "Sola Lettura" anche con l'argomento "-R".
|
||||
Si può invocare la modalità "Sola Lettura" anche con l'argomento "\-R".
|
||||
.TP
|
||||
gvim gview
|
||||
La versione GUI [Graphical User Interface].
|
||||
Apre una nuova finestra.
|
||||
Si può invocare la modalità "GUI" anche con l'argomento "-g".
|
||||
Si può invocare la modalità "GUI" anche con l'argomento "\-g".
|
||||
.TP
|
||||
evim eview
|
||||
La versione GUI in modalità "Facile" (semplificata).
|
||||
Apre una nuova finestra.
|
||||
Si può invocare la modalità "Facile" anche con l'argomento "-y".
|
||||
Si può invocare la modalità "Facile" anche con l'argomento "\-y".
|
||||
.TP
|
||||
rvim rview rgvim rgview
|
||||
Come sopra, ma con restrizioni ai comandi. Non si potrnno eseguire comandi
|
||||
dello shell o sospendere
|
||||
.B Vim.
|
||||
Si può invocare la modalità "Ristretta" anche con l'argomento "-Z".
|
||||
Si può invocare la modalità "Ristretta" anche con l'argomento "\-Z".
|
||||
.SH OPZIONI
|
||||
Le opzioni possono essere in un ordine qualsiasi, prima o dopo i nomi di
|
||||
file. Opzioni che non necessitano un argomento possono essere raggruppate
|
||||
dietro a un solo "-".
|
||||
dietro a un solo "\-".
|
||||
.TP 12
|
||||
+[numero]
|
||||
Per il primo file il cursore sarà posizionato sulla linea "numero".
|
||||
@ -144,7 +144,7 @@ Vedere ":help search-pattern" per come specificare l'espressione.
|
||||
.TP
|
||||
+{comando}
|
||||
.TP
|
||||
-c {comando}
|
||||
\-c {comando}
|
||||
{comando} sarà eseguito dopo che il
|
||||
primo file è stato letto.
|
||||
{comando} è interpretato come un comando Ex.
|
||||
@ -152,22 +152,22 @@ Se il {comando} contiene spazi deve essere incluso fra doppi apici
|
||||
(o altro delimitatore, a seconda dello shell che si sta usando).
|
||||
Esempio: Vim "+set si" main.c
|
||||
.br
|
||||
Note: Si possono avere fino a 10 comandi "+" o "-c".
|
||||
Note: Si possono avere fino a 10 comandi "+" o "\-c".
|
||||
.TP
|
||||
-S {file}
|
||||
\-S {file}
|
||||
I comandi contenuti in {file} sono eseguiti dopo la lettura del primo file.
|
||||
Equivalente a -c "source {file}".
|
||||
{file} non può avere un nome che inizia per '-'.
|
||||
Se {file} è omesso si usa "Session.vim" (funziona solo se -S è l'ultimo
|
||||
Equivalente a \-c "source {file}".
|
||||
{file} non può avere un nome che inizia per '\-'.
|
||||
Se {file} è omesso si usa "Session.vim" (funziona solo se \-S è l'ultimo
|
||||
argomento specificato).
|
||||
.TP
|
||||
--cmd {comando}
|
||||
Come "-c", ma il comando è eseguito PRIMA
|
||||
\-\-cmd {comando}
|
||||
Come "\-c", ma il comando è eseguito PRIMA
|
||||
di eseguire qualsiasi file vimrc.
|
||||
Si possono usare fino a 10 di questi comandi, indipendentemente dai comandi
|
||||
"-c".
|
||||
"\-c".
|
||||
.TP
|
||||
-A
|
||||
\-A
|
||||
Se
|
||||
.B Vim
|
||||
è stato compilato con supporto ARABIC per editare file con orientamento
|
||||
@ -178,46 +178,46 @@ Altrimenti viene dato un messaggio di errore e
|
||||
.B Vim
|
||||
termina in modo anormale.
|
||||
.TP
|
||||
-b
|
||||
\-b
|
||||
Modalità "Binaria".
|
||||
Vengono impostate alcune opzioni che permettono di modificare un file
|
||||
binario o un programma eseguibile.
|
||||
.TP
|
||||
-C
|
||||
\-C
|
||||
Compatibile. Imposta l'opzione 'compatible'.
|
||||
In questo modo
|
||||
.B Vim
|
||||
ha quasi lo stesso comportamento di Vi, anche in presenza di un file
|
||||
di configurazione .vimrc [proprio di Vim - NdT].
|
||||
di configurazione .vimrc [proprio di Vim \- NdT].
|
||||
.TP
|
||||
-d
|
||||
\-d
|
||||
Inizia in modalità "Diff" [differenze].
|
||||
Dovrebbero esserci come argomenti due o tre nomi di file.
|
||||
.B Vim
|
||||
aprirà tutti i file evidenziando le differenze fra gli stessi.
|
||||
Funziona come vimdiff(1).
|
||||
.TP
|
||||
-d {dispositivo}
|
||||
\-d {dispositivo}
|
||||
Apre {dispositivo} per usarlo come terminale.
|
||||
Solo per l'Amiga.
|
||||
Esempio:
|
||||
"\-d con:20/30/600/150".
|
||||
.TP
|
||||
-D
|
||||
\-D
|
||||
Debugging. Vim si mette in modalità "debugging" a partire
|
||||
dall'esecuzione del primo comando da uno script.
|
||||
.TP
|
||||
-e
|
||||
\-e
|
||||
Eseguire
|
||||
.B Vim
|
||||
in modalità "Ex", come se il programma eseguito sia "ex".
|
||||
.TP
|
||||
-E
|
||||
\-E
|
||||
Eseguire
|
||||
.B Vim
|
||||
in modalità "Ex" migliorata, come se il programma eseguito sia "exim".
|
||||
.TP
|
||||
-f
|
||||
\-f
|
||||
Direttamente [Foreground]. Per la versione GUI,
|
||||
.B Vim
|
||||
non crea [fork] una nuova finestra, indipendente dallo shell di invocazione.
|
||||
@ -230,12 +230,12 @@ Opzione da usare quando
|
||||
sessione di edit (ad es. mail).
|
||||
Sull'Amiga i comandi ":sh" e ":!" non sono disponibili.
|
||||
.TP
|
||||
--nofork
|
||||
\-\-nofork
|
||||
Direttamente [Foreground]. Per la versione GUI,
|
||||
.B Vim
|
||||
non crea [fork] una nuova finestra, indipendente dallo shell di invocazione.
|
||||
.TP
|
||||
-F
|
||||
\-F
|
||||
Se
|
||||
.B Vim
|
||||
è stato compilato con supporto FKMAP per editare file con orientamento
|
||||
@ -246,7 +246,7 @@ Altrimenti viene dato un messaggio di errore e
|
||||
.B Vim
|
||||
termina in modo anormale.
|
||||
.TP
|
||||
-g
|
||||
\-g
|
||||
Se
|
||||
.B Vim
|
||||
è stato compilato con supporto GUI, questa opzione chiede di usarla.
|
||||
@ -254,13 +254,13 @@ Se Vim è stato compilato senza supporto GUI viene dato un messaggio di errore e
|
||||
.B Vim
|
||||
termina in modo anormale.
|
||||
.TP
|
||||
-h
|
||||
\-h
|
||||
Un po' di aiuto su opzioni e argomenti che si possono dare invocando Vim.
|
||||
Subito dopo
|
||||
.B Vim
|
||||
esce.
|
||||
.TP
|
||||
-H
|
||||
\-H
|
||||
Se
|
||||
.B Vim
|
||||
è stato compilato col supporto RIGHTLEFT per editare file con orientamento
|
||||
@ -271,86 +271,86 @@ Altrimenti viene dato un messaggio di errore e
|
||||
.B Vim
|
||||
termina in modo anormale.
|
||||
.TP
|
||||
-i {viminfo}
|
||||
\-i {viminfo}
|
||||
Se è abilitato l'uso di un file viminfo, questa opzione indica il nome
|
||||
del file da usare invece di quello predefinito "~/.viminfo".
|
||||
Si può anche evitare l'uso di un file .viminfo, dando come nome "NONE".
|
||||
.TP
|
||||
-L
|
||||
Equivalente a -r.
|
||||
\-L
|
||||
Equivalente a \-r.
|
||||
.TP
|
||||
-l
|
||||
\-l
|
||||
Modalità Lisp.
|
||||
Imposta le opzini 'lisp' e 'showmatch'.
|
||||
.TP
|
||||
-m
|
||||
\-m
|
||||
Inibisce modifica file.
|
||||
Annulla l'opzione 'write'.
|
||||
E' ancora possibile modificare un buffer [in memoria - Ndt], ma non scriverlo.
|
||||
E' ancora possibile modificare un buffer [in memoria \- Ndt], ma non scriverlo.
|
||||
.TP
|
||||
-M
|
||||
\-M
|
||||
Modifiche non permesse. Le opzioni 'modifiable' e 'write' sono annullate,
|
||||
in modo da impedire sia modifiche che riscritture. Da notare che queste
|
||||
opzioni possono essere abilitate in seguito, permettendo così modifiche.
|
||||
.TP
|
||||
-N
|
||||
\-N
|
||||
Modalità "Non-compatibile". Annulla l'opzione 'compatible'.
|
||||
Così
|
||||
.B Vim
|
||||
va un po' meglio, ma è meno compatibile con Vi, anche in assenza di un
|
||||
file .vimrc.
|
||||
.TP
|
||||
-n
|
||||
\-n
|
||||
Inibisce l'uso di un file di swap.
|
||||
Il recupero dopo una caduta di macchina diventa impossibile.
|
||||
Utile per editare un file su un supporto molto lento (ad es. floppy).
|
||||
Il comando ":set uc=0" ha lo stesso effetto.
|
||||
Per abilitare il recupero usare ":set uc=200".
|
||||
.TP
|
||||
-nb
|
||||
\-nb
|
||||
Diviene un Editor server per NetBeans. Vedere la documentazione per dettagli.
|
||||
.TP
|
||||
-o[N]
|
||||
\-o[N]
|
||||
Apri N finestre in orizzontale.
|
||||
Se N manca, apri una finestra per ciascun file.
|
||||
.TP
|
||||
-O[N]
|
||||
\-O[N]
|
||||
Apri N finestre, in verticale.
|
||||
Se N manca, apri una finestra per ciascun file.
|
||||
.TP
|
||||
-R
|
||||
\-R
|
||||
Modalità "Sola Lettura".
|
||||
Imposta l'opzione 'readonly'.
|
||||
Si può ancora modificare il buffer, ma siete protetti da una riscrittura
|
||||
involontaria.
|
||||
Se volete davvero riscrivere il file, aggiungete un punto esclamativo
|
||||
al comando "Ex", come in ":w!".
|
||||
L'opzione -R implica anche l'opzione -n (vedere sotto).
|
||||
L'opzione \-R implica anche l'opzione \-n (vedere sotto).
|
||||
L'opzione 'readonly' può essere annullata con ":set noro".
|
||||
Vedere ":help 'readonly'".
|
||||
.TP
|
||||
-r
|
||||
\-r
|
||||
Lista file di swap, assieme a dati utili per un recupero.
|
||||
.TP
|
||||
-r {file}
|
||||
\-r {file}
|
||||
Modalità "Recovery".
|
||||
Il file di swap è usato per recuperare una sessione di edit finita male.
|
||||
Il file di swap è un file con lo stesso nome file del file di testo
|
||||
editato, col suffisso ".swp".
|
||||
Vedere ":help recovery".
|
||||
.TP
|
||||
-s
|
||||
\-s
|
||||
Modalità silenziosa. Solo quando invocato come "Ex" o quando l'opzione
|
||||
"-e" è stata data prima dell'opzione "-s".
|
||||
"\-e" è stata data prima dell'opzione "\-s".
|
||||
.TP
|
||||
-s {scriptin}
|
||||
\-s {scriptin}
|
||||
Lo script file {scriptin} è letto.
|
||||
I caratteri nel file sono interpretati come se immessi da voi.
|
||||
Lo stesso si può ottenere col comando ":source! {scriptin}".
|
||||
Se la fine del file di input viene raggiunta prima che Vim termini,
|
||||
l'ulteriore input viene preso dalla tastiera.
|
||||
.TP
|
||||
-T {terminale}
|
||||
\-T {terminale}
|
||||
Dice a
|
||||
.B Vim
|
||||
quale tipo di terminale state usando.
|
||||
@ -359,7 +359,7 @@ Dovrebbe essere un terminale noto a
|
||||
.B Vim
|
||||
(internamente) o definito nel file termcap o terminfo.
|
||||
.TP
|
||||
-u {vimrc}
|
||||
\-u {vimrc}
|
||||
Usa i comandi nel file {vimrc} per inizializzazioni.
|
||||
Tutte le altre inizializzazioni non sono eseguite.
|
||||
Usate questa opzione per editare qualche file di tipo speciale.
|
||||
@ -367,45 +367,45 @@ Può anche essere usato per non fare alcuna inizializzazione dando
|
||||
come nome "NONE".
|
||||
Vedere ":help initialization" da vim per ulteriori dettagli.
|
||||
.TP
|
||||
-U {gvimrc}
|
||||
\-U {gvimrc}
|
||||
Usa i comandi nel file {gvimrc} per inizializzazioni GUI.
|
||||
Tutte le altre inizializzazioni GUI non sono eseguite.
|
||||
Può anche essere usata per non fare alcuna inizializzazione GUI dando
|
||||
come nome "NONE".
|
||||
Vedere ":help gui-init" da vim per ulteriori dettagli.
|
||||
.TP
|
||||
-V[N]
|
||||
\-V[N]
|
||||
Verboso. Vim manda messaggi relativi agli script file che esegue
|
||||
e quando legge o scrive un file viminfo. Il numero opzionale N è il valore
|
||||
dell'opzione 'verbose'.
|
||||
Il valore predefinito è 10.
|
||||
.TP
|
||||
-v
|
||||
\-v
|
||||
Inizia
|
||||
.B Vim
|
||||
in modalità "Vi", come se il programma eseguibile fosse "vi". Questo ha
|
||||
effetto solo quando Vim viene invocato con il nome "ex".
|
||||
.TP
|
||||
-w {scriptout}
|
||||
\-w {scriptout}
|
||||
Ogni carattere immesso viene registrato nel file {scriptout},
|
||||
finché non uscite da
|
||||
.B Vim.
|
||||
Utile se si vuole creare uno script file da usare con "vim -s" o
|
||||
Utile se si vuole creare uno script file da usare con "vim \-s" o
|
||||
":source!".
|
||||
Se il file {scriptout} esiste, quel che immettete viene aggiunto in fondo.
|
||||
.TP
|
||||
-W {scriptout}
|
||||
Come -w, ma uno script file esistente viene sovrascritto.
|
||||
\-W {scriptout}
|
||||
Come \-w, ma uno script file esistente viene sovrascritto.
|
||||
.TP
|
||||
-x
|
||||
\-x
|
||||
Uso di cifratura nella scrittura dei file. E' necessario immettere
|
||||
una chiave di cifratura.
|
||||
.TP
|
||||
-X
|
||||
\-X
|
||||
Non connetterti al server X. Vim parte più rapidamente,
|
||||
ma il titolo della finestra e la clipboard non sono disponibili.
|
||||
.TP
|
||||
-y
|
||||
\-y
|
||||
Eseguire
|
||||
.B Vim
|
||||
in modalità "Facile" (semplificata), come se l'eseguibile invocato
|
||||
@ -414,62 +414,62 @@ Fa sì che
|
||||
.B Vim
|
||||
si comporti come un editor che usa solo il mouse e i caratteri.
|
||||
.TP
|
||||
-Z
|
||||
\-Z
|
||||
Modalità "Ristretta". Vim si comporta come se invocato con un nome
|
||||
che inizia per "r".
|
||||
.TP
|
||||
--
|
||||
\-\-
|
||||
Specifica la fine delle opzioni.
|
||||
Argomenti specificati dopo questo sono considerati nomi file.
|
||||
Si può usare per editare un file il cui nome inizi per '-'.
|
||||
.TP
|
||||
--echo-wid
|
||||
\-\-echo\-wid
|
||||
Solo con GUI GTK: Visualizza Window ID su "stdout".
|
||||
.TP
|
||||
--help
|
||||
\-\-help
|
||||
Vim dà un messaggio ed esce, come con l'argomento "-h".
|
||||
.TP
|
||||
--literal
|
||||
\-\-literal
|
||||
Considera i nomi passati come argomenti letterai, senza espandere
|
||||
metacaratteri. Non necessario in Unix, lo shell espande i metacaratteri.
|
||||
.TP
|
||||
--noplugin
|
||||
Non caricare plugin. Implicito se si specifica -u NONE.
|
||||
\-\-noplugin
|
||||
Non caricare plugin. Implicito se si specifica \-u NONE.
|
||||
.TP
|
||||
--remote
|
||||
\-\-remote
|
||||
Connettersi a un server Vim e chiedere di editare i file elencati come altri
|
||||
argomenti. Se non si trova un server viene dato un messaggio e i file sono
|
||||
editati nel Vim corrente.
|
||||
.TP
|
||||
--remote-expr {expr}
|
||||
\-\-remote\-expr {expr}
|
||||
Connettersi a un server Vim, valutare ivi {expr} e stampare il risultatoi
|
||||
su "stdout".
|
||||
.TP
|
||||
--remote-send {chiavi}
|
||||
\-\-remote\-send {chiavi}
|
||||
Connettersi a un server Vim e spedirgli {chiavi}.
|
||||
.TP
|
||||
--remote-silent
|
||||
Come --remote, ma senza avvisare se non si trova un server.
|
||||
\-\-remote\-silent
|
||||
Come \-\-remote, ma senza avvisare se non si trova un server.
|
||||
.TP
|
||||
--remote-wait
|
||||
Come --remote, ma Vim non termina finché i file non sono stati editati.
|
||||
\-\-remote-wait
|
||||
Come \-\-remote, ma Vim non termina finché i file non sono stati editati.
|
||||
.TP
|
||||
--remote-wait-silent
|
||||
Come --remote-wait, ma senza avvisare se non si trova un server.
|
||||
\-\-remote\-wait\-silent
|
||||
Come \-\-remote\-wait, ma senza avvisare se non si trova un server.
|
||||
.TP
|
||||
--serverlist
|
||||
\-\-serverlist
|
||||
Lista i nomi di tutti i server Vim disponibili.
|
||||
.TP
|
||||
--servername {nome}
|
||||
\-\-servername {nome}
|
||||
Usa {nome} come nome server. Usato per il Vim corrente, a meno che sia
|
||||
usato con l'argomento --remote, nel qual caso indica il server a cui
|
||||
usato con l'argomento \-\-remote, nel qual caso indica il server a cui
|
||||
connettersi.
|
||||
.TP
|
||||
--socketid {id}
|
||||
\-\-socketid {id}
|
||||
Solo con GUI GTK: Usa il meccanismo GtkPlug per eseguire gvim in un'altra
|
||||
finestra.
|
||||
.TP
|
||||
--version
|
||||
\-\-version
|
||||
Stampa la versione di Vim ed esci.
|
||||
.SH AIUTO ONLINE
|
||||
Battere ":help" in
|
||||
@ -477,8 +477,8 @@ Battere ":help" in
|
||||
per iniziare.
|
||||
Battere ":help argomento" per ricevere aiuto su uno specifico argomento.
|
||||
Per esempio: ":help ZZ" per ricevere aiuto sul comando "ZZ".
|
||||
Usare <Tab> e CTRL-D per completare gli argomenti
|
||||
(":help cmdline-completion").
|
||||
Usare <Tab> e CTRL\-D per completare gli argomenti
|
||||
(":help cmdline\-completion").
|
||||
Ci sono "tag" nei file di help per saltare da un argomento a un altro
|
||||
(simili a legami ipertestuali, vedere ":help").
|
||||
Tutti i file di documentazione possono essere navigati così. Ad es.:
|
||||
@ -486,10 +486,10 @@ Tutti i file di documentazione possono essere navigati così. Ad es.:
|
||||
.SH FILE
|
||||
.TP 15
|
||||
/usr/local/lib/vim/doc/*.txt
|
||||
I file di cocumentaziona di
|
||||
I file di documentazione di
|
||||
.B Vim
|
||||
.
|
||||
Usate ":help doc-file-list" per avere la lista completa.
|
||||
Usate ":help doc\-file\-list" per avere la lista completa.
|
||||
.TP
|
||||
/usr/local/lib/vim/doc/tags
|
||||
Il file di tags usato per trovare informazioni nei file di documentazione.
|
||||
@ -505,9 +505,17 @@ Inizializzazioni
|
||||
.B Vim
|
||||
a livello di sistema.
|
||||
.TP
|
||||
~/.vimrc
|
||||
Le vostre personali inizializzazioni di
|
||||
.B Vim
|
||||
.
|
||||
.TP
|
||||
/usr/local/lib/vim/gvimrc
|
||||
Inizializzazioni gvim a livello di sistema.
|
||||
.TP
|
||||
~/.gvimrc
|
||||
Le vostre personali inizializzazioni di gvim.
|
||||
.TP
|
||||
/usr/local/lib/vim/optwin.vim
|
||||
Script Vim usato dal comando ":options", un modo semplice
|
||||
per visualizzare e impostare opzioni.
|
||||
@ -529,7 +537,7 @@ Vedere ":help 'filetype'".
|
||||
/usr/local/lib/vim/*.ps
|
||||
File usati per stampa PostScript.
|
||||
.PP
|
||||
Per informazioni aggiornate [in inglese - NdT] vedere la home page di Vim:
|
||||
Per informazioni aggiornate [in inglese \- NdT] vedere la home page di Vim:
|
||||
.br
|
||||
<URL:http://www.vim.org/>
|
||||
.SH VEDERE ANCHE
|
||||
|
@ -18,7 +18,7 @@ is useful for people that want to learn their first
|
||||
.B Vim
|
||||
commands.
|
||||
.PP
|
||||
The optional [language] argument is the two-letter name of a language, like
|
||||
The optional [language] argument is the two\-letter name of a language, like
|
||||
"it" or "es".
|
||||
If the [language] argument is missing, the language of the current locale will
|
||||
be used.
|
||||
@ -44,7 +44,7 @@ The
|
||||
è stato scritto in origine per Vi da Michael C. Pierce e Robert K. Ware,
|
||||
Colorado School of Mines, usando idee fornite da Charles Smith,
|
||||
Colorado State University.
|
||||
E-mail: bware@mines.colorado.edu.
|
||||
E\-mail: bware@mines.colorado.edu.
|
||||
.br
|
||||
E' stato modificato per
|
||||
.B Vim
|
||||
|
@ -18,7 +18,7 @@ is useful for people that want to learn their first
|
||||
.B Vim
|
||||
commands.
|
||||
.PP
|
||||
The optional [language] argument is the two-letter name of a language, like
|
||||
The optional [language] argument is the two\-letter name of a language, like
|
||||
"it" or "es".
|
||||
If the [language] argument is missing, the language of the current locale will
|
||||
be used.
|
||||
@ -44,7 +44,7 @@ The
|
||||
è stato scritto in origine per Vi da Michael C. Pierce e Robert K. Ware,
|
||||
Colorado School of Mines, usando idee fornite da Charles Smith,
|
||||
Colorado State University.
|
||||
E-mail: bware@mines.colorado.edu.
|
||||
E\-mail: bware@mines.colorado.edu.
|
||||
.br
|
||||
E' stato modificato per
|
||||
.B Vim
|
||||
|
@ -21,9 +21,9 @@
|
||||
crea un'immagine esadecimale di un dato file o dello "standard input".
|
||||
Può anche ottenere da un'immagine esadecimale il file binario originale.
|
||||
Come
|
||||
.BR uuencode(1)
|
||||
.BR uuencode (1)
|
||||
e
|
||||
.BR uudecode(1)
|
||||
.BR uudecode (1)
|
||||
permette di trasmettere dati binari in una rapresentazione ASCII "a prova
|
||||
di email", ma ha anche il vantaggio di poter decodificare sullo "standard
|
||||
output". Inoltre, può essere usato per effettuare delle modifiche (patch)
|
||||
@ -124,21 +124,21 @@ o delle linee vuote possono essere inserite a piacere [e vengono ingorate].
|
||||
.TP
|
||||
.I \-seek distanza
|
||||
Usato con l'opzione
|
||||
.I \-r
|
||||
: (ricostruzione),
|
||||
.IR \-r :
|
||||
(ricostruzione),
|
||||
.RI < distanza >
|
||||
viene aggiunta alla posizione nel file trovata nella immagine
|
||||
esadecimale.
|
||||
.TP
|
||||
.I \-s [\+][\-]seek
|
||||
.I \-s [+][\-]seek
|
||||
Inizia a
|
||||
.RI < seek >
|
||||
bytes assoluti (o relativi) di distanza all'interno di input_file.
|
||||
\fI\+ \fRindica che il "seek" è relativo alla posizione corrente nel file
|
||||
\fI+ \fRindica che il "seek" è relativo alla posizione corrente nel file
|
||||
"standard input" (non significativa quando non si legge da "standard input").
|
||||
\fI\- \fRindica che il "seek" dovrebbe posizionarsi ad quel numero di
|
||||
caratteri dalla fine dell'input (o se in combinazione con
|
||||
\fI \+ \fR: prime della posizione corrente nel file "standard input").
|
||||
\fI+ \fR: prime della posizione corrente nel file "standard input").
|
||||
Se non si specifica una opzione \-s option, xxd inizia alla posizione
|
||||
corrente all'interno del file.
|
||||
.TP
|
||||
@ -183,7 +183,7 @@ e
|
||||
.PP
|
||||
.I xxd \-s \+seek
|
||||
può comportarsi in modo diverso da
|
||||
.I xxd \-s seek
|
||||
.IR "xxd \-s seek"
|
||||
, perché lseek(2) è usata per tornare indietro nel file di input. Il '+'
|
||||
fa differenza se il file di input è lo "standard input", e se la pozione nel
|
||||
file di "standard input" non è all'inizio del file quando xxd è eseguito,
|
||||
@ -202,7 +202,7 @@ si aggiunge a 1k (1024) dove `dd' si era fermato.
|
||||
.br
|
||||
\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +128 > esadecimale' < file
|
||||
.PP
|
||||
Immagine esadecimale dalla posizione 0x100 ( = 1024-768 ) del file in avanti.
|
||||
Immagine esadecimale dalla posizione 0x100 ( = 1024\-768 ) del file in avanti.
|
||||
.br
|
||||
\fI% sh \-c 'dd of=normale bs=1k count=1; xxd \-s +-768 > esadecimale' < file
|
||||
.PP
|
||||
|
@ -2,8 +2,8 @@
|
||||
" Language: PHP
|
||||
" Author: Miles Lott <milos@groupwhere.org>
|
||||
" URL: http://milosch.dyndns.org/php.vim
|
||||
" Last Change: 2004 May 18
|
||||
" Version: 0.4
|
||||
" Last Change: 2005 Mar 21
|
||||
" Version: 0.6
|
||||
" Notes: Close all switches with default:\nbreak; and it will look better.
|
||||
" Also, open and close brackets should be alone on a line.
|
||||
" This is my preference, and the only way this will look nice.
|
||||
@ -11,7 +11,9 @@
|
||||
" switch/case. It is nearly perfect for anyone regardless of your
|
||||
" stance on brackets.
|
||||
"
|
||||
" Changes: Fixes for closing php tag, switch statement closure, and php_indent_shortopentags
|
||||
" Changes: 0.6 - fix indention for closing bracket (patch from pierre.habouzit@m4x.org)
|
||||
" 0.5 - fix duplicate indent on open tag, and empty bracketed statements.
|
||||
" 0.4 - Fixes for closing php tag, switch statement closure, and php_indent_shortopentags
|
||||
" option from Steffen Bruentjen <vim@kontraphon.de>
|
||||
"
|
||||
" Options: php_noindent_switch=1 -- do not try to indent switch/case statements (version 0.1 behavior)
|
||||
@ -49,16 +51,16 @@ function GetPhpIndent()
|
||||
let pline = getline(lnum - 1) " previous to last line
|
||||
let ind = indent(lnum)
|
||||
|
||||
" Indent after php open tags
|
||||
" Indent after php open tag
|
||||
if line =~ '<?php'
|
||||
let ind = ind + &sw
|
||||
" indent after short open tags
|
||||
endif
|
||||
if exists('g:php_indent_shortopentags')
|
||||
elseif exists('g:php_indent_shortopentags')
|
||||
" indent after short open tag
|
||||
if line =~ '<?'
|
||||
let ind = ind + &sw
|
||||
endif
|
||||
endif
|
||||
" indent after php closing tag
|
||||
if cline =~ '\M?>'
|
||||
let ind = ind - &sw
|
||||
endif
|
||||
@ -72,7 +74,15 @@ function GetPhpIndent()
|
||||
let ind = ind - &sw
|
||||
endif
|
||||
return ind
|
||||
else " Try to indent switch/case statements as well
|
||||
else
|
||||
" Search the matching bracket (with searchpair()) and set the indent of
|
||||
" to the indent of the matching line.
|
||||
if cline =~ '^\s*}'
|
||||
call cursor(line('.'), 1)
|
||||
let ind = indent(searchpair('{', '', '}','bW', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string"'))
|
||||
return ind
|
||||
endif
|
||||
" Try to indent switch/case statements as well
|
||||
" Indent blocks enclosed by {} or () or case statements, with some anal requirements
|
||||
if line =~ 'case.*:\|[{(]\s*\(#[^)}]*\)\=$'
|
||||
let ind = ind + &sw
|
||||
@ -92,7 +102,7 @@ function GetPhpIndent()
|
||||
" Search the matching bracket (with searchpair()) and set the indent of cline
|
||||
" to the indent of the matching line.
|
||||
if cline =~ '^\s*}'
|
||||
call cursor(line('.'), 1)
|
||||
call cursor(line('. '), 1)
|
||||
let ind = indent(searchpair('{', '', '}', 'bW', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string"'))
|
||||
return ind
|
||||
endif
|
||||
|
110576
runtime/spell/en.spl
110576
runtime/spell/en.spl
File diff suppressed because it is too large
Load Diff
@ -23,17 +23,17 @@ syn case match
|
||||
" For "From " matching case is required. The "From " is not matched in quoted
|
||||
" emails
|
||||
syn region mailHeader contains=@mailHeaderFields start="^From " skip="^\s" end="\v^[-A-Za-z0-9]*([^-A-Za-z0-9:]|$)"me=s-1
|
||||
syn match mailHeaderKey contained contains=mailEmail "^From\s.*$"
|
||||
syn match mailHeaderKey contained contains=mailEmail,@NoSpell "^From\s.*$"
|
||||
|
||||
syn case ignore
|
||||
" Nothing else depends on case. Headers in properly quoted (with "> " or ">")
|
||||
" emails are matched
|
||||
syn region mailHeader keepend contains=@mailHeaderFields,@mailQuoteExps start="^\z(\(> \?\)*\)\v(newsgroups|from|((in-)?reply-)?to|b?cc|subject|return-path|received|date|replied):" skip="^\z1\s" end="\v^\z1[-a-z0-9]*([^-a-z0-9:]|$)"me=s-1 end="\v^\z1@!"me=s-1 end="\v^\z1(\> ?)+"me=s-1
|
||||
syn region mailHeader keepend contains=@mailHeaderFields,@mailQuoteExps,@NoSpell start="^\z(\(> \?\)*\)\v(newsgroups|from|((in-)?reply-)?to|b?cc|subject|return-path|received|date|replied):" skip="^\z1\s" end="\v^\z1[-a-z0-9]*([^-a-z0-9:]|$)"me=s-1 end="\v^\z1@!"me=s-1 end="\v^\z1(\> ?)+"me=s-1
|
||||
|
||||
syn region mailHeaderKey contained contains=mailHeaderEmail,mailEmail,@mailQuoteExps start="\v(^(\> ?)*)@<=(to|b?cc):" skip=",$" end="$"
|
||||
syn match mailHeaderKey contained contains=mailHeaderEmail,mailEmail "\v(^(\> ?)*)@<=(from|reply-to):.*$"
|
||||
syn region mailHeaderKey contained contains=mailHeaderEmail,mailEmail,@mailQuoteExps,@NoSpell start="\v(^(\> ?)*)@<=(to|b?cc):" skip=",$" end="$"
|
||||
syn match mailHeaderKey contained contains=mailHeaderEmail,mailEmail,@NoSpell "\v(^(\> ?)*)@<=(from|reply-to):.*$"
|
||||
syn match mailHeaderKey contained "\v(^(\> ?)*)@<=date:"
|
||||
syn match mailSubject contained "\v(^(\> ?)*)@<=subject:.*$" contains=@Spell
|
||||
syn match mailSubject contained "\v(^(\> ?)*)@<=subject:.*$"
|
||||
|
||||
" Anything in the header between < and > is an email address
|
||||
syn match mailHeaderEmail contained "<.\{-}>"
|
||||
|
@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 7.0 script
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: March 09, 2005
|
||||
" Version: 7.0-09
|
||||
" Last Change: March 21, 2005
|
||||
" Version: 7.0-10
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@ -20,16 +20,16 @@ syn keyword vimCommand contained ab[breviate] abc[lear] abo[veleft] al[l] arga[d
|
||||
syn match vimCommand contained "\<z[-+^.=]"
|
||||
|
||||
" vimOptions are caught only when contained in a vimSet {{{2
|
||||
syn keyword vimOption contained : acd ai akm al aleph allowrevins altkeymap ambiwidth ambw anti antialias ar arab arabic arabicshape ari arshape autochdir autoindent autoread autowrite autowriteall aw awa background backspace backup backupcopy backupdir backupext backupskip balloondelay ballooneval balloonexpr bdir bdlay beval bex bexpr bg bh bin binary biosk bioskey bk bkc bl bomb breakat brk browsedir bs bsdir bsk bt bufhidden buflisted buftype casemap cb ccv cd cdpath cedit cf cfu ch charconvert ci cin cindent cink cinkeys cino cinoptions cinw cinwords clipboard cmdheight cmdwinheight cmp cms co columns com comments commentstring compatible complete completefunc confirm consk conskey copyindent cp cpo cpoptions cpt cscopepathcomp cscopeprg cscopequickfix cscopetag cscopetagorder cscopeverbose cspc csprg csqf cst csto csverb cwh debug deco def define delcombine dex dg dict dictionary diff diffexpr diffopt digraph dip dir directory display dy ea ead eadirection eb ed edcompatible ef efm ei ek enc encoding endofline eol ep equalalways equalprg errorbells errorfile errorformat esckeys et eventignore ex expandtab exrc fcl fcs fdc fde fdi fdl fdls fdm fdn fdo fdt fen fenc fencs ff ffs fileencoding fileencodings fileformat fileformats filetype fillchars fk fkmap flp fml fmr fo foldclose foldcolumn foldenable foldexpr foldignore foldlevel foldlevelstart foldmarker foldmethod foldminlines foldnestmax foldopen foldtext formatlistpat formatoptions formatprg fp fs fsync ft gcr gd gdefault gfm gfn gfs gfw ghr go gp grepformat grepprg guicursor guifont guifontset guifontwide guiheadroom guioptions guipty helpfile helpheight helplang hf hh hi hid hidden highlight history hk hkmap hkmapp hkp hl hlg hls hlsearch ic icon iconstring ignorecase im imactivatekey imak imc imcmdline imd imdisable imi iminsert ims imsearch inc include includeexpr incsearch inde indentexpr indentkeys indk inex inf infercase insertmode is isf isfname isi isident isk iskeyword isp isprint joinspaces js key keymap keymodel keywordprg km kmp kp langmap langmenu laststatus lazyredraw lbr lcs linebreak lines linespace lisp lispwords list listchars lm lmap loadplugins lpl ls lsp lw lz ma magic makeef makeprg mat matchpairs matchtime maxfuncdepth maxmapdepth maxmem maxmempattern maxmemtot mef menuitems mfd mh mis ml mls mm mmd mmp mmt mod modeline modelines modifiable modified more mouse mousef mousefocus mousehide mousem mousemodel mouses mouseshape mouset mousetime mp mps mzq mzquantum nf nrformats nu number numberwidth nuw oft osfiletype pa para paragraphs paste pastetoggle patchexpr patchmode path pdev penc pex pexpr pfn pheader pi pm pmbcs pmbfn popt preserveindent previewheight previewwindow printdevice printencoding printexpr printfont printheader printmbcharset printmbfont printoptions prompt pt pvh pvw qe quoteescape readonly remap report restorescreen revins ri rightleft rightleftcmd rl rlc ro rs rtp ru ruf ruler rulerformat runtimepath sb sbo sbr sc scb scr scroll scrollbind scrolljump scrolloff scrollopt scs sect sections secure sel selection selectmode sessionoptions sft sh shcf shell shellcmdflag shellpipe shellquote shellredir shellslash shelltemp shelltype shellxquote shiftround shiftwidth shm shortmess shortname showbreak showcmd showfulltag showmatch showmode shq si sidescroll sidescrolloff siso sj slm sm smartcase smartindent smarttab smd sn so softtabstop sol sp splitbelow splitright spr sr srr ss ssl ssop st sta startofline statusline stl stmp sts su sua suffixes suffixesadd sw swapfile swapsync swb swf switchbuf sws sxq syn syntax ta tabstop tag tagbsearch taglength tagrelative tags tagstack tb tbi tbidi tbis tbs tenc term termbidi termencoding terse textauto textmode textwidth tf tgst thesaurus tildeop timeout timeoutlen title titlelen titleold titlestring tl tm to toolbar toolbariconsize top tr ts tsl tsr ttimeout ttimeoutlen ttm tty ttybuiltin ttyfast ttym ttymouse ttyscroll ttytype tw tx uc ul undolevels updatecount updatetime ut vb vbs vdir ve verbose vi viewdir viewoptions viminfo virtualedit visualbell vop wa wak warn wb wc wcm wd weirdinvert wfh wh whichwrap wi wig wildchar wildcharm wildignore wildmenu wildmode wildoptions wim winaltkeys window winfixheight winheight winminheight winminwidth winwidth wiv wiw wm wmh wmnu wmw wop wrap wrapmargin wrapscan write writeany writebackup writedelay ws ww
|
||||
syn keyword vimOption contained : acd ai akm al aleph allowrevins altkeymap ambiwidth ambw anti antialias ar arab arabic arabicshape ari arshape autochdir autoindent autoread autowrite autowriteall aw awa background backspace backup backupcopy backupdir backupext backupskip balloondelay ballooneval balloonexpr bdir bdlay beval bex bexpr bg bh bin binary biosk bioskey bk bkc bl bomb breakat brk browsedir bs bsdir bsk bt bufhidden buflisted buftype casemap cb ccv cd cdpath cedit cf cfu ch charconvert ci cin cindent cink cinkeys cino cinoptions cinw cinwords clipboard cmdheight cmdwinheight cmp cms co columns com comments commentstring compatible complete completefunc confirm consk conskey copyindent cp cpo cpoptions cpt cscopepathcomp cscopeprg cscopequickfix cscopetag cscopetagorder cscopeverbose cspc csprg csqf cst csto csverb cwh debug deco def define delcombine dex dg dict dictionary diff diffexpr diffopt digraph dip dir directory display dy ea ead eadirection eb ed edcompatible ef efm ei ek enc encoding endofline eol ep equalalways equalprg errorbells errorfile errorformat esckeys et eventignore ex expandtab exrc fcl fcs fdc fde fdi fdl fdls fdm fdn fdo fdt fen fenc fencs ff ffs fileencoding fileencodings fileformat fileformats filetype fillchars fk fkmap flp fml fmr fo foldclose foldcolumn foldenable foldexpr foldignore foldlevel foldlevelstart foldmarker foldmethod foldminlines foldnestmax foldopen foldtext formatlistpat formatoptions formatprg fp fs fsync ft gcr gd gdefault gfm gfn gfs gfw ghr go gp grepformat grepprg guicursor guifont guifontset guifontwide guiheadroom guioptions guipty helpfile helpheight helplang hf hh hi hid hidden highlight history hk hkmap hkmapp hkp hl hlg hls hlsearch ic icon iconstring ignorecase im imactivatekey imak imc imcmdline imd imdisable imi iminsert ims imsearch inc include includeexpr incsearch inde indentexpr indentkeys indk inex inf infercase insertmode is isf isfname isi isident isk iskeyword isp isprint joinspaces js key keymap keymodel keywordprg km kmp kp langmap langmenu laststatus lazyredraw lbr lcs linebreak lines linespace lisp lispwords list listchars lm lmap loadplugins lpl ls lsp lw lz ma magic makeef makeprg mat matchpairs matchtime maxfuncdepth maxmapdepth maxmem maxmempattern maxmemtot mef menuitems mfd mh mis ml mls mm mmd mmp mmt mod modeline modelines modifiable modified more mouse mousef mousefocus mousehide mousem mousemodel mouses mouseshape mouset mousetime mp mps mzq mzquantum nf nrformats nu number numberwidth nuw oft osfiletype pa para paragraphs paste pastetoggle patchexpr patchmode path pdev penc pex pexpr pfn pheader pi pm pmbcs pmbfn popt preserveindent previewheight previewwindow printdevice printencoding printexpr printfont printheader printmbcharset printmbfont printoptions prompt pt pvh pvw qe quoteescape readonly remap report restorescreen revins ri rightleft rightleftcmd rl rlc ro rs rtp ru ruf ruler rulerformat runtimepath sb sbo sbr sc scb scr scroll scrollbind scrolljump scrolloff scrollopt scs sect sections secure sel selection selectmode sessionoptions sft sh shcf shell shellcmdflag shellpipe shellquote shellredir shellslash shelltemp shelltype shellxquote shiftround shiftwidth shm shortmess shortname showbreak showcmd showfulltag showmatch showmode shq si sidescroll sidescrolloff siso sj slm sm smartcase smartindent smarttab smd sn so softtabstop sol sp spell spelllang spl splitbelow splitright spr sr srr ss ssl ssop st sta startofline statusline stl stmp sts su sua suffixes suffixesadd sw swapfile swapsync swb swf switchbuf sws sxq syn syntax ta tabstop tag tagbsearch taglength tagrelative tags tagstack tb tbi tbidi tbis tbs tenc term termbidi termencoding terse textauto textmode textwidth tf tgst thesaurus tildeop timeout timeoutlen title titlelen titleold titlestring tl tm to toolbar toolbariconsize top tr ts tsl tsr ttimeout ttimeoutlen ttm tty ttybuiltin ttyfast ttym ttymouse ttyscroll ttytype tw tx uc ul undolevels updatecount updatetime ut vb vbs vdir ve verbose vi viewdir viewoptions viminfo virtualedit visualbell vop wa wak warn wb wc wcm wd weirdinvert wfh wh whichwrap wi wig wildchar wildcharm wildignore wildmenu wildmode wildoptions wim winaltkeys window winfixheight winheight winminheight winminwidth winwidth wiv wiw wm wmh wmnu wmw wop wrap wrapmargin wrapscan write writeany writebackup writedelay ws ww
|
||||
|
||||
" vimOptions: These are the turn-off setting variants {{{2
|
||||
syn keyword vimOption contained noacd noai noakm noallowrevins noaltkeymap noanti noantialias noar noarab noarabic noarabicshape noari noarshape noautochdir noautoindent noautoread noautowrite noautowriteall noaw noawa nobackup noballooneval nobeval nobin nobinary nobiosk nobioskey nobk nobl nobomb nobuflisted nocf noci nocin nocindent nocompatible noconfirm noconsk noconskey nocopyindent nocp nocscopetag nocscopeverbose nocst nocsverb nodeco nodelcombine nodg nodiff nodigraph nodisable noea noeb noed noedcompatible noek noendofline noeol noequalalways noerrorbells noesckeys noet noex noexpandtab noexrc nofen nofk nofkmap nofoldenable nogd nogdefault noguipty nohid nohidden nohk nohkmap nohkmapp nohkp nohls nohlsearch noic noicon noignorecase noim noimc noimcmdline noimd noincsearch noinf noinfercase noinsertmode nois nojoinspaces nojs nolazyredraw nolbr nolinebreak nolisp nolist noloadplugins nolpl nolz noma nomagic nomh noml nomod nomodeline nomodifiable nomodified nomore nomousef nomousefocus nomousehide nonu nonumber nopaste nopi nopreserveindent nopreviewwindow noprompt nopvw noreadonly noremap norestorescreen norevins nori norightleft norightleftcmd norl norlc noro nors noru noruler nosb nosc noscb noscrollbind noscs nosecure nosft noshellslash noshelltemp noshiftround noshortname noshowcmd noshowfulltag noshowmatch noshowmode nosi nosm nosmartcase nosmartindent nosmarttab nosmd nosn nosol nosplitbelow nosplitright nospr nosr nossl nosta nostartofline nostmp noswapfile noswf nota notagbsearch notagrelative notagstack notbi notbidi notbs notermbidi noterse notextauto notextmode notf notgst notildeop notimeout notitle noto notop notr nottimeout nottybuiltin nottyfast notx novb novisualbell nowa nowarn nowb noweirdinvert nowfh nowildmenu nowinfixheight nowiv nowmnu nowrap nowrapscan nowrite nowriteany nowritebackup nows
|
||||
syn keyword vimOption contained noacd noai noakm noallowrevins noaltkeymap noanti noantialias noar noarab noarabic noarabicshape noari noarshape noautochdir noautoindent noautoread noautowrite noautowriteall noaw noawa nobackup noballooneval nobeval nobin nobinary nobiosk nobioskey nobk nobl nobomb nobuflisted nocf noci nocin nocindent nocompatible noconfirm noconsk noconskey nocopyindent nocp nocscopetag nocscopeverbose nocst nocsverb nodeco nodelcombine nodg nodiff nodigraph nodisable noea noeb noed noedcompatible noek noendofline noeol noequalalways noerrorbells noesckeys noet noex noexpandtab noexrc nofen nofk nofkmap nofoldenable nogd nogdefault noguipty nohid nohidden nohk nohkmap nohkmapp nohkp nohls nohlsearch noic noicon noignorecase noim noimc noimcmdline noimd noincsearch noinf noinfercase noinsertmode nois nojoinspaces nojs nolazyredraw nolbr nolinebreak nolisp nolist noloadplugins nolpl nolz noma nomagic nomh noml nomod nomodeline nomodifiable nomodified nomore nomousef nomousefocus nomousehide nonu nonumber nopaste nopi nopreserveindent nopreviewwindow noprompt nopvw noreadonly noremap norestorescreen norevins nori norightleft norightleftcmd norl norlc noro nors noru noruler nosb nosc noscb noscrollbind noscs nosecure nosft noshellslash noshelltemp noshiftround noshortname noshowcmd noshowfulltag noshowmatch noshowmode nosi nosm nosmartcase nosmartindent nosmarttab nosmd nosn nosol nospell nosplitbelow nosplitright nospr nosr nossl nosta nostartofline nostmp noswapfile noswf nota notagbsearch notagrelative notagstack notbi notbidi notbs notermbidi noterse notextauto notextmode notf notgst notildeop notimeout notitle noto notop notr nottimeout nottybuiltin nottyfast notx novb novisualbell nowa nowarn nowb noweirdinvert nowfh nowildmenu nowinfixheight nowiv nowmnu nowrap nowrapscan nowrite nowriteany nowritebackup nows
|
||||
|
||||
" vimOptions: These are the invertible variants {{{2
|
||||
syn keyword vimOption contained invacd invai invakm invallowrevins invaltkeymap invanti invantialias invar invarab invarabic invarabicshape invari invarshape invautochdir invautoindent invautoread invautowrite invautowriteall invaw invawa invbackup invballooneval invbeval invbin invbinary invbiosk invbioskey invbk invbl invbomb invbuflisted invcf invci invcin invcindent invcompatible invconfirm invconsk invconskey invcopyindent invcp invcscopetag invcscopeverbose invcst invcsverb invdeco invdelcombine invdg invdiff invdigraph invdisable invea inveb inved invedcompatible invek invendofline inveol invequalalways inverrorbells invesckeys invet invex invexpandtab invexrc invfen invfk invfkmap invfoldenable invgd invgdefault invguipty invhid invhidden invhk invhkmap invhkmapp invhkp invhls invhlsearch invic invicon invignorecase invim invimc invimcmdline invimd invincsearch invinf invinfercase invinsertmode invis invjoinspaces invjs invlazyredraw invlbr invlinebreak invlisp invlist invloadplugins invlpl invlz invma invmagic invmh invml invmod invmodeline invmodifiable invmodified invmore invmousef invmousefocus invmousehide invnu invnumber invpaste invpi invpreserveindent invpreviewwindow invprompt invpvw invreadonly invremap invrestorescreen invrevins invri invrightleft invrightleftcmd invrl invrlc invro invrs invru invruler invsb invsc invscb invscrollbind invscs invsecure invsft invshellslash invshelltemp invshiftround invshortname invshowcmd invshowfulltag invshowmatch invshowmode invsi invsm invsmartcase invsmartindent invsmarttab invsmd invsn invsol invsplitbelow invsplitright invspr invsr invssl invsta invstartofline invstmp invswapfile invswf invta invtagbsearch invtagrelative invtagstack invtbi invtbidi invtbs invtermbidi invterse invtextauto invtextmode invtf invtgst invtildeop invtimeout invtitle invto invtop invtr invttimeout invttybuiltin invttyfast invtx invvb invvisualbell invwa invwarn invwb invweirdinvert invwfh invwildmenu invwinfixheight invwiv invwmnu invwrap invwrapscan invwrite invwriteany invwritebackup invws
|
||||
syn keyword vimOption contained invacd invai invakm invallowrevins invaltkeymap invanti invantialias invar invarab invarabic invarabicshape invari invarshape invautochdir invautoindent invautoread invautowrite invautowriteall invaw invawa invbackup invballooneval invbeval invbin invbinary invbiosk invbioskey invbk invbl invbomb invbuflisted invcf invci invcin invcindent invcompatible invconfirm invconsk invconskey invcopyindent invcp invcscopetag invcscopeverbose invcst invcsverb invdeco invdelcombine invdg invdiff invdigraph invdisable invea inveb inved invedcompatible invek invendofline inveol invequalalways inverrorbells invesckeys invet invex invexpandtab invexrc invfen invfk invfkmap invfoldenable invgd invgdefault invguipty invhid invhidden invhk invhkmap invhkmapp invhkp invhls invhlsearch invic invicon invignorecase invim invimc invimcmdline invimd invincsearch invinf invinfercase invinsertmode invis invjoinspaces invjs invlazyredraw invlbr invlinebreak invlisp invlist invloadplugins invlpl invlz invma invmagic invmh invml invmod invmodeline invmodifiable invmodified invmore invmousef invmousefocus invmousehide invnu invnumber invpaste invpi invpreserveindent invpreviewwindow invprompt invpvw invreadonly invremap invrestorescreen invrevins invri invrightleft invrightleftcmd invrl invrlc invro invrs invru invruler invsb invsc invscb invscrollbind invscs invsecure invsft invshellslash invshelltemp invshiftround invshortname invshowcmd invshowfulltag invshowmatch invshowmode invsi invsm invsmartcase invsmartindent invsmarttab invsmd invsn invsol invspell invsplitbelow invsplitright invspr invsr invssl invsta invstartofline invstmp invswapfile invswf invta invtagbsearch invtagrelative invtagstack invtbi invtbidi invtbs invtermbidi invterse invtextauto invtextmode invtf invtgst invtildeop invtimeout invtitle invto invtop invtr invttimeout invttybuiltin invttyfast invtx invvb invvisualbell invwa invwarn invwb invweirdinvert invwfh invwildmenu invwinfixheight invwiv invwmnu invwrap invwrapscan invwrite invwriteany invwritebackup invws
|
||||
|
||||
" termcap codes (which can also be set) {{{2
|
||||
syn keyword vimOption contained t_AB t_AF t_al t_AL t_bc t_cd t_ce t_cl t_cm t_Co t_cs t_CS t_CV t_da t_db t_dl t_DL t_EI end insert mode (block cursor shape) *t_EI* *'t_EI'* t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'* t_so t_sr t_te t_ti t_ts t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_AB t_AF t_al t_AL t_bc t_cd t_ce t_Ce t_cl t_cm t_Co t_cs t_Cs t_CS t_CV t_da t_db t_dl t_DL t_EI end insert mode (block cursor shape) *t_EI* *'t_EI'* t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'* t_so t_sr t_te t_ti t_ts t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
|
||||
syn match vimOption contained "t_%1"
|
||||
syn match vimOption contained "t_#2"
|
||||
syn match vimOption contained "t_#4"
|
||||
@ -50,12 +50,12 @@ syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePo
|
||||
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
||||
|
||||
" Default highlighting groups {{{2
|
||||
syn keyword vimHLGroup contained Cursor CursorIM DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr Menu ModeMsg MoreMsg NonText Normal Question Scrollbar Search SignColumn SpecialKey StatusLine StatusLineNC Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
|
||||
syn keyword vimHLGroup contained Cursor CursorIM DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr Menu ModeMsg MoreMsg NonText Normal Question Scrollbar Search SignColumn SpecialKey SpellBad SpellLocal SpellRare StatusLine StatusLineNC Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
|
||||
syn match vimHLGroup contained "Conceal"
|
||||
syn case match
|
||||
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained add append argc argidx argv browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call char2nr cindent col confirm copy count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty errorlist escape eval eventhandler executable exists expand expr8 extend filereadable filewritable filter finddir findfile fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function get getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfontname getfperm getfsize getftime getftype getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has has_key hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputrestore inputsave inputsecret insert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime map maparg mapcheck match matchend matchlist matchstr max min mkdir mode nextnonblank nr2char prevnonblank range readfile remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify sort split strftime stridx string strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system tempname tolower toupper tr type values virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth writefile
|
||||
syn keyword vimFuncName contained add append argc argidx argv browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call char2nr cindent col confirm copy count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty errorlist escape eval eventhandler executable exists expand expr8 extend filereadable filewritable filter finddir findfile fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function get getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfontname getfperm getfsize getftime getftype getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has has_key hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputrestore inputsave inputsecret insert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime map maparg mapcheck match matchend matchlist matchstr max min mkdir mode nextnonblank nr2char prevnonblank range readfile remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify sort split strftime stridx string strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system taglist tempname tolower toupper tr type values virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth writefile
|
||||
|
||||
"--- syntax above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
|
@ -1,19 +1,21 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim spell file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2005 Mar 20
|
||||
" Last Change: 2005 Mar 22
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn match vimspellComment "^#.*"
|
||||
syn match vimspellError "^-.*"
|
||||
syn match vimspellError ".*"
|
||||
syn match vimspellRegion "^---$"
|
||||
syn match vimspellRegion "^\(-\l\l\)\+$"
|
||||
syn match vimspellError "^[^- #+=>].*"
|
||||
syn match vimspellOK "^!\=[>+]\=[[:alpha:]]\S*"
|
||||
syn match vimspellOK "^!\=+\S*"
|
||||
syn match vimspellError "\s\+$"
|
||||
syn match vimspellOK "^$"
|
||||
syn match vimspellComment "^#.*"
|
||||
|
||||
" Define the default highlighting.
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
@ -83,6 +83,7 @@ EXE_dependencies = \
|
||||
regexp.obj \
|
||||
screen.obj \
|
||||
search.obj \
|
||||
spell.obj \
|
||||
syntax.obj \
|
||||
tag.obj \
|
||||
term.obj \
|
||||
|
@ -392,6 +392,7 @@ OBJ = \
|
||||
$(OUTDIR)/regexp.o \
|
||||
$(OUTDIR)/screen.o \
|
||||
$(OUTDIR)/search.o \
|
||||
$(OUTDIR)/spell.o \
|
||||
$(OUTDIR)/syntax.o \
|
||||
$(OUTDIR)/tag.o \
|
||||
$(OUTDIR)/term.o \
|
||||
|
@ -15,8 +15,8 @@ OBJS = o.buffer o.charset o.diff o.digraph o.edit o.eval o.ex_cmds o.ex_cmds2
|
||||
o.ex_docmd o.ex_eval o.ex_getln o.fileio o.fold o.getchar o.hashtable o.main o.mark o.mbyte \
|
||||
o.memfile o.memline o.menu o.message o.misc1 o.misc2 o.move \
|
||||
o.normal o.ops o.option o.quickfix o.regexp o.screen o.search \
|
||||
o.syntax o.tag o.term o.termlib o.ui o.undo o.version o.window \
|
||||
o.os_riscos o.swis o.gui o.gui_riscos
|
||||
o.spell o.syntax o.tag o.term o.termlib o.ui o.undo o.version \
|
||||
o.window o.os_riscos o.swis o.gui o.gui_riscos
|
||||
|
||||
Vim: $(OBJS)
|
||||
$(GCC) -o Vim $(OBJS)
|
||||
@ -109,6 +109,8 @@ o.screen: c.screen
|
||||
|
||||
o.search: c.search
|
||||
|
||||
o.spell: c.spell
|
||||
|
||||
o.syntax: c.syntax
|
||||
|
||||
o.tag: c.tag
|
||||
|
@ -110,6 +110,7 @@ ObjFiles = \
|
||||
$(INTDIR)\regexp.obj\
|
||||
$(INTDIR)\screen.obj\
|
||||
$(INTDIR)\search.obj\
|
||||
$(INTDIR)\spell.obj\
|
||||
$(INTDIR)\syntax.obj\
|
||||
$(INTDIR)\tag.obj\
|
||||
$(INTDIR)\term.obj\
|
||||
|
103
src/charset.c
103
src/charset.c
@ -130,12 +130,13 @@ buf_init_chartab(buf, global)
|
||||
*/
|
||||
vim_memset(buf->b_chartab, 0, (size_t)32);
|
||||
#ifdef FEAT_MBYTE
|
||||
for (c = 0; c < 256; ++c)
|
||||
{
|
||||
/* double-byte characters are probably word characters */
|
||||
if (enc_dbcs != 0 && MB_BYTE2LEN(c) == 2)
|
||||
SET_CHARTAB(buf, c);
|
||||
}
|
||||
if (enc_dbcs != 0)
|
||||
for (c = 0; c < 256; ++c)
|
||||
{
|
||||
/* double-byte characters are probably word characters */
|
||||
if (MB_BYTE2LEN(c) == 2)
|
||||
SET_CHARTAB(buf, c);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_LISP
|
||||
@ -913,6 +914,96 @@ vim_iswordc_buf(p, buf)
|
||||
# endif
|
||||
return (GET_CHARTAB(buf, *p) != 0);
|
||||
}
|
||||
|
||||
static char spell_chartab[256];
|
||||
|
||||
/*
|
||||
* Init the chartab used for spelling. Only depends on 'encoding'.
|
||||
* Called once while starting up and when 'encoding' was changed.
|
||||
* Unfortunately, we can't use isalpha() here, since the current locale may
|
||||
* differ from 'encoding'.
|
||||
*/
|
||||
void
|
||||
init_spell_chartab()
|
||||
{
|
||||
int i;
|
||||
|
||||
/* ASCII is always the same, no matter what 'encoding' is used.
|
||||
* EBCDIC is not supported! */
|
||||
for (i = 0; i < '0'; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
/* We include numbers. A word shouldn't start with a number, but handling
|
||||
* that is done separately. */
|
||||
for ( ; i <= '9'; ++i)
|
||||
spell_chartab[i] = TRUE;
|
||||
for ( ; i < 'A'; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
for ( ; i <= 'Z'; ++i)
|
||||
spell_chartab[i] = TRUE;
|
||||
for ( ; i < 'a'; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
for ( ; i <= 'z'; ++i)
|
||||
spell_chartab[i] = TRUE;
|
||||
#ifdef FEAT_MBYTE
|
||||
if (enc_dbcs)
|
||||
{
|
||||
/* DBCS: assume double-wide characters are word characters. */
|
||||
for ( ; i <= 255; ++i)
|
||||
if (MB_BYTE2LEN(i) == 2)
|
||||
spell_chartab[i] = TRUE;
|
||||
else
|
||||
spell_chartab[i] = FALSE;
|
||||
}
|
||||
else if (STRCMP(p_enc, "cp850") == 0)
|
||||
#endif
|
||||
#if defined(MSDOS) || defined(FEAT_MBYTE)
|
||||
{
|
||||
/* cp850, MS-DOS */
|
||||
for ( ; i < 128; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
for ( ; i <= 0x9a; ++i)
|
||||
spell_chartab[i] = TRUE;
|
||||
for ( ; i < 0xa0; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
for ( ; i <= 0xa5; ++i)
|
||||
spell_chartab[i] = TRUE;
|
||||
for ( ; i <= 255; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
}
|
||||
#endif
|
||||
#ifdef FEAT_MBYTE
|
||||
else
|
||||
#endif
|
||||
#if defined(FEAT_MBYTE) || !defined(MSDOS)
|
||||
{
|
||||
/* Rough guess: anything we don't recognize assumes word characters
|
||||
* like latin1. */
|
||||
for ( ; i < 0xc0; ++i)
|
||||
spell_chartab[i] = FALSE;
|
||||
for ( ; i <= 255; ++i)
|
||||
spell_chartab[i] = TRUE;
|
||||
# ifdef FEAT_MBYTE
|
||||
if (STRCMP(p_enc, "latin1") == 0)
|
||||
# endif
|
||||
spell_chartab[0xf7] = FALSE; /* divide-by */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if "p" points to a word character.
|
||||
* This only depends on 'encoding', not on 'iskeyword'.
|
||||
*/
|
||||
int
|
||||
spell_iswordc(p)
|
||||
char_u *p;
|
||||
{
|
||||
# ifdef FEAT_MBYTE
|
||||
if (has_mbyte && MB_BYTE2LEN(*p) > 1)
|
||||
return mb_get_class(p) >= 2;
|
||||
# endif
|
||||
return spell_chartab[*p];
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -362,7 +362,7 @@ EXTERN int mouse_dragging INIT(= 0); /* extending Visual area with
|
||||
* When the DEC mouse has been pressed but not yet released we enable
|
||||
* automatic querys for the mouse position.
|
||||
*/
|
||||
EXTERN int WantQueryMouse INIT(= 0);
|
||||
EXTERN int WantQueryMouse INIT(= FALSE);
|
||||
# endif
|
||||
|
||||
# ifdef FEAT_GUI
|
||||
|
@ -3096,7 +3096,7 @@ iconv_string(vcp, str, slen, unconvlenp)
|
||||
else
|
||||
{
|
||||
l = (*mb_ptr2len_check)((char_u *)from);
|
||||
if (l > fromlen)
|
||||
if (l > (int)fromlen)
|
||||
l = fromlen;
|
||||
}
|
||||
from += l;
|
||||
|
@ -3146,7 +3146,7 @@ update_mouseshape(shape_idx)
|
||||
int new_mouse_shape;
|
||||
|
||||
/* Only works in GUI mode. */
|
||||
if (!gui.in_use)
|
||||
if (!gui.in_use || gui.starting)
|
||||
return;
|
||||
|
||||
/* Postpone the updating when more is to come. Speeds up executing of
|
||||
|
12
src/option.c
12
src/option.c
@ -2029,7 +2029,7 @@ static struct vimoption
|
||||
(char_u *)NULL, PV_NONE,
|
||||
#endif
|
||||
{(char_u *)FALSE, (char_u *)0L}},
|
||||
{"spelllang", "spl", P_STRING|P_ALLOCED|P_VI_DEF|P_COMMA,
|
||||
{"spelllang", "spl", P_STRING|P_ALLOCED|P_VI_DEF|P_COMMA|P_RBUF,
|
||||
#ifdef FEAT_SYN_HL
|
||||
(char_u *)&p_spl, PV_SPL,
|
||||
{(char_u *)"", (char_u *)0L}
|
||||
@ -2825,6 +2825,11 @@ set_init_1()
|
||||
/* Must be before option_expand(), because that one needs vim_isIDc() */
|
||||
didset_options();
|
||||
|
||||
#ifdef FEAT_SYN_HL
|
||||
/* Use the current chartab for the generic chartab. */
|
||||
init_spell_chartab();
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_LINEBREAK
|
||||
/*
|
||||
* initialize the table for 'breakat'.
|
||||
@ -5558,7 +5563,8 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
||||
errmsg = e_invarg;
|
||||
else
|
||||
check_mouse_termcode();
|
||||
setmouse(); /* may switch it on again */
|
||||
if (termcap_active)
|
||||
setmouse(); /* may switch it on again */
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -5656,7 +5662,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_SYN_HL
|
||||
/* When 'spellang' is set, load the wordlists. */
|
||||
/* When 'spelllang' is set, load the wordlists. */
|
||||
else if (varp == &(curbuf->b_p_spl))
|
||||
{
|
||||
errmsg = did_set_spelllang(curbuf);
|
||||
|
@ -4273,7 +4273,7 @@ WaitForChar(msec)
|
||||
/* May need to query the mouse position. */
|
||||
if (WantQueryMouse)
|
||||
{
|
||||
WantQueryMouse = 0;
|
||||
WantQueryMouse = FALSE;
|
||||
mch_write((char_u *)IF_EB("\033[1'|", ESC_STR "[1'|"), 5);
|
||||
}
|
||||
#endif
|
||||
|
@ -3600,7 +3600,7 @@ win_line(wp, lnum, startrow, endrow)
|
||||
1);
|
||||
|
||||
spell_attr = 0;
|
||||
iswordc = vim_iswordc_buf(prev_ptr, wp->w_buffer);
|
||||
iswordc = spell_iswordc(prev_ptr);
|
||||
if (iswordc && !prev_iswordc)
|
||||
{
|
||||
word_end = v + spell_check(wp, prev_ptr,
|
||||
|
@ -1424,6 +1424,7 @@ struct file_buffer
|
||||
garray_T b_syn_patterns; /* table for syntax patterns */
|
||||
garray_T b_syn_clusters; /* table for syntax clusters */
|
||||
int b_spell_cluster_id; /* @Spell cluster ID or 0 */
|
||||
int b_nospell_cluster_id; /* @NoSpell cluster ID or 0 */
|
||||
int b_syn_containedin; /* TRUE when there is an item with a
|
||||
"containedin" argument */
|
||||
int b_syn_sync_flags; /* flags about how to sync */
|
||||
|
17
src/syntax.c
17
src/syntax.c
@ -2202,9 +2202,20 @@ syn_current_attr(syncing, displaying, can_spell)
|
||||
* done in the current item.
|
||||
*/
|
||||
|
||||
/* Always do spelling if there is no @Spell cluster. */
|
||||
/* If there is no @Spell cluster: Do spelling for items without
|
||||
* @NoSpell. Otherwise only in items with @Spell */
|
||||
if (syn_buf->b_spell_cluster_id == 0)
|
||||
*can_spell = TRUE;
|
||||
{
|
||||
if (syn_buf->b_nospell_cluster_id == 0 || current_trans_id == 0)
|
||||
*can_spell = TRUE;
|
||||
else
|
||||
{
|
||||
sps.inc_tag = 0;
|
||||
sps.id = syn_buf->b_nospell_cluster_id;
|
||||
sps.cont_in_list = NULL;
|
||||
*can_spell = !in_id_list(sip, sip->si_cont_list, &sps, 0);
|
||||
}
|
||||
}
|
||||
else if (current_trans_id == 0)
|
||||
*can_spell = FALSE;
|
||||
else
|
||||
@ -5094,6 +5105,8 @@ syn_add_cluster(name)
|
||||
|
||||
if (STRICMP(name, "Spell") == 0)
|
||||
curbuf->b_spell_cluster_id = len + SYNID_CLUSTER;
|
||||
if (STRICMP(name, "NoSpell") == 0)
|
||||
curbuf->b_nospell_cluster_id = len + SYNID_CLUSTER;
|
||||
|
||||
return len + SYNID_CLUSTER;
|
||||
}
|
||||
|
@ -4521,23 +4521,23 @@ check_termcode(max_offset, buf, buflen)
|
||||
{
|
||||
held_button = mouse_code;
|
||||
mouse_code |= MOUSE_DRAG;
|
||||
WantQueryMouse = 1;
|
||||
WantQueryMouse = TRUE;
|
||||
}
|
||||
is_drag = TRUE;
|
||||
showmode();
|
||||
break;
|
||||
case 2: mouse_code = MOUSE_LEFT;
|
||||
WantQueryMouse = 1;
|
||||
WantQueryMouse = TRUE;
|
||||
break;
|
||||
case 3: mouse_code = MOUSE_RELEASE | MOUSE_LEFT;
|
||||
break;
|
||||
case 4: mouse_code = MOUSE_MIDDLE;
|
||||
WantQueryMouse = 1;
|
||||
WantQueryMouse = TRUE;
|
||||
break;
|
||||
case 5: mouse_code = MOUSE_RELEASE | MOUSE_MIDDLE;
|
||||
break;
|
||||
case 6: mouse_code = MOUSE_RIGHT;
|
||||
WantQueryMouse = 1;
|
||||
WantQueryMouse = TRUE;
|
||||
break;
|
||||
case 7: mouse_code = MOUSE_RELEASE | MOUSE_RIGHT;
|
||||
break;
|
||||
|
@ -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 Mar 20)"
|
||||
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Mar 20, compiled "
|
||||
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Mar 22)"
|
||||
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Mar 22, compiled "
|
||||
|
Loading…
x
Reference in New Issue
Block a user