mirror of
https://github.com/zoriya/vim.git
synced 2026-01-06 06:18:14 +00:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
522f9aebff | ||
|
|
ce35c88ade | ||
|
|
e9edd7fbdd | ||
|
|
76f7fd3df3 | ||
|
|
b560983d2f | ||
|
|
9729301aa0 | ||
|
|
0acc5618f6 | ||
|
|
35ee452de0 | ||
|
|
01b2a23b95 | ||
|
|
44286ca3c4 | ||
|
|
3d64a3176c | ||
|
|
50f42cadb1 | ||
|
|
734d99804b | ||
|
|
37a02ca1c2 | ||
|
|
19fd09a78f | ||
|
|
54ee2b8741 | ||
|
|
4da95d377f |
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.3. Last change: 2011 Jun 19
|
||||
*eval.txt* For Vim version 7.3. Last change: 2011 Jul 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -2277,7 +2277,8 @@ char2nr({expr}) *char2nr()*
|
||||
< The current 'encoding' is used. Example for "utf-8": >
|
||||
char2nr("<22>") returns 225
|
||||
char2nr("<22>"[0]) returns 195
|
||||
< |nr2char()| does the opposite.
|
||||
< A combining character is a separate character.
|
||||
|nr2char()| does the opposite.
|
||||
|
||||
cindent({lnum}) *cindent()*
|
||||
Get the amount of indent for line {lnum} according the C
|
||||
@@ -5968,7 +5969,7 @@ virtcol({expr}) *virtcol()*
|
||||
When 'virtualedit' is used {expr} can be [lnum, col, off], where
|
||||
"off" is the offset in screen columns from the start of the
|
||||
character. E.g., a position within a <Tab> or after the last
|
||||
character.
|
||||
character. When "off" is omitted zero is used.
|
||||
When Virtual editing is active in the current mode, a position
|
||||
beyond the end of the line can be returned. |'virtualedit'|
|
||||
The accepted positions are:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*indent.txt* For Vim version 7.3. Last change: 2011 May 31
|
||||
*indent.txt* For Vim version 7.3. Last change: 2011 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -486,9 +486,10 @@ The examples below assume a 'shiftwidth' of 4.
|
||||
) )
|
||||
<
|
||||
*java-cinoptions* *java-indenting* *cino-j*
|
||||
jN Indent java anonymous classes correctly. The value 'N' is
|
||||
currently unused but must be non-zero (e.g. 'j1'). 'j1' will
|
||||
indent for example the following code snippet correctly: >
|
||||
jN Indent Java anonymous classes correctly. Also works well for
|
||||
Javascript. The value 'N' is currently unused but must be
|
||||
non-zero (e.g. 'j1'). 'j1' will indent for example the
|
||||
following code snippet correctly: >
|
||||
|
||||
object.add(new ChangeListener() {
|
||||
public void stateChanged(ChangeEvent e) {
|
||||
@@ -499,7 +500,8 @@ The examples below assume a 'shiftwidth' of 4.
|
||||
*javascript-cinoptions* *javascript-indenting* *cino-J*
|
||||
JN Indent JavaScript object declarations correctly by not confusing
|
||||
them with labels. The value 'N' is currently unused but must be
|
||||
non-zero (e.g. 'J1'). >
|
||||
non-zero (e.g. 'J1'). If you enable this you probably also want
|
||||
to set |cino-j|. >
|
||||
|
||||
var bar = {
|
||||
foo: {
|
||||
|
||||
@@ -1211,17 +1211,21 @@ completion can be enabled:
|
||||
|
||||
-complete=augroup autocmd groups
|
||||
-complete=buffer buffer names
|
||||
-complete=color color schemes
|
||||
-complete=command Ex command (and arguments)
|
||||
-complete=compiler compilers
|
||||
-complete=cscope |:cscope| suboptions
|
||||
-complete=dir directory names
|
||||
-complete=environment environment variable names
|
||||
-complete=event autocommand events
|
||||
-complete=expression Vim expression
|
||||
-complete=file file and directory names
|
||||
-complete=file_in_path file and directory names in |'path'|
|
||||
-complete=filetype filetype names |'filetype'|
|
||||
-complete=function function name
|
||||
-complete=help help subjects
|
||||
-complete=highlight highlight groups
|
||||
-complete=locale locale names (as output of locale -a)
|
||||
-complete=mapping mapping name
|
||||
-complete=menu menus
|
||||
-complete=option options
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*mbyte.txt* For Vim version 7.3. Last change: 2011 Feb 01
|
||||
*mbyte.txt* For Vim version 7.3. Last change: 2011 Jul 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||
@@ -1306,8 +1306,8 @@ character. However, search patterns may not match on an overlong sequence.
|
||||
character.) An exception is NUL (zero) which is displayed as "<00>".
|
||||
|
||||
In the file and buffer the full range of Unicode characters can be used (31
|
||||
bits). However, displaying only works for 16 bit characters, and only for the
|
||||
characters present in the selected font.
|
||||
bits). However, displaying only works for the characters present in the
|
||||
selected font.
|
||||
|
||||
Useful commands:
|
||||
- "ga" shows the decimal, hexadecimal and octal value of the character under
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.3. Last change: 2011 Jun 12
|
||||
*options.txt* For Vim version 7.3. Last change: 2011 Jul 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -6002,7 +6002,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
{not in Vi}
|
||||
When on, use temp files for shell commands. When off use a pipe.
|
||||
When using a pipe is not possible temp files are used anyway.
|
||||
Currently a pipe is only supported on Unix. You can check it with: >
|
||||
Currently a pipe is only supported on Unix and MS-Windows 2K and
|
||||
later. You can check it with: >
|
||||
:if has("filterpipe")
|
||||
< The advantage of using a pipe is that nobody can read the temp file
|
||||
and the 'shell' command does not need to support redirection.
|
||||
|
||||
@@ -1036,11 +1036,9 @@ x A single character, with no special meaning, matches itself
|
||||
These items only work for 8-bit characters.
|
||||
*/[[=* *[==]*
|
||||
- An equivalence class. This means that characters are matched that
|
||||
have almost the same meaning, e.g., when ignoring accents. The form
|
||||
is:
|
||||
have almost the same meaning, e.g., when ignoring accents. This
|
||||
only works for Unicode, latin1 and latin9. The form is:
|
||||
[=a=]
|
||||
Currently this is only implemented for latin1. Also works for the
|
||||
latin1 characters in utf-8 and latin9.
|
||||
*/[[.* *[..]*
|
||||
- A collation element. This currently simply accepts a single
|
||||
character in the form:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.3. Last change: 2011 May 06
|
||||
*syntax.txt* For Vim version 7.3. Last change: 2011 Jul 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -866,13 +866,13 @@ used.
|
||||
Detecting whether a file is csh or tcsh is notoriously hard. Some systems
|
||||
symlink /bin/csh to /bin/tcsh, making it almost impossible to distinguish
|
||||
between csh and tcsh. In case VIM guesses wrong you can set the
|
||||
"filetype_csh" variable. For using csh: >
|
||||
|
||||
:let filetype_csh = "csh"
|
||||
"filetype_csh" variable. For using csh: *g:filetype_csh*
|
||||
>
|
||||
:let g:filetype_csh = "csh"
|
||||
|
||||
For using tcsh: >
|
||||
|
||||
:let filetype_csh = "tcsh"
|
||||
:let g:filetype_csh = "tcsh"
|
||||
|
||||
Any script with a tcsh extension or a standard tcsh filename (.tcshrc,
|
||||
tcsh.tcshrc, tcsh.login) will have filetype tcsh. All other tcsh/csh scripts
|
||||
@@ -2372,6 +2372,12 @@ This will make the syntax synchronization start 50 lines before the first
|
||||
displayed line. The default value is 10. The disadvantage of using a larger
|
||||
number is that redrawing can become slow.
|
||||
|
||||
Vim tries to guess what type a ".r" file is. If it can't be detected (from
|
||||
comment lines), the default is "r". To make the default rexx add this line to
|
||||
your .vimrc: *g:filetype_r*
|
||||
>
|
||||
:let g:filetype_r = "r"
|
||||
|
||||
|
||||
RUBY *ruby.vim* *ft-ruby-syntax*
|
||||
|
||||
|
||||
@@ -5096,6 +5096,7 @@ cpo-+ options.txt /*cpo-+*
|
||||
cpo-- options.txt /*cpo--*
|
||||
cpo-. options.txt /*cpo-.*
|
||||
cpo-/ options.txt /*cpo-\/*
|
||||
cpo-; options.txt /*cpo-;*
|
||||
cpo-< options.txt /*cpo-<*
|
||||
cpo-> options.txt /*cpo->*
|
||||
cpo-A options.txt /*cpo-A*
|
||||
@@ -5784,6 +5785,8 @@ g:decada.Error_Format ft_ada.txt /*g:decada.Error_Format*
|
||||
g:decada.Make() ft_ada.txt /*g:decada.Make()*
|
||||
g:decada.Make_Command ft_ada.txt /*g:decada.Make_Command*
|
||||
g:decada.Unit_Name() ft_ada.txt /*g:decada.Unit_Name()*
|
||||
g:filetype_csh syntax.txt /*g:filetype_csh*
|
||||
g:filetype_r syntax.txt /*g:filetype_r*
|
||||
g:gnat ft_ada.txt /*g:gnat*
|
||||
g:gnat.Error_Format ft_ada.txt /*g:gnat.Error_Format*
|
||||
g:gnat.Find() ft_ada.txt /*g:gnat.Find()*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.3. Last change: 2011 Jun 19
|
||||
*todo.txt* For Vim version 7.3. Last change: 2011 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -40,52 +40,11 @@ Crash in autocomplete, valgrind log. (Greg Weber, 2011 Apr 22)
|
||||
|
||||
Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
|
||||
|
||||
Patch to fix gj with count. (James Vega, 2011 Jun 13)
|
||||
|
||||
Patch to disallow fork() when __APPLE__ is defined. (Hisashi T Fujinaka, 2010
|
||||
Nov 25)
|
||||
|
||||
7 Output for ":scriptnames" and ":breaklist" should shorten the file names:
|
||||
use "~/" when possible.
|
||||
Patch by Jean-Rene David, 2011 May 1.
|
||||
|
||||
Cindent wrong after patch 7.3.202. (Lech Lorens, issue 9)
|
||||
|
||||
Patch for cindent fix with closing brace placement, including tests.
|
||||
(Lech Lorens, issue 10, 2011 Jun 12)
|
||||
|
||||
Patch for better #if 0 syntax highlighting for C code. (Ben Schmidt, 2011 Jan
|
||||
20)
|
||||
Change to C syntax folding to make it work much faster, but a bit less
|
||||
reliable. (Lech Lorens, 2009 Nov 9) Enable with an option?
|
||||
Most time is spent in in_id_list().
|
||||
Updated to merge both patches. (Ben Schmidt, 2011 May 2)
|
||||
|
||||
GTK: Patch to fix menu popping down. (Hong Xu, 2010 Dec 4, Dec 5)
|
||||
Update 2011 Feb 3.
|
||||
|
||||
Patch to use pipes on Win32. (Vincent Berthoux, 2011 Feb 28)
|
||||
Update Mar 1 using 'shelltemp'.
|
||||
|
||||
Patch to fix CTRL-R CTRL-W in the command line when the cursor is not at the
|
||||
end. (Tyru, 2011 Jun 6)
|
||||
|
||||
Patch to support UTF-8 for Hangul. (Shawn Y.H. Kim, 2011 May 1)
|
||||
Needs more work.
|
||||
|
||||
Patch to make ";" not get stuck on "t" command. (Christian Brabandt, 2011 May
|
||||
23)
|
||||
|
||||
Patch to do more testing of Javascript indenting. Some items are srong.
|
||||
(Luc Deschenaux, 2011 Jun 14)
|
||||
|
||||
"gh<Del>" deletes the current line, except when it's the last line.
|
||||
Hint by Christian Brabandt, 2011 Mar 22
|
||||
|
||||
"echo 'abc' > ''" returns 0 or 1, depending on 'ignorecase'.
|
||||
mb_strnicmp() checks for illegal and truncated bytes are wrong.
|
||||
Should also not assume that byte length is equal before case folding.
|
||||
Patch by Ivan Krasilnikov, 2011 May 27.
|
||||
With "unamedplus" in 'clipboard' pasting in Visual mode causes error for empty
|
||||
register. (Michael Seiwald, 2011 Jun 28)
|
||||
|
||||
The :z command doesn't work exactly as it should. (ChangZhuo Chen, 2011 Mar 2)
|
||||
Compare with how old Vi works and with posix spec. terminal is 80 x 24,
|
||||
@@ -94,6 +53,7 @@ Compare with how old Vi works and with posix spec. terminal is 80 x 24,
|
||||
'cursorline' is displayed too short when there are concealed characters and
|
||||
'list' is set. (Dennis Preiser)
|
||||
Patch 7.3.116 was the wrong solution.
|
||||
Christian Brabandt has another incomplete patch. (2011 Jul 13)
|
||||
|
||||
With concealed text mouse click doesn't put the cursor in the right position.
|
||||
(Herb Sitz) Fix by Christian Brabandt, 2011 Jun 16. Doesn't work properly,
|
||||
@@ -119,8 +79,13 @@ Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
|
||||
Patch to automatically get version number into NSIS. (Guopeng Wen, 2011 May
|
||||
27)
|
||||
|
||||
Patch to add more command completions (Dominique Pelle, 2011 Jun 25)
|
||||
|
||||
Patch to have GvimExt not use "edit with existing Vim" entries.
|
||||
(Jerome Vuarand, 2011 Jun 22)
|
||||
|
||||
Patch to make character classes work with multi-byte characters.
|
||||
(Dominique Pelle, 2011 May 31)
|
||||
(Dominique Pelle, 2011 May 31, update July 11)
|
||||
|
||||
In GTK Gvim, setting 'lines' and 'columns' to 99999 causes a crash (Tony
|
||||
Mechelynck, 2011 Apr 25). Can reproduce the crash sometimes:
|
||||
@@ -143,6 +108,9 @@ Need for CursorHold that retriggers. Use a key that doesn't do anything, or a
|
||||
function that resets did_cursorhold.
|
||||
Patch by Christian Brabandt, 2011 May 6.
|
||||
|
||||
popup completion menu closes quickly when there is a fold in the buffer. (Jan
|
||||
Christoph Ebersbach, 2011 Jul 3)
|
||||
|
||||
CursorHold repeats typed key when it's the start of a mapping.
|
||||
(Will Gray, 2011 Mar 23)
|
||||
Christian Brabandt: problem is that OP_PENDING isn't set.
|
||||
@@ -192,6 +160,10 @@ Bug in try/catch: return with invalid compare throws error that isn't caught.
|
||||
Highlighting stops working after changing it many times. Script to reproduce
|
||||
it: Pablo Contreras, 2010 Oct 12 Windows XP and 7. Font is never freed?
|
||||
|
||||
When setting a local option value from the global value, add a script ID that
|
||||
indicates this, so that ":verbose set" can give a hint. Check with options in
|
||||
the help file.
|
||||
|
||||
After patch 7.3.097 still get E15. (Yukihiro Nakadaira, 2011 Jan 18)
|
||||
Also for another example (ZyX, 2011 Jan 24)
|
||||
|
||||
@@ -251,6 +223,9 @@ New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30)
|
||||
"L'Italie" noted as a spell error at start of the sentence. (Dominique Pelle,
|
||||
2011 Feb 27)
|
||||
|
||||
Patch to fail if configure can't find an interface, such as Python.
|
||||
(Shlomi Fish, 2011 Jul 11)
|
||||
|
||||
Copy/paste between Vim and Google chrome doesn't work well for multi-byte
|
||||
characters. (Ben Haskell, 2010 Sep 17)
|
||||
When putting text in the cut buffer (when exiting) and conversion doesn't work
|
||||
@@ -341,7 +316,7 @@ When writing a file > 2Gbyte, the reported number of bytes is negative.
|
||||
(Antonio Colombo, 2010 Dec 18)
|
||||
|
||||
Patch: Let rare word highlighting overrule good word highlighting.
|
||||
(Jakson A. Aquino, 2010 Jul 30)
|
||||
(Jakson A. Aquino, 2010 Jul 30, again 2011 Jul 2)
|
||||
|
||||
Patch to make more characters work in dialogs. (Yankwei Jia, 2010 Aug 4)
|
||||
|
||||
@@ -429,6 +404,9 @@ characters. (2010 Aug 14, bootleq)
|
||||
|
||||
Problem with stop directory in findfile(). (Adam Simpkins, 2009 Aug 26)
|
||||
|
||||
Using ']' as the end of a range in a pattern requires double escaping:
|
||||
/[@-\\]] (Andy Wokula, 2011 Jun 28)
|
||||
|
||||
Undo problem: line not removed as expected when using setline() from Insert
|
||||
mode. (Israel Chauca, 2010 May 13, more in second msg)
|
||||
Break undo when CTRL-R = changes the text? Or save more lines?
|
||||
@@ -1525,6 +1503,7 @@ Awaiting updated patches:
|
||||
- Patch for 'breakindent' option: repeat indent for wrapped line. (Vaclav
|
||||
Smilauer, 2004 Sep 13, fix Oct 31, update 2007 May 30)
|
||||
Version for latest MacVim: Tobia Conforto, 2009 Nov 23
|
||||
More recent version: https://retracile.net/wiki/VimBreakIndent
|
||||
8 Add a few more command names to the menus. Patch from Jiri Brezina
|
||||
(28 feb 2002). Will mess the translations...
|
||||
7 ATTENTION dialog choices are more logical when "Delete it' appears
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2011 Jun 13
|
||||
" Last Change: 2011 Jul 17
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -1588,8 +1588,13 @@ func! s:FTr()
|
||||
endif
|
||||
endfor
|
||||
|
||||
" Nothing recognized, assume Rexx
|
||||
setf rexx
|
||||
" Nothing recognized, use user default or assume Rexx
|
||||
if exists("g:filetype_r")
|
||||
exe "setf " . g:filetype_r
|
||||
else
|
||||
" Rexx used to be the default, but R appears to be much more popular.
|
||||
setf r
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" Remind
|
||||
|
||||
@@ -13,7 +13,10 @@ set cpo&vim
|
||||
|
||||
let b:undo_ftplugin = "setl fo< tw< cole< cocu<"
|
||||
|
||||
setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=nc
|
||||
setlocal formatoptions+=tcroql textwidth=78
|
||||
if has("conceal")
|
||||
setlocal cole=2 cocu=nc
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: DTD (Document Type Definition for XML)
|
||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2010-09-21
|
||||
" Latest Revision: 2011-07-08
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
@@ -52,7 +52,7 @@ function s:indent_to_innermost_parentheses(line, end)
|
||||
let end = a:end
|
||||
let parentheses = [end - 1]
|
||||
while token != ""
|
||||
let [token, end] = s:lex(a:line, end, '^\%([(),|]\|[A-Za-z0-9_-]\+\|#PCDATA\|%[A-Za-z0-9_-]\+;\)[?*+]\=')
|
||||
let [token, end] = s:lex(a:line, end, '^\%([(),|]\|[A-Za-z0-9_-]\+\|#P\=CDATA\|%[A-Za-z0-9_-]\+;\)[?*+]\=')
|
||||
if token[0] == '('
|
||||
call add(parentheses, end - 1)
|
||||
elseif token[0] == ')'
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
" Vim syntax file
|
||||
" Language: BIND zone files (RFC1035)
|
||||
" Language: BIND zone files (RFC 1035)
|
||||
" Maintainer: Julian Mehnle <julian@mehnle.net>
|
||||
" URL: http://www.mehnle.net/source/odds+ends/vim/syntax/
|
||||
" Last Change: Thu 2006-04-20 12:30:45 UTC
|
||||
" Last Change: Thu 2011-07-16 20:42:00 UTC
|
||||
"
|
||||
" Based on an earlier version by Вячеслав Горбанев (Slava Gorbanev), with
|
||||
" heavy modifications.
|
||||
"
|
||||
" $Id: bindzone.vim,v 1.2 2006/04/20 22:06:21 vimboss Exp $
|
||||
" $Id: bindzone.vim 12 2011-07-16 21:09:57Z julian $
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -23,7 +23,7 @@ syn case match
|
||||
syn region zoneRRecord start=/^/ end=/$/ contains=zoneOwnerName,zoneSpecial,zoneTTL,zoneClass,zoneRRType,zoneComment,zoneUnknown
|
||||
|
||||
syn match zoneDirective /^\$ORIGIN\s\+/ nextgroup=zoneOrigin,zoneUnknown
|
||||
syn match zoneDirective /^\$TTL\s\+/ nextgroup=zoneNumber,zoneUnknown
|
||||
syn match zoneDirective /^\$TTL\s\+/ nextgroup=zoneTTL,zoneUnknown
|
||||
syn match zoneDirective /^\$INCLUDE\s\+/ nextgroup=zoneText,zoneUnknown
|
||||
syn match zoneDirective /^\$GENERATE\s/
|
||||
|
||||
@@ -34,9 +34,9 @@ syn match zoneOrigin contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\
|
||||
syn match zoneDomain contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\^`{|}~]\+\(\s\|;\|$\)\@=/
|
||||
|
||||
syn match zoneSpecial contained /^[@*.]\s/
|
||||
syn match zoneTTL contained /\<\d[0-9HhWwDd]*\>/ nextgroup=zoneClass,zoneRRType skipwhite
|
||||
syn keyword zoneClass contained IN CHAOS nextgroup=zoneRRType,zoneTTL skipwhite
|
||||
syn keyword zoneRRType contained A AAAA CNAME HINFO MX NS PTR SOA SRV TXT nextgroup=zoneRData skipwhite
|
||||
syn match zoneTTL contained /\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite
|
||||
syn keyword zoneClass contained IN CHAOS nextgroup=zoneRRType,zoneTTL skipwhite
|
||||
syn keyword zoneRRType contained A AAAA CNAME DNAME HINFO MX NS PTR SOA SRV TXT SPF nextgroup=zoneRData skipwhite
|
||||
syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown
|
||||
|
||||
syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/
|
||||
@@ -66,7 +66,7 @@ syn match zoneNumber contained /\<[0-9]\+\(\s\|;\|$\)\@=/
|
||||
syn match zoneSerial contained /\<[0-9]\{9,10}\(\s\|;\|$\)\@=/
|
||||
|
||||
syn match zoneErrParen /)/
|
||||
syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneNumber,zoneComment
|
||||
syn region zoneParen contained start="(" end=")" contains=zoneSerial,zoneTTL,zoneNumber,zoneComment
|
||||
syn match zoneComment /;.*/
|
||||
|
||||
" Define the default highlighting.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: C
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2009 Nov 17
|
||||
" Last Change: 2011 May 2
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -72,7 +72,7 @@ endif
|
||||
" This should be before cErrInParen to avoid problems with #define ({ xxx })
|
||||
if exists("c_curly_error")
|
||||
syntax match cCurlyError "}"
|
||||
syntax region cBlock start="{" end="}" contains=ALLBUT,cCurlyError,@cParenGroup,cErrInParen,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell fold
|
||||
syntax region cBlock start="{" end="}" contains=ALLBUT,cBadBlock,cCurlyError,@cParenGroup,cErrInParen,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell fold
|
||||
else
|
||||
syntax region cBlock start="{" end="}" transparent fold
|
||||
endif
|
||||
@@ -80,31 +80,33 @@ endif
|
||||
"catch errors caused by wrong parenthesis and brackets
|
||||
" also accept <% for {, %> for }, <: for [ and :> for ] (C99)
|
||||
" But avoid matching <::.
|
||||
syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom
|
||||
syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom
|
||||
if exists("c_no_curly_error")
|
||||
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell
|
||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cCppString,@Spell
|
||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||
syn match cParenError display ")"
|
||||
syn match cErrInParen display contained "^[{}]\|^<%\|^%>"
|
||||
elseif exists("c_no_bracket_error")
|
||||
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell
|
||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cCppString,@Spell
|
||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||
syn match cParenError display ")"
|
||||
syn match cErrInParen display contained "[{}]\|<%\|%>"
|
||||
else
|
||||
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell
|
||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell
|
||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
|
||||
syn match cParenError display "[\])]"
|
||||
syn match cErrInParen display contained "[\]{}]\|<%\|%>"
|
||||
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' contains=ALLBUT,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell
|
||||
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell
|
||||
" cCppBracket: same as cParen but ends at end-of-line; used in cDefine
|
||||
syn region cCppBracket transparent start='\[\|<::\@!' skip='\\$' excludenl end=']\|:>' end='$' contained contains=ALLBUT,@cParenGroup,cErrInParen,cParen,cBracket,cString,@Spell
|
||||
syn match cErrInBracket display contained "[);{}]\|<%\|%>"
|
||||
endif
|
||||
|
||||
syntax region cBadBlock keepend extend start="{" end="}" contained containedin=cParen,cBracket,cBadBlock transparent fold
|
||||
|
||||
"integer number, or floating point number without a dot and with "f".
|
||||
syn case ignore
|
||||
syn match cNumbers display transparent "\<\d\|\.\d" contains=cNumber,cFloat,cOctalError,cOctal
|
||||
@@ -270,27 +272,39 @@ if !exists("c_no_c99") " ISO C99
|
||||
endif
|
||||
|
||||
" Accept %: for # (C99)
|
||||
syn region cPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
|
||||
syn match cPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>"
|
||||
syn region cPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
|
||||
syn match cPreConditMatch display "^\s*\(%:\|#\)\s*\(else\|endif\|elif\)\>"
|
||||
if !exists("c_no_if0")
|
||||
syn cluster cCppOutInGroup contains=cCppInIf,cCppInElse,cCppInElse2,cCppOutIf,cCppOutIf2,cCppOutElse,cCppInSkip,cCppOutSkip
|
||||
syn region cCppOutWrapper start="^\s*\(%:\|#\)\s*if\s\+0\+\s*\($\|//\|/\*\|&\)" end=".\@=\|$" contains=cCppOutIf,cCppOutElse
|
||||
syn region cCppOutIf contained start="0\+" matchgroup=cCppOutWrapper end="^\s*\(%:\|#\)\s*endif\>" contains=cCppOutIf2,cCppOutElse
|
||||
if !exists("c_no_if0_fold")
|
||||
syn region cCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2 fold
|
||||
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip
|
||||
else
|
||||
syn region cCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2
|
||||
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip fold
|
||||
endif
|
||||
syn region cCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip
|
||||
syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
|
||||
syn region cCppOutElse contained matchgroup=cCppOutWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=TOP,cPreCondit
|
||||
syn region cCppInWrapper start="^\s*\(%:\|#\)\s*if\s\+0*[1-9]\d*\s*\($\|//\|/\*\||\)" end=".\@=\|$" contains=cCppInIf,cCppInElse
|
||||
syn region cCppInIf contained matchgroup=cCppInWrapper start="\d\+" end="^\s*\(%:\|#\)\s*endif\>" contains=TOP,cPreCondit
|
||||
if !exists("c_no_if0_fold")
|
||||
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2 fold
|
||||
else
|
||||
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2
|
||||
endif
|
||||
syn region cCppInElse2 contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)\([^/]\|/[^/*]\)*" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=cSpaceError,cCppOutSkip
|
||||
syn region cCppOutSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppOutSkip
|
||||
syn region cCppInSkip contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(if\s\+\(\d\+\s*\($\|//\|/\*\||\|&\)\)\@!\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" containedin=cCppOutElse,cCppInIf,cCppInSkip contains=TOP,cPreProc
|
||||
endif
|
||||
syn region cIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
syn match cIncluded display contained "<[^>]*>"
|
||||
syn match cInclude display "^\s*\(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
|
||||
"syn match cLineSkip "\\$"
|
||||
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti
|
||||
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti
|
||||
syn region cDefine start="^\s*\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||
syn region cPreProc start="^\s*\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||
|
||||
" Highlight User Labels
|
||||
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cCppParen,cCppBracket,cCppString
|
||||
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cCppParen,cCppBracket,cCppString
|
||||
syn region cMulti transparent start='?' skip='::' end=':' contains=ALLBUT,@cMultiGroup,@Spell
|
||||
" Avoid matching foo::bar() in C++ by requiring that the next char is not ':'
|
||||
syn cluster cLabelGroup contains=cUserLabel
|
||||
@@ -354,6 +368,9 @@ hi def link cDefine Macro
|
||||
hi def link cIncluded cString
|
||||
hi def link cError Error
|
||||
hi def link cStatement Statement
|
||||
hi def link cCppInWrapper cCppOutWrapper
|
||||
hi def link cCppOutWrapper cPreCondit
|
||||
hi def link cPreConditMatch cPreCondit
|
||||
hi def link cPreCondit PreCondit
|
||||
hi def link cType Type
|
||||
hi def link cConstant Constant
|
||||
@@ -365,8 +382,10 @@ hi def link cComment Comment
|
||||
hi def link cSpecial SpecialChar
|
||||
hi def link cTodo Todo
|
||||
hi def link cBadContinuation Error
|
||||
hi def link cCppSkip cCppOut
|
||||
hi def link cCppOut2 cCppOut
|
||||
hi def link cCppOutSkip cCppOutIf2
|
||||
hi def link cCppInElse2 cCppOutIf2
|
||||
hi def link cCppOutIf2 cCppOut2 " Old syntax group for #if 0 body
|
||||
hi def link cCppOut2 cCppOut " Old syntax group for #if of #if 0
|
||||
hi def link cCppOut Comment
|
||||
|
||||
let b:current_syntax = "c"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: dnsmasq(8) configuration file
|
||||
" Maintainer: Thilo Six <T.Six@gmx.de>
|
||||
" Last Change: 17 May 2011
|
||||
" Last Change: 2011 Jul 14
|
||||
" Credits: This file is a mix of cfg.vim, wget.vim and xf86conf.vim, credits go to:
|
||||
" Igor N. Prischepoff
|
||||
" Doug Kearns
|
||||
@@ -58,7 +58,7 @@ syn match DnsmasqString "'.*'"
|
||||
syn match DnsmasqComment "^#.*$" contains=DnsmasqTodo
|
||||
syn match DnsmasqComment "\s#.*$" contains=DnsmasqTodo
|
||||
|
||||
syn keyword DnsmasqTodo FIXME TODO XXX NOT contained
|
||||
syn keyword DnsmasqTodo FIXME TODO XXX NOTE contained
|
||||
|
||||
syn match DnsmasqKeywordSpecial "\<set\>:"me=e-1
|
||||
syn match DnsmasqKeywordSpecial "\<tag\>:"me=e-1
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
" Version Info: @(#)dosini.vim 1.6 97/12/15 08:54:12
|
||||
" Author: Sean M. McKee <mckee@misslink.net>
|
||||
" Maintainer: Nima Talebi <nima@it.net.au>
|
||||
" Last Change: Mon, 26 Jun 2006 22:07:28 +1000
|
||||
" Updated By: Hong Xu
|
||||
" Last Change: 2011 Jul 16
|
||||
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
@@ -19,7 +20,7 @@ syn case ignore
|
||||
|
||||
syn match dosiniLabel "^.\{-}="
|
||||
syn region dosiniHeader start="^\[" end="\]"
|
||||
syn match dosiniComment "^;.*$"
|
||||
syn match dosiniComment "^[#;].*$"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: gnash(1) configuration files
|
||||
" http://www.gnu.org/software/gnash/manual/gnashuser.html#gnashrc
|
||||
" Maintainer: Thilo Six <T.Six@gmx.de>
|
||||
" Last Change: 17 May 2011
|
||||
" Last Change: 2011 Jul 02
|
||||
" Credidts: derived from readline.vim
|
||||
" Nikolai Weibull
|
||||
"
|
||||
@@ -32,6 +32,7 @@ syn case match
|
||||
syn match GnashSet '^\s*set\>'
|
||||
syn match GnashSet '^\s*append\>'
|
||||
|
||||
syn case ignore
|
||||
syn match GnashKeyword '\<CertDir\>'
|
||||
syn match GnashKeyword '\<ASCodingErrorsVerbosity\>'
|
||||
syn match GnashKeyword '\<CertFile\>'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim help file
|
||||
" Maintainer: Bram Moolenaar (Bram@vim.org)
|
||||
" Last Change: 2010 Nov 03
|
||||
" Last Change: 2011 Jul 11
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -21,8 +21,13 @@ else
|
||||
syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar
|
||||
syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar
|
||||
endif
|
||||
syn match helpBar contained "|" conceal
|
||||
syn match helpStar contained "\*" conceal
|
||||
if has("conceal")
|
||||
syn match helpBar contained "|" conceal
|
||||
syn match helpStar contained "\*" conceal
|
||||
else
|
||||
syn match helpBar contained "|"
|
||||
syn match helpStar contained "\*"
|
||||
endif
|
||||
syn match helpNormal "|.*====*|"
|
||||
syn match helpNormal ":|vim:|" " for :help modeline
|
||||
syn match helpVim "Vim version [0-9.a-z]\+"
|
||||
@@ -31,7 +36,11 @@ syn match helpOption "'[a-z]\{2,\}'"
|
||||
syn match helpOption "'t_..'"
|
||||
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
|
||||
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
|
||||
syn match helpIgnore "." contained conceal
|
||||
if has("conceal")
|
||||
syn match helpIgnore "." contained conceal
|
||||
else
|
||||
syn match helpIgnore "." contained
|
||||
endif
|
||||
syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
|
||||
syn match helpSpecial "\<N\>"
|
||||
syn match helpSpecial "\<N\.$"me=e-1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
===============================================================================
|
||||
= B i e n v e n u e dans le T u t o r i e l de V I M - Version 1.7.fr.2 =
|
||||
= B i e n v e n u e dans l e T u t o r i e l de V I M - Version 1.7 =
|
||||
===============================================================================
|
||||
|
||||
Vim est un <20>diteur tr<74>s puissant qui a trop de commandes pour pouvoir
|
||||
@@ -67,7 +67,7 @@ NOTE : Les touches fl
|
||||
4. Si vous avez m<>moris<69> ces <20>tapes et <20>tes confiant, effectuez les <20>tapes
|
||||
1 <20> 3 pour sortir puis rentrer dans l'<27>diteur.
|
||||
|
||||
NOTE : :q! <Entr<74>e> annule tous les changements que vous avez fait. Dans
|
||||
NOTE : :q! <Entr<74>e> annule tous les changements que vous avez faits. Dans
|
||||
quelques le<6C>ons, vous apprendrez <20> enregistrer les changements.
|
||||
|
||||
5. D<>placez le curseur <20> la Le<4C>on 1.3.
|
||||
@@ -260,7 +260,7 @@ NOTE : La lettre d appara
|
||||
|
||||
Une courte liste de mouvements :
|
||||
w - jusqu'au d<>but du prochain mot, en EXCLUANT son premier caract<63>re.
|
||||
e - jusqu'<27> la fin du mot courant, en EXCLUANT son denier caract<63>re.
|
||||
e - jusqu'<27> la fin du mot courant, en EXCLUANT son dernier caract<63>re.
|
||||
$ - jusqu'<27> la fin de la ligne, en INCLUANT son dernier caract<63>re.
|
||||
|
||||
Ainsi, taper de va effacer depuis le curseur jusqu'<27> la fin du mot.
|
||||
@@ -299,7 +299,7 @@ NOTE : Le seul appui d'un mouvement en mode Normal, sans commande, d
|
||||
|
||||
Outre la combinaison de l'op<6F>rateur d'effacement avec un d<>placement
|
||||
mentionn<6E> ci-dessus, vous pouvez ins<6E>rer un nombre (quantificateur)
|
||||
pour effacez encore plus :
|
||||
pour effacer encore plus :
|
||||
d nombre d<>placement
|
||||
|
||||
1. D<>placez le curseur vers le premier mot en MAJUSCULES dans la ligne
|
||||
@@ -704,7 +704,7 @@ NOTE : Si vous quittez Vim et le red
|
||||
3. Appuyez : . En bas de l'<27>cran :'<,'> va appara<72>tre.
|
||||
|
||||
4. Tapez w TEST , o<> TEST est un nom de fichier qui n'existe pas.
|
||||
V<>rifiez que vous voyez :'<,'>w TEST avant de d'appuyer sur Entr<74>e.
|
||||
V<>rifiez que vous voyez :'<,'>w TEST avant de d'appuyer sur <Entr<EFBFBD>e>.
|
||||
|
||||
5. Vim va enregistrer les lignes s<>lectionn<6E>es dans le fichier TEST.
|
||||
Utilisez :!dir ou !ls pour le voir. Ne l'effacez pas encore !
|
||||
@@ -725,7 +725,7 @@ NOTE : L'appui de v d
|
||||
1. Placez le curseur juste au-dessus de cette ligne.
|
||||
|
||||
NOTE : Apr<70>s avoir ex<65>cut<75> l'<27>tape 2 vous verrez du texte de la Le<4C>on 5.3.
|
||||
Puis d<>placez vous vers le bas pour voir cette le<6C>on <20> nouveau.
|
||||
Puis d<>placez-vous vers le bas pour voir cette le<6C>on <20> nouveau.
|
||||
|
||||
2. Maintenant r<>cup<75>rez votre fichier TEST en utilisant la commande :r TEST
|
||||
o<> TEST est le nom de votre fichier.
|
||||
@@ -854,7 +854,7 @@ NOTE : Le mode Remplacement est comme le mode Insertion, mais tous les
|
||||
5. Tapez p pour coller le texte. Puis tapez : un second <<3C>chap> .
|
||||
|
||||
6. Utilisez le mode Visuel pour s<>lectionner "<22>l<EFBFBD>ment", copiez le avec y ,
|
||||
d<>placez vous <20> la fin de la ligne suivant avec j$ et collez le texte
|
||||
d<>placez-vous <20> la fin de la ligne suivant avec j$ et collez le texte
|
||||
<20> cet endroit avec p .
|
||||
|
||||
---> a) ceci est le premier <20>l<EFBFBD>ment.
|
||||
@@ -1012,8 +1012,8 @@ NOTE : Le compl
|
||||
Ceci conclut le Tutoriel Vim. Le but <20>tait de vous donner un bref aper<65>u de
|
||||
l'<27>diteur Vim, juste assez pour vous permettre d'utiliser l'<27>diteur
|
||||
relativement facilement. Il est loin d'<27>tre complet, vu que Vim a beaucoup
|
||||
beaucoup plus de commandes. Un Manuel de l'utilisateur est disponible en
|
||||
anglais : :help user-manual .
|
||||
plus de commandes. Un Manuel de l'utilisateur est disponible en anglais :
|
||||
:help user-manual
|
||||
|
||||
Pour continuer <20> d<>couvrir et <20> apprendre Vim, il existe un livre traduit en
|
||||
fran<61>ais. Il parle plus de Vi que de Vim, mais pourra vous <20>tre utile.
|
||||
@@ -1030,9 +1030,9 @@ NOTE : Le compl
|
||||
Universit<69> d'<27>tat du Colorado. E-mail : bware@mines.colorado.edu.
|
||||
|
||||
Modifi<66> pour Vim par Bram Moolenar.
|
||||
Traduit en Fran<EFBFBD>ais par Adrien Beau, en avril 2001.
|
||||
Traduit en fran<EFBFBD>ais par Adrien Beau, en avril 2001.
|
||||
Derni<6E>res mises <20> jour par Dominique Pell<6C>.
|
||||
|
||||
E-mail : dominique.pelle@gmail.com
|
||||
Last Change : 2010 May 23
|
||||
Last Change : 2011 Jun 25
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
===============================================================================
|
||||
= B i e n v e n u e dans le T u t o r i e l de V I M - Version 1.7.fr.2 =
|
||||
= B i e n v e n u e dans l e T u t o r i e l de V I M - Version 1.7 =
|
||||
===============================================================================
|
||||
|
||||
Vim est un éditeur très puissant qui a trop de commandes pour pouvoir
|
||||
@@ -67,7 +67,7 @@ NOTE : Les touches fléchées devraient également fonctionner. Mais en utilisan
|
||||
4. Si vous avez mémorisé ces étapes et êtes confiant, effectuez les étapes
|
||||
1 à 3 pour sortir puis rentrer dans l'éditeur.
|
||||
|
||||
NOTE : :q! <Entrée> annule tous les changements que vous avez fait. Dans
|
||||
NOTE : :q! <Entrée> annule tous les changements que vous avez faits. Dans
|
||||
quelques leçons, vous apprendrez à enregistrer les changements.
|
||||
|
||||
5. Déplacez le curseur à la Leçon 1.3.
|
||||
@@ -260,7 +260,7 @@ NOTE : La lettre d apparaîtra sur la dernière ligne de l'écran lors de
|
||||
|
||||
Une courte liste de mouvements :
|
||||
w - jusqu'au début du prochain mot, en EXCLUANT son premier caractère.
|
||||
e - jusqu'à la fin du mot courant, en EXCLUANT son denier caractère.
|
||||
e - jusqu'à la fin du mot courant, en EXCLUANT son dernier caractère.
|
||||
$ - jusqu'à la fin de la ligne, en INCLUANT son dernier caractère.
|
||||
|
||||
Ainsi, taper de va effacer depuis le curseur jusqu'à la fin du mot.
|
||||
@@ -299,7 +299,7 @@ NOTE : Le seul appui d'un mouvement en mode Normal, sans commande, déplace le
|
||||
|
||||
Outre la combinaison de l'opérateur d'effacement avec un déplacement
|
||||
mentionné ci-dessus, vous pouvez insérer un nombre (quantificateur)
|
||||
pour effacez encore plus :
|
||||
pour effacer encore plus :
|
||||
d nombre déplacement
|
||||
|
||||
1. Déplacez le curseur vers le premier mot en MAJUSCULES dans la ligne
|
||||
@@ -704,7 +704,7 @@ NOTE : Si vous quittez Vim et le redémarrez de nouveau avec le fichier TEST,
|
||||
3. Appuyez : . En bas de l'écran :'<,'> va apparaître.
|
||||
|
||||
4. Tapez w TEST , où TEST est un nom de fichier qui n'existe pas.
|
||||
Vérifiez que vous voyez :'<,'>w TEST avant de d'appuyer sur Entrée.
|
||||
Vérifiez que vous voyez :'<,'>w TEST avant de d'appuyer sur <Entrée>.
|
||||
|
||||
5. Vim va enregistrer les lignes sélectionnées dans le fichier TEST.
|
||||
Utilisez :!dir ou !ls pour le voir. Ne l'effacez pas encore !
|
||||
@@ -725,7 +725,7 @@ NOTE : L'appui de v démarre la sélection Visuelle. Vous pouvez déplacer le
|
||||
1. Placez le curseur juste au-dessus de cette ligne.
|
||||
|
||||
NOTE : Après avoir exécuté l'étape 2 vous verrez du texte de la Leçon 5.3.
|
||||
Puis déplacez vous vers le bas pour voir cette leçon à nouveau.
|
||||
Puis déplacez-vous vers le bas pour voir cette leçon à nouveau.
|
||||
|
||||
2. Maintenant récupérez votre fichier TEST en utilisant la commande :r TEST
|
||||
où TEST est le nom de votre fichier.
|
||||
@@ -854,7 +854,7 @@ NOTE : Le mode Remplacement est comme le mode Insertion, mais tous les
|
||||
5. Tapez p pour coller le texte. Puis tapez : un second <Échap> .
|
||||
|
||||
6. Utilisez le mode Visuel pour sélectionner "élément", copiez le avec y ,
|
||||
déplacez vous à la fin de la ligne suivant avec j$ et collez le texte
|
||||
déplacez-vous à la fin de la ligne suivant avec j$ et collez le texte
|
||||
à cet endroit avec p .
|
||||
|
||||
---> a) ceci est le premier élément.
|
||||
@@ -1012,8 +1012,8 @@ NOTE : Le complètement fonctionne pour de nombreuses commandes. Essayez
|
||||
Ceci conclut le Tutoriel Vim. Le but était de vous donner un bref aperçu de
|
||||
l'éditeur Vim, juste assez pour vous permettre d'utiliser l'éditeur
|
||||
relativement facilement. Il est loin d'être complet, vu que Vim a beaucoup
|
||||
beaucoup plus de commandes. Un Manuel de l'utilisateur est disponible en
|
||||
anglais : :help user-manual .
|
||||
plus de commandes. Un Manuel de l'utilisateur est disponible en anglais :
|
||||
:help user-manual
|
||||
|
||||
Pour continuer à découvrir et à apprendre Vim, il existe un livre traduit en
|
||||
français. Il parle plus de Vi que de Vim, mais pourra vous être utile.
|
||||
@@ -1030,9 +1030,9 @@ NOTE : Le complètement fonctionne pour de nombreuses commandes. Essayez
|
||||
Université d'État du Colorado. E-mail : bware@mines.colorado.edu.
|
||||
|
||||
Modifié pour Vim par Bram Moolenar.
|
||||
Traduit en Français par Adrien Beau, en avril 2001.
|
||||
Traduit en français par Adrien Beau, en avril 2001.
|
||||
Dernières mises à jour par Dominique Pellé.
|
||||
|
||||
E-mail : dominique.pelle@gmail.com
|
||||
Last Change : 2010 May 23
|
||||
Last Change : 2011 Jun 25
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -586,8 +586,23 @@ STDMETHODIMP CShellExt::QueryContextMenu(HMENU hMenu,
|
||||
|
||||
// Initialize m_cntOfHWnd to 0
|
||||
m_cntOfHWnd = 0;
|
||||
// Retrieve all the vim instances
|
||||
EnumWindows(EnumWindowsProc, (LPARAM)this);
|
||||
|
||||
HKEY keyhandle;
|
||||
bool showExisting = true;
|
||||
|
||||
// Check whether "Edit with existing Vim" entries are disabled.
|
||||
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0,
|
||||
KEY_READ, &keyhandle) == ERROR_SUCCESS)
|
||||
{
|
||||
if (RegQueryValueEx(keyhandle, "DisableEditWithExisting", 0, NULL,
|
||||
NULL, NULL) == ERROR_SUCCESS)
|
||||
showExisting = false;
|
||||
RegCloseKey(keyhandle);
|
||||
}
|
||||
|
||||
// Retrieve all the vim instances, unless disabled.
|
||||
if (showExisting)
|
||||
EnumWindows(EnumWindowsProc, (LPARAM)this);
|
||||
|
||||
if (cbFiles > 1)
|
||||
{
|
||||
|
||||
@@ -11,9 +11,9 @@ The file "feature.h" can be edited to match your preferences. You can skip
|
||||
this, then you will get the default behavior as is documented, which should
|
||||
be fine for most people.
|
||||
|
||||
With the exception of the last two sections (Windows 3.1 and MS-DOS),
|
||||
this document assumes that you are building Vim for Win32
|
||||
(Windows NT/2000/XP/2003/Vista and Windows 95/98/Me)
|
||||
With the exception of two sections (Windows 3.1 and MS-DOS), this document
|
||||
assumes that you are building Vim for Win32 or later.
|
||||
(Windows 95/98/Me/NT/2000/XP/2003/Vista/7)
|
||||
|
||||
|
||||
Contents:
|
||||
@@ -27,6 +27,9 @@ Contents:
|
||||
8. Windows 3.1
|
||||
9. MS-DOS
|
||||
|
||||
10. Installing after building from sources
|
||||
|
||||
|
||||
The currently preferred method is using the free Visual C++ Toolkit 2008
|
||||
|msvc-2008-express|, the produced binary runs on most MS-Windows systems. If
|
||||
you need the executable to run on Windows 98 or ME, use the 2003 one
|
||||
@@ -407,5 +410,61 @@ Windows exe (GUI or console mode), or a 16-bit MS-DOS version.
|
||||
NOTE: multi-byte support is broken in the Borland libraries, not everything
|
||||
will work properly! Esp. handling multi-byte file names.
|
||||
|
||||
If you get all kinds of strange error messages when compiling, try adding
|
||||
changing the file format from "unix" to "dos".
|
||||
If you get all kinds of strange error messages when compiling, try changing
|
||||
the file format from "unix" to "dos".
|
||||
|
||||
|
||||
10. Installing after building from sources
|
||||
==========================================
|
||||
|
||||
[provided by Michael Soyka]
|
||||
|
||||
After you've built the Vim binaries as described above, you're ready to
|
||||
install Vim on your system. However, if you've obtained the Vim sources
|
||||
using Mercurial or by downloading them as a unix tar file, you must first
|
||||
create a "vim73" directory. If you instead downloaded the sources as
|
||||
zip files, you can skip this setup as the zip archives already have the
|
||||
correct directory structure.
|
||||
|
||||
A. Create a Vim "runtime" subdirectory named "vim73"
|
||||
-----------------------------------------------------
|
||||
If you obtained your Vim sources as zip files, you can skip this step.
|
||||
Otherwise, continue reading.
|
||||
|
||||
Go to the directory that contains the Vim "src" and "runtime"
|
||||
directories and create a new subdirectory named "vim73".
|
||||
|
||||
Copy the "runtime" files into "vim73":
|
||||
copy runtime\* vim73
|
||||
|
||||
B. Copy the new binaries into the "vim73" directory
|
||||
----------------------------------------------------
|
||||
Regardless of how you installed the Vim sources, you need to copy the
|
||||
new binaries you created above into "vim73":
|
||||
|
||||
copy src\*.exe vim73
|
||||
copy src\GvimExt\gvimext.dll vim73
|
||||
copy src\xxd\xxd.exe vim73
|
||||
|
||||
C. Move the "vim73" directory into the Vim installation subdirectory
|
||||
---------------------------------------------------------------------
|
||||
Move the "vim73" subdirectory into the subdirectory where you want Vim
|
||||
to be installed. Typically, this subdirectory will be named "vim".
|
||||
If you already have a "vim73" subdirectory in "vim", delete it first
|
||||
by running its uninstal.exe program.
|
||||
|
||||
D. Install Vim
|
||||
---------------
|
||||
"cd" to your Vim installation subdirectory "vim\vim73" and run the
|
||||
"install.exe" program. It will ask you a number of questions about
|
||||
how you would like to have your Vim setup. Among these are:
|
||||
- You can tell it to write a "_vimrc" file with your preferences in the
|
||||
parent directory.
|
||||
- It can also install an "Edit with Vim" entry in the Windows Explorer
|
||||
popup menu.
|
||||
- You can have it create batch files, so that you can run Vim from the
|
||||
console or in a shell. You can select one of the directories in your
|
||||
PATH or add the directory to PATH using the Windows Control Panel.
|
||||
- Create entries for Vim on the desktop and in the Start menu.
|
||||
|
||||
Happy Vimming!
|
||||
|
||||
2
src/auto/configure
vendored
2
src/auto/configure
vendored
@@ -5611,7 +5611,7 @@ __:
|
||||
eof
|
||||
eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
|
||||
rm -f -- "${tmp_mkf}"
|
||||
vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}"
|
||||
vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
|
||||
vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
|
||||
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
|
||||
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
|
||||
|
||||
@@ -1068,7 +1068,7 @@ eof
|
||||
dnl -- delete the lines from make about Entering/Leaving directory
|
||||
eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
|
||||
rm -f -- "${tmp_mkf}"
|
||||
vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}"
|
||||
vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
|
||||
vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
|
||||
dnl remove -ltermcap, it can conflict with an earlier -lncurses
|
||||
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
|
||||
|
||||
@@ -3430,6 +3430,9 @@ ex_call(eap)
|
||||
{
|
||||
curwin->w_cursor.lnum = lnum;
|
||||
curwin->w_cursor.col = 0;
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
curwin->w_cursor.coladd = 0;
|
||||
#endif
|
||||
}
|
||||
arg = startarg;
|
||||
if (get_func_tv(name, (int)STRLEN(name), &rettv, &arg,
|
||||
|
||||
@@ -5297,7 +5297,9 @@ static struct
|
||||
{
|
||||
{EXPAND_AUGROUP, "augroup"},
|
||||
{EXPAND_BUFFERS, "buffer"},
|
||||
{EXPAND_COLORS, "color"},
|
||||
{EXPAND_COMMANDS, "command"},
|
||||
{EXPAND_COMPILER, "compiler"},
|
||||
#if defined(FEAT_CSCOPE)
|
||||
{EXPAND_CSCOPE, "cscope"},
|
||||
#endif
|
||||
@@ -5310,10 +5312,15 @@ static struct
|
||||
{EXPAND_EVENTS, "event"},
|
||||
{EXPAND_EXPRESSION, "expression"},
|
||||
{EXPAND_FILES, "file"},
|
||||
{EXPAND_FILES_IN_PATH, "file_in_path"},
|
||||
{EXPAND_FILETYPE, "filetype"},
|
||||
{EXPAND_FUNCTIONS, "function"},
|
||||
{EXPAND_HELP, "help"},
|
||||
{EXPAND_HIGHLIGHT, "highlight"},
|
||||
#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
|
||||
&& (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE))
|
||||
{EXPAND_LOCALES, "locale"},
|
||||
#endif
|
||||
{EXPAND_MAPPINGS, "mapping"},
|
||||
{EXPAND_MENUS, "menu"},
|
||||
{EXPAND_OWNSYNTAX, "syntax"},
|
||||
@@ -7069,7 +7076,7 @@ alist_expand(fnum_list, fnum_len)
|
||||
old_arg_count = GARGCOUNT;
|
||||
if (expand_wildcards(old_arg_count, old_arg_files,
|
||||
&new_arg_file_count, &new_arg_files,
|
||||
EW_FILE|EW_NOTFOUND|EW_ADDSLASH) == OK
|
||||
EW_FILE|EW_NOTFOUND|EW_ADDSLASH|EW_NOERROR) == OK
|
||||
&& new_arg_file_count > 0)
|
||||
{
|
||||
alist_set(&global_alist, new_arg_file_count, new_arg_files,
|
||||
|
||||
@@ -1574,6 +1574,10 @@ gui_mch_init(void)
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
# if _MSC_VER < 1400
|
||||
/* HandleToLong() only exists in compilers that can do 64 bit builds */
|
||||
# define HandleToLong(h) ((long)(h))
|
||||
# endif
|
||||
/* set the v:windowid variable */
|
||||
set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd));
|
||||
#endif
|
||||
|
||||
@@ -68,9 +68,16 @@
|
||||
|
||||
static void init_structs(void);
|
||||
|
||||
/* The "surrogateescape" error handler is new in Python 3.1 */
|
||||
#if PY_VERSION_HEX >= 0x030100f0
|
||||
# define CODEC_ERROR_HANDLER "surrogateescape"
|
||||
#else
|
||||
# define CODEC_ERROR_HANDLER NULL
|
||||
#endif
|
||||
|
||||
#define PyInt Py_ssize_t
|
||||
#define PyString_Check(obj) PyUnicode_Check(obj)
|
||||
#define PyString_AsBytes(obj) PyUnicode_AsEncodedString(obj, (char *)ENC_OPT, NULL);
|
||||
#define PyString_AsBytes(obj) PyUnicode_AsEncodedString(obj, (char *)ENC_OPT, CODEC_ERROR_HANDLER);
|
||||
#define PyString_FreeBytes(obj) Py_XDECREF(bytes)
|
||||
#define PyString_AsString(obj) PyBytes_AsString(obj)
|
||||
#define PyString_Size(obj) PyBytes_GET_SIZE(bytes)
|
||||
@@ -661,8 +668,9 @@ DoPy3Command(exarg_T *eap, const char *cmd)
|
||||
|
||||
/* PyRun_SimpleString expects a UTF-8 string. Wrong encoding may cause
|
||||
* SyntaxError (unicode error). */
|
||||
cmdstr = PyUnicode_Decode(cmd, strlen(cmd), (char *)ENC_OPT, NULL);
|
||||
cmdbytes = PyUnicode_AsEncodedString(cmdstr, "utf-8", NULL);
|
||||
cmdstr = PyUnicode_Decode(cmd, strlen(cmd),
|
||||
(char *)ENC_OPT, CODEC_ERROR_HANDLER);
|
||||
cmdbytes = PyUnicode_AsEncodedString(cmdstr, "utf-8", CODEC_ERROR_HANDLER);
|
||||
Py_XDECREF(cmdstr);
|
||||
PyRun_SimpleString(PyBytes_AsString(cmdbytes));
|
||||
Py_XDECREF(cmdbytes);
|
||||
@@ -1463,7 +1471,7 @@ LineToString(const char *str)
|
||||
}
|
||||
*p = '\0';
|
||||
|
||||
result = PyUnicode_Decode(tmp, len, (char *)ENC_OPT, NULL);
|
||||
result = PyUnicode_Decode(tmp, len, (char *)ENC_OPT, CODEC_ERROR_HANDLER);
|
||||
|
||||
vim_free(tmp);
|
||||
return result;
|
||||
|
||||
186
src/mbyte.c
186
src/mbyte.c
@@ -132,6 +132,7 @@ static int utf_ptr2cells_len __ARGS((char_u *p, int size));
|
||||
static int dbcs_char2cells __ARGS((int c));
|
||||
static int dbcs_ptr2cells_len __ARGS((char_u *p, int size));
|
||||
static int dbcs_ptr2char __ARGS((char_u *p));
|
||||
static int utf_safe_read_char_adv __ARGS((char_u **s, size_t *n));
|
||||
|
||||
/*
|
||||
* Lookup table to quickly get the length in bytes of a UTF-8 character from
|
||||
@@ -1700,6 +1701,66 @@ utf_ptr2char(p)
|
||||
return p[0];
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert a UTF-8 byte sequence to a wide character.
|
||||
* String is assumed to be terminated by NUL or after "n" bytes, whichever
|
||||
* comes first.
|
||||
* The function is safe in the sense that it never accesses memory beyond the
|
||||
* first "n" bytes of "s".
|
||||
*
|
||||
* On success, returns decoded codepoint, advances "s" to the beginning of
|
||||
* next character and decreases "n" accordingly.
|
||||
*
|
||||
* If end of string was reached, returns 0 and, if "n" > 0, advances "s" past
|
||||
* NUL byte.
|
||||
*
|
||||
* If byte sequence is illegal or incomplete, returns -1 and does not advance
|
||||
* "s".
|
||||
*/
|
||||
static int
|
||||
utf_safe_read_char_adv(s, n)
|
||||
char_u **s;
|
||||
size_t *n;
|
||||
{
|
||||
int c, k;
|
||||
|
||||
if (*n == 0) /* end of buffer */
|
||||
return 0;
|
||||
|
||||
k = utf8len_tab_zero[**s];
|
||||
|
||||
if (k == 1)
|
||||
{
|
||||
/* ASCII character or NUL */
|
||||
(*n)--;
|
||||
return *(*s)++;
|
||||
}
|
||||
|
||||
if ((size_t)k <= *n)
|
||||
{
|
||||
/* We have a multibyte sequence and it isn't truncated by buffer
|
||||
* limits so utf_ptr2char() is safe to use. Or the first byte is
|
||||
* illegal (k=0), and it's also safe to use utf_ptr2char(). */
|
||||
c = utf_ptr2char(*s);
|
||||
|
||||
/* On failure, utf_ptr2char() returns the first byte, so here we
|
||||
* check equality with the first byte. The only non-ASCII character
|
||||
* which equals the first byte of its own UTF-8 representation is
|
||||
* U+00C3 (UTF-8: 0xC3 0x83), so need to check that special case too.
|
||||
* It's safe even if n=1, else we would have k=2 > n. */
|
||||
if (c != (int)(**s) || (c == 0xC3 && (*s)[1] == 0x83))
|
||||
{
|
||||
/* byte sequence was successfully decoded */
|
||||
*s += k;
|
||||
*n -= k;
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
/* byte sequence is incomplete or illegal */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get character at **pp and advance *pp to the next character.
|
||||
* Note: composing characters are skipped!
|
||||
@@ -2667,7 +2728,8 @@ static convertStruct foldCase[] =
|
||||
{0x10400,0x10427,1,40}
|
||||
};
|
||||
|
||||
static int utf_convert(int a, convertStruct table[], int tableSize);
|
||||
static int utf_convert __ARGS((int a, convertStruct table[], int tableSize));
|
||||
static int utf_strnicmp __ARGS((char_u *s1, char_u *s2, size_t n1, size_t n2));
|
||||
|
||||
/*
|
||||
* Generic conversion function for case operations.
|
||||
@@ -3079,6 +3141,80 @@ utf_isupper(a)
|
||||
return (utf_tolower(a) != a);
|
||||
}
|
||||
|
||||
static int
|
||||
utf_strnicmp(s1, s2, n1, n2)
|
||||
char_u *s1, *s2;
|
||||
size_t n1, n2;
|
||||
{
|
||||
int c1, c2, cdiff;
|
||||
char_u buffer[6];
|
||||
|
||||
for (;;)
|
||||
{
|
||||
c1 = utf_safe_read_char_adv(&s1, &n1);
|
||||
c2 = utf_safe_read_char_adv(&s2, &n2);
|
||||
|
||||
if (c1 <= 0 || c2 <= 0)
|
||||
break;
|
||||
|
||||
if (c1 == c2)
|
||||
continue;
|
||||
|
||||
cdiff = utf_fold(c1) - utf_fold(c2);
|
||||
if (cdiff != 0)
|
||||
return cdiff;
|
||||
}
|
||||
|
||||
/* some string ended or has an incomplete/illegal character sequence */
|
||||
|
||||
if (c1 == 0 || c2 == 0)
|
||||
{
|
||||
/* some string ended. shorter string is smaller */
|
||||
if (c1 == 0 && c2 == 0)
|
||||
return 0;
|
||||
return c1 == 0 ? -1 : 1;
|
||||
}
|
||||
|
||||
/* Continue with bytewise comparison to produce some result that
|
||||
* would make comparison operations involving this function transitive.
|
||||
*
|
||||
* If only one string had an error, comparison should be made with
|
||||
* folded version of the other string. In this case it is enough
|
||||
* to fold just one character to determine the result of comparison. */
|
||||
|
||||
if (c1 != -1 && c2 == -1)
|
||||
{
|
||||
n1 = utf_char2bytes(utf_fold(c1), buffer);
|
||||
s1 = buffer;
|
||||
}
|
||||
else if (c2 != -1 && c1 == -1)
|
||||
{
|
||||
n2 = utf_char2bytes(utf_fold(c2), buffer);
|
||||
s2 = buffer;
|
||||
}
|
||||
|
||||
while (n1 > 0 && n2 > 0 && *s1 != NUL && *s2 != NUL)
|
||||
{
|
||||
cdiff = (int)(*s1) - (int)(*s2);
|
||||
if (cdiff != 0)
|
||||
return cdiff;
|
||||
|
||||
s1++;
|
||||
s2++;
|
||||
n1--;
|
||||
n2--;
|
||||
}
|
||||
|
||||
if (n1 > 0 && *s1 == NUL)
|
||||
n1 = 0;
|
||||
if (n2 > 0 && *s2 == NUL)
|
||||
n2 = 0;
|
||||
|
||||
if (n1 == 0 && n2 == 0)
|
||||
return 0;
|
||||
return n1 == 0 ? -1 : 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Version of strnicmp() that handles multi-byte characters.
|
||||
* Needed for Big5, Sjift-JIS and UTF-8 encoding. Other DBCS encodings can
|
||||
@@ -3092,49 +3228,21 @@ mb_strnicmp(s1, s2, nn)
|
||||
char_u *s1, *s2;
|
||||
size_t nn;
|
||||
{
|
||||
int i, j, l;
|
||||
int i, l;
|
||||
int cdiff;
|
||||
int incomplete = FALSE;
|
||||
int n = (int)nn;
|
||||
|
||||
for (i = 0; i < n; i += l)
|
||||
if (enc_utf8)
|
||||
{
|
||||
if (s1[i] == NUL && s2[i] == NUL) /* both strings end */
|
||||
return 0;
|
||||
if (enc_utf8)
|
||||
{
|
||||
l = utf_byte2len(s1[i]);
|
||||
if (l > n - i)
|
||||
{
|
||||
l = n - i; /* incomplete character */
|
||||
incomplete = TRUE;
|
||||
}
|
||||
/* Check directly first, it's faster. */
|
||||
for (j = 0; j < l; ++j)
|
||||
{
|
||||
if (s1[i + j] != s2[i + j])
|
||||
break;
|
||||
if (s1[i + j] == 0)
|
||||
/* Both stings have the same bytes but are incomplete or
|
||||
* have illegal bytes, accept them as equal. */
|
||||
l = j;
|
||||
}
|
||||
if (j < l)
|
||||
{
|
||||
/* If one of the two characters is incomplete return -1. */
|
||||
if (incomplete || i + utf_byte2len(s2[i]) > n)
|
||||
return -1;
|
||||
/* Don't case-fold illegal bytes or truncated characters. */
|
||||
if (utf_ptr2len(s1 + i) < l || utf_ptr2len(s2 + i) < l)
|
||||
return -1;
|
||||
cdiff = utf_fold(utf_ptr2char(s1 + i))
|
||||
- utf_fold(utf_ptr2char(s2 + i));
|
||||
if (cdiff != 0)
|
||||
return cdiff;
|
||||
}
|
||||
}
|
||||
else
|
||||
return utf_strnicmp(s1, s2, nn, nn);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = 0; i < n; i += l)
|
||||
{
|
||||
if (s1[i] == NUL && s2[i] == NUL) /* both strings end */
|
||||
return 0;
|
||||
|
||||
l = (*mb_ptr2len)(s1 + i);
|
||||
if (l <= 1)
|
||||
{
|
||||
|
||||
@@ -7945,8 +7945,7 @@ term_again:
|
||||
* If we're at the end of a block, skip to the start of
|
||||
* that block.
|
||||
*/
|
||||
curwin->w_cursor.col = 0;
|
||||
if (*cin_skipcomment(l) == '}'
|
||||
if (find_last_paren(l, '{', '}')
|
||||
&& (trypos = find_start_brace(ind_maxcomment))
|
||||
!= NULL) /* XXX */
|
||||
{
|
||||
@@ -9044,8 +9043,12 @@ dos_expandpath(
|
||||
}
|
||||
|
||||
/* compile the regexp into a program */
|
||||
if (flags & EW_NOERROR)
|
||||
++emsg_silent;
|
||||
regmatch.rm_ic = TRUE; /* Always ignore case */
|
||||
regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
|
||||
if (flags & EW_NOERROR)
|
||||
--emsg_silent;
|
||||
vim_free(pat);
|
||||
|
||||
if (regmatch.regprog == NULL)
|
||||
|
||||
24
src/normal.c
24
src/normal.c
@@ -1795,17 +1795,25 @@ do_pending_operator(cap, old_col, gui_yank)
|
||||
{
|
||||
oap->inclusive = FALSE;
|
||||
/* Try to include the newline, unless it's an operator
|
||||
* that works on lines only */
|
||||
if (*p_sel != 'o'
|
||||
&& !op_on_lines(oap->op_type)
|
||||
&& oap->end.lnum < curbuf->b_ml.ml_line_count)
|
||||
* that works on lines only. */
|
||||
if (*p_sel != 'o' && !op_on_lines(oap->op_type))
|
||||
{
|
||||
++oap->end.lnum;
|
||||
oap->end.col = 0;
|
||||
if (oap->end.lnum < curbuf->b_ml.ml_line_count)
|
||||
{
|
||||
++oap->end.lnum;
|
||||
oap->end.col = 0;
|
||||
# ifdef FEAT_VIRTUALEDIT
|
||||
oap->end.coladd = 0;
|
||||
oap->end.coladd = 0;
|
||||
# endif
|
||||
++oap->line_count;
|
||||
++oap->line_count;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Cannot move below the last line, make the op
|
||||
* inclusive to tell the operation to include the
|
||||
* line break. */
|
||||
oap->inclusive = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
41
src/ops.c
41
src/ops.c
@@ -1650,7 +1650,9 @@ op_delete(oap)
|
||||
&& oap->line_count > 1
|
||||
&& oap->op_type == OP_DELETE)
|
||||
{
|
||||
ptr = ml_get(oap->end.lnum) + oap->end.col + oap->inclusive;
|
||||
ptr = ml_get(oap->end.lnum) + oap->end.col;
|
||||
if (*ptr != NUL)
|
||||
ptr += oap->inclusive;
|
||||
ptr = skipwhite(ptr);
|
||||
if (*ptr == NUL && inindent(0))
|
||||
oap->motion_type = MLINE;
|
||||
@@ -1920,11 +1922,20 @@ op_delete(oap)
|
||||
curwin->w_cursor.coladd = 0;
|
||||
}
|
||||
#endif
|
||||
(void)del_bytes((long)n, !virtual_op, oap->op_type == OP_DELETE
|
||||
if (oap->inclusive && oap->end.lnum == curbuf->b_ml.ml_line_count
|
||||
&& n > (int)STRLEN(ml_get(oap->end.lnum)))
|
||||
{
|
||||
/* Special case: gH<Del> deletes the last line. */
|
||||
del_lines(1L, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
(void)del_bytes((long)n, !virtual_op, oap->op_type == OP_DELETE
|
||||
#ifdef FEAT_VISUAL
|
||||
&& !oap->is_VIsual
|
||||
#endif
|
||||
);
|
||||
}
|
||||
}
|
||||
else /* delete characters between lines */
|
||||
{
|
||||
@@ -1941,17 +1952,29 @@ op_delete(oap)
|
||||
++curwin->w_cursor.lnum;
|
||||
del_lines((long)(oap->line_count - 2), FALSE);
|
||||
|
||||
/* delete from start of line until op_end */
|
||||
curwin->w_cursor.col = 0;
|
||||
(void)del_bytes((long)(oap->end.col + 1 - !oap->inclusive),
|
||||
!virtual_op, oap->op_type == OP_DELETE
|
||||
n = (oap->end.col + 1 - !oap->inclusive);
|
||||
if (oap->inclusive && oap->end.lnum == curbuf->b_ml.ml_line_count
|
||||
&& n > (int)STRLEN(ml_get(oap->end.lnum)))
|
||||
{
|
||||
/* Special case: gH<Del> deletes the last line. */
|
||||
del_lines(1L, FALSE);
|
||||
curwin->w_cursor = curpos; /* restore curwin->w_cursor */
|
||||
if (curwin->w_cursor.lnum > 1)
|
||||
--curwin->w_cursor.lnum;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* delete from start of line until op_end */
|
||||
curwin->w_cursor.col = 0;
|
||||
(void)del_bytes((long)n, !virtual_op, oap->op_type == OP_DELETE
|
||||
#ifdef FEAT_VISUAL
|
||||
&& !oap->is_VIsual
|
||||
#endif
|
||||
);
|
||||
curwin->w_cursor = curpos; /* restore curwin->w_cursor */
|
||||
|
||||
(void)do_join(2, FALSE, FALSE);
|
||||
curwin->w_cursor = curpos; /* restore curwin->w_cursor */
|
||||
}
|
||||
if (curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count)
|
||||
(void)do_join(2, FALSE, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
151
src/po/eo.po
151
src/po/eo.po
@@ -23,8 +23,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Vim(Esperanto)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-01-26 22:14+0100\n"
|
||||
"PO-Revision-Date: 2011-01-26 22:23+0200\n"
|
||||
"POT-Creation-Date: 2011-06-21 17:23+0200\n"
|
||||
"PO-Revision-Date: 2011-06-21 17:26+0200\n"
|
||||
"Last-Translator: Dominique PELLÉ <dominique.pelle@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -575,6 +575,9 @@ msgstr "E725: Alvoko de funkcio dict sen Vortaro: %s"
|
||||
msgid "E808: Number or Float required"
|
||||
msgstr "E808: Nombro aŭ Glitpunktnombro bezonata"
|
||||
|
||||
msgid "add() argument"
|
||||
msgstr "argumento de add()"
|
||||
|
||||
msgid "E699: Too many arguments"
|
||||
msgstr "E699: Tro da argumentoj"
|
||||
|
||||
@@ -589,10 +592,19 @@ msgstr "E785: complete() uzeblas nur en Enmeta reĝimo"
|
||||
msgid "&Ok"
|
||||
msgstr "&Bone"
|
||||
|
||||
msgid "extend() argument"
|
||||
msgstr "argumento de extend()"
|
||||
|
||||
#, c-format
|
||||
msgid "E737: Key already exists: %s"
|
||||
msgstr "E737: Ŝlosilo jam ekzistas: %s"
|
||||
|
||||
msgid "map() argument"
|
||||
msgstr "argumento de map()"
|
||||
|
||||
msgid "filter() argument"
|
||||
msgstr "argumento de filter()"
|
||||
|
||||
#, c-format
|
||||
msgid "+-%s%3ld lines: "
|
||||
msgstr "+-%s%3ld linioj: "
|
||||
@@ -611,6 +623,9 @@ msgstr ""
|
||||
msgid "called inputrestore() more often than inputsave()"
|
||||
msgstr "alvokis inputrestore() pli ofte ol inputsave()"
|
||||
|
||||
msgid "insert() argument"
|
||||
msgstr "argumento de insert()"
|
||||
|
||||
msgid "E786: Range not allowed"
|
||||
msgstr "E786: Amplekso malpermesita"
|
||||
|
||||
@@ -636,12 +651,21 @@ msgstr "E241: Ne eblas sendi al %s"
|
||||
msgid "E277: Unable to read a server reply"
|
||||
msgstr "E277: Ne eblas legi respondon de servilo"
|
||||
|
||||
msgid "remove() argument"
|
||||
msgstr "argumento de remove()"
|
||||
|
||||
msgid "E655: Too many symbolic links (cycle?)"
|
||||
msgstr "E655: Tro da simbolaj ligiloj (ĉu estas ciklo?)"
|
||||
|
||||
msgid "reverse() argument"
|
||||
msgstr "argumento de reverse()"
|
||||
|
||||
msgid "E258: Unable to send to client"
|
||||
msgstr "E258: Ne eblas sendi al kliento"
|
||||
|
||||
msgid "sort() argument"
|
||||
msgstr "argumento de sort()"
|
||||
|
||||
msgid "E702: Sort compare function failed"
|
||||
msgstr "E702: Ordiga funkcio fiaskis"
|
||||
|
||||
@@ -675,14 +699,6 @@ msgstr "E731: uzo de Vortaro kiel Ĉeno"
|
||||
msgid "E806: using Float as a String"
|
||||
msgstr "E806: uzo de Glitpunktnombro kiel Ĉeno"
|
||||
|
||||
#, c-format
|
||||
msgid "E704: Funcref variable name must start with a capital: %s"
|
||||
msgstr "E704: Nomo de variablo Funcref ekendas per majusklo: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E705: Variable name conflicts with existing function: %s"
|
||||
msgstr "E705: Nomo de variablo konfliktas kun ekzistanta funkcio: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E706: Variable type mismatch for: %s"
|
||||
msgstr "E706: Nekongrua datumtipo de variablo: %s"
|
||||
@@ -691,6 +707,14 @@ msgstr "E706: Nekongrua datumtipo de variablo: %s"
|
||||
msgid "E795: Cannot delete variable %s"
|
||||
msgstr "E795: Ne eblas forviŝi variablon %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E704: Funcref variable name must start with a capital: %s"
|
||||
msgstr "E704: Nomo de variablo Funcref devas finiĝi per majusklo: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E705: Variable name conflicts with existing function: %s"
|
||||
msgstr "E705: Nomo de variablo konfliktas kun ekzistanta funkcio: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E741: Value is locked: %s"
|
||||
msgstr "E741: Valoro estas ŝlosita: %s"
|
||||
@@ -1639,6 +1663,9 @@ msgstr "[NE konvertita]"
|
||||
msgid "[converted]"
|
||||
msgstr "[konvertita]"
|
||||
|
||||
msgid "[blowfish]"
|
||||
msgstr "[blowfish]"
|
||||
|
||||
msgid "[crypted]"
|
||||
msgstr "[ĉifrita]"
|
||||
|
||||
@@ -1816,6 +1843,7 @@ msgstr "1 signo"
|
||||
msgid "%lld characters"
|
||||
msgstr "%lld signoj"
|
||||
|
||||
#. Explicit typecast avoids warning on Mac OS X 10.6
|
||||
#, c-format
|
||||
msgid "%ld characters"
|
||||
msgstr "%ld signoj"
|
||||
@@ -2090,7 +2118,7 @@ msgstr "Anstataŭigi per:"
|
||||
|
||||
#. whole word only button
|
||||
msgid "Match whole word only"
|
||||
msgstr "Kongrui nur plenan vorton"
|
||||
msgstr "Kongrui kun nur plena vorto"
|
||||
|
||||
#. match case button
|
||||
msgid "Match case"
|
||||
@@ -2654,7 +2682,7 @@ msgid "E273: unknown longjmp status %d"
|
||||
msgstr "E273: nekonata stato de longjmp: %d"
|
||||
|
||||
msgid "Toggle implementation/definition"
|
||||
msgstr "Baskuli realigon/difinon"
|
||||
msgstr "Baskuligi realigon/difinon"
|
||||
|
||||
msgid "Show base class of"
|
||||
msgstr "Vidigi bazan klason de"
|
||||
@@ -2748,7 +2776,7 @@ msgid "invalid buffer number"
|
||||
msgstr "nevalida numero de bufro"
|
||||
|
||||
msgid "not implemented yet"
|
||||
msgstr "ne jam realigita"
|
||||
msgstr "ankoraŭ ne realigita"
|
||||
|
||||
#. ???
|
||||
msgid "cannot set line(s)"
|
||||
@@ -3020,7 +3048,7 @@ msgid "-r\t\t\tList swap files and exit"
|
||||
msgstr "-r\t\t\tListigi permutodosierojn .swp kaj eliri"
|
||||
|
||||
msgid "-r (with file name)\tRecover crashed session"
|
||||
msgstr "-r (kun dosiernomo)\tRestaŭri kolapsitan seancon"
|
||||
msgstr "-r (kun dosiernomo)\tRestaŭri kolapsintan seancon"
|
||||
|
||||
msgid "-L\t\t\tSame as -r"
|
||||
msgstr "-L\t\t\tKiel -r"
|
||||
@@ -3214,19 +3242,6 @@ msgstr "+reverse\t\tNe uzi inversan videon (ankaŭ: +rv)"
|
||||
msgid "-xrm <resource>\tSet the specified resource"
|
||||
msgstr "-xrm <rimedo>\tAgordi la specifitan <rimedo>-n"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"Arguments recognised by gvim (RISC OS version):\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Argumentoj agnoskitaj de gvim (versio RISC OS):\n"
|
||||
|
||||
msgid "--columns <number>\tInitial width of window in columns"
|
||||
msgstr "--columns <nombro>\tKomenca larĝo de fenestro en kolumnoj"
|
||||
|
||||
msgid "--rows <number>\tInitial height of window in rows"
|
||||
msgstr "--rows <nombro>\tKomenca alto de fenestro en vicoj"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"Arguments recognised by gvim (GTK+ version):\n"
|
||||
@@ -3634,7 +3649,7 @@ msgstr ""
|
||||
" proceza ID: "
|
||||
|
||||
msgid " (still running)"
|
||||
msgstr " (ankoraŭ rulas)"
|
||||
msgstr " (ankoraŭ ruliĝas)"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
@@ -3736,24 +3751,20 @@ msgstr " PLI NOVA ol permutodosiero .swp!\n"
|
||||
#. * other languages.
|
||||
msgid ""
|
||||
"\n"
|
||||
"(1) Another program may be editing the same file.\n"
|
||||
" If this is the case, be careful not to end up with two\n"
|
||||
" different instances of the same file when making changes.\n"
|
||||
"(1) Another program may be editing the same file. If this is the case,\n"
|
||||
" be careful not to end up with two different instances of the same\n"
|
||||
" file when making changes."
|
||||
msgstr ""
|
||||
"\n"
|
||||
"(1) Alia programo eble redaktas la saman dosieron.\n"
|
||||
" Se jes, estu singarda por ne havi du malsamajn\n"
|
||||
" aperojn de la sama dosiero, kiam vi faros ŝanĝojn.\n"
|
||||
" aperojn de la sama dosiero, kiam vi faros ŝanĝojn."
|
||||
|
||||
msgid " Quit, or continue with caution.\n"
|
||||
msgstr " Eliru, aŭ daŭrigu singarde.\n"
|
||||
msgid " Quit, or continue with caution.\n"
|
||||
msgstr " Eliru, aŭ daŭrigu singarde.\n"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"(2) An edit session for this file crashed.\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"(2) Redakta seanco de tiu dosiero kolapsis.\n"
|
||||
msgid "(2) An edit session for this file crashed.\n"
|
||||
msgstr "(2) Redakta seanco de tiu dosiero kolapsis.\n"
|
||||
|
||||
msgid " If this is the case, use \":recover\" or \"vim -r "
|
||||
msgstr " Se veras, uzu \":recover\" aŭ \"vim -r "
|
||||
@@ -4094,8 +4105,9 @@ msgstr "E838: netbeans ne estas subtenata kun tiu grafika interfaco"
|
||||
msgid "E511: netbeans already connected"
|
||||
msgstr "E511: nebeans jam konektata"
|
||||
|
||||
msgid "E505: "
|
||||
msgstr "E505: "
|
||||
#, c-format
|
||||
msgid "E505: %s is read-only (add ! to override)"
|
||||
msgstr "E505: %s estas nurlegebla (aldonu ! por transpasi)"
|
||||
|
||||
msgid "E349: No identifier under cursor"
|
||||
msgstr "E349: Neniu identigilo sub la kursoro"
|
||||
@@ -4260,6 +4272,9 @@ msgstr "E519: Opcio ne subtenata"
|
||||
msgid "E520: Not allowed in a modeline"
|
||||
msgstr "E520: Ne permesita en reĝimlinio"
|
||||
|
||||
msgid "E846: Key code not set"
|
||||
msgstr "E846: Klavkodo ne agordita"
|
||||
|
||||
msgid "E521: Number required after ="
|
||||
msgstr "E521: Nombro bezonata malantaŭ ="
|
||||
|
||||
@@ -5183,6 +5198,9 @@ msgstr "Nekonata flago en %s linio %d: %s"
|
||||
msgid "Ignored %d words with non-ASCII characters"
|
||||
msgstr "Ignoris %d vorto(j)n kun neaskiaj signoj"
|
||||
|
||||
msgid "E845: Insufficient memory, word list will be incomplete"
|
||||
msgstr "E845: Ne sufiĉe da memoro, vortlisto estos nekompleta."
|
||||
|
||||
#, c-format
|
||||
msgid "Compressed %d of %d nodes; %d (%d%%) remaining"
|
||||
msgstr "Densigis %d de %d nodoj; %d (%d%%) restantaj"
|
||||
@@ -5373,6 +5391,9 @@ msgstr "E394: Ne trovis regionan elementon por %s"
|
||||
msgid "E397: Filename required"
|
||||
msgstr "E397: Dosiernomo bezonata"
|
||||
|
||||
msgid "E847: Too many syntax includes"
|
||||
msgstr "E847: Tro da sintaksaj inkluzivoj"
|
||||
|
||||
#, c-format
|
||||
msgid "E789: Missing ']': %s"
|
||||
msgstr "E789: Mankas ']': %s"
|
||||
@@ -5385,6 +5406,9 @@ msgstr "E398: Mankas '=': %s"
|
||||
msgid "E399: Not enough arguments: syntax region %s"
|
||||
msgstr "E399: Ne sufiĉaj argumentoj: sintaksa regiono %s"
|
||||
|
||||
msgid "E848: Too many syntax clusters"
|
||||
msgstr "E848: Tro da sintaksaj grupoj"
|
||||
|
||||
msgid "E400: No cluster specified"
|
||||
msgstr "E400: Neniu fasko specifita"
|
||||
|
||||
@@ -5488,6 +5512,9 @@ msgstr "E669: Nepresebla signo en nomo de grupo"
|
||||
msgid "W18: Invalid character in group name"
|
||||
msgstr "W18: Nevalida signo en nomo de grupo"
|
||||
|
||||
msgid "E849: Too many highlight and syntax groups"
|
||||
msgstr "E849: Tro da emfazaj kaj sintaksaj grupoj"
|
||||
|
||||
msgid "E555: at bottom of tag stack"
|
||||
msgstr "E555: ĉe subo de stako de etikedoj"
|
||||
|
||||
@@ -5662,7 +5689,7 @@ msgstr "Ne legas malfaran dosieron, posedanto malsamas: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "Reading undo file: %s"
|
||||
msgstr "Legado de de malfara dosiero: %s"
|
||||
msgstr "Legado de malfara dosiero: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E822: Cannot open undo file for reading: %s"
|
||||
@@ -5839,13 +5866,6 @@ msgstr ""
|
||||
"\n"
|
||||
"Versio Mak OS"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"RISC OS version"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Versio RISC operaciumo"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"OpenVMS version"
|
||||
@@ -6035,7 +6055,7 @@ msgid "type :help version7<Enter> for version info"
|
||||
msgstr "tajpu :help version7<Enenklavo> por informo de versio"
|
||||
|
||||
msgid "Running in Vi compatible mode"
|
||||
msgstr "Rulas en reĝimo kongrua kun Vi"
|
||||
msgstr "Ruliĝas en reĝimo kongrua kun Vi"
|
||||
|
||||
# DP: atentu al la spacetoj: ĉiuj ĉenoj devas havi la saman longon
|
||||
msgid "type :set nocp<Enter> for Vim defaults"
|
||||
@@ -6050,11 +6070,11 @@ msgid "menu Help->Orphans for information "
|
||||
msgstr "menuo Help->Orfinoj por pliaj informoj "
|
||||
|
||||
msgid "Running modeless, typed text is inserted"
|
||||
msgstr "Rulas senreĝime, tajpita teksto estas enmetita"
|
||||
msgstr "Ruliĝas senreĝime, tajpita teksto estas enmetita"
|
||||
|
||||
# DP: atentu al la spacetoj: ĉiuj ĉenoj devas havi la saman longon
|
||||
msgid "menu Edit->Global Settings->Toggle Insert Mode "
|
||||
msgstr "menuo Redakti->Mallokaj Agordoj->Baskuli Enmetan Reĝimon"
|
||||
msgstr "menuo Redakti->Mallokaj Agordoj->Baskuligi Enmetan Reĝimon"
|
||||
|
||||
# DP: atentu al la spacetoj: ĉiuj ĉenoj devas havi la saman longon
|
||||
msgid " for two modes "
|
||||
@@ -6063,7 +6083,7 @@ msgstr " por du reĝimoj "
|
||||
# DP: tiu ĉeno pli longas (mi ne volas igi ĉiujn aliajn ĉenojn
|
||||
# pli longajn)
|
||||
msgid "menu Edit->Global Settings->Toggle Vi Compatible"
|
||||
msgstr "menuo Redakti->Mallokaj Agordoj->Baskuli Reĝimon Kongruan kun Vi"
|
||||
msgstr "menuo Redakti->Mallokaj Agordoj->Baskuligi Reĝimon Kongruan kun Vi"
|
||||
|
||||
# DP: atentu al la spacetoj: ĉiuj ĉenoj devas havi la saman longon
|
||||
msgid " for Vim defaults "
|
||||
@@ -6500,6 +6520,9 @@ msgstr "E139: Dosiero estas ŝargita en alia bufro"
|
||||
msgid "E764: Option '%s' is not set"
|
||||
msgstr "E764: La opcio '%s' ne estas ŝaltita"
|
||||
|
||||
msgid "E850: Invalid register name"
|
||||
msgstr "E850: Nevalida nomo de reĝistro"
|
||||
|
||||
msgid "search hit TOP, continuing at BOTTOM"
|
||||
msgstr "serĉo atingis SUPRON, daŭrigonte al SUBO"
|
||||
|
||||
@@ -6545,3 +6568,23 @@ msgstr "ne estas tia fenestro"
|
||||
|
||||
msgid "attempt to refer to deleted buffer"
|
||||
msgstr "provo de referenco al forviŝita bufro"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ "Arguments recognised by gvim (RISC OS version):\n"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ "Argumentoj agnoskitaj de gvim (versio RISC OS):\n"
|
||||
|
||||
#~ msgid "--columns <number>\tInitial width of window in columns"
|
||||
#~ msgstr "--columns <nombro>\tKomenca larĝo de fenestro en kolumnoj"
|
||||
|
||||
#~ msgid "--rows <number>\tInitial height of window in rows"
|
||||
#~ msgstr "--rows <nombro>\tKomenca alto de fenestro en vicoj"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ "RISC OS version"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ "Versio RISC operaciumo"
|
||||
|
||||
149
src/po/fr.po
149
src/po/fr.po
@@ -15,8 +15,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Vim(Fran<61>ais)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-01-26 22:14+0100\n"
|
||||
"PO-Revision-Date: 2011-10-27 19:41+0200\n"
|
||||
"POT-Creation-Date: 2011-06-21 17:23+0200\n"
|
||||
"PO-Revision-Date: 2011-06-21 17:26+0200\n"
|
||||
"Last-Translator: Dominique Pell<6C> <dominique.pelle@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -639,6 +639,9 @@ msgstr "E725: Appel d'une fonction
|
||||
msgid "E808: Number or Float required"
|
||||
msgstr "E808: Nombre ou Flottant requis"
|
||||
|
||||
msgid "add() argument"
|
||||
msgstr "argument de add()"
|
||||
|
||||
msgid "E699: Too many arguments"
|
||||
msgstr "E699: Trop d'arguments"
|
||||
|
||||
@@ -655,10 +658,19 @@ msgstr "E785: complete() n'est utilisable que dans le mode Insertion"
|
||||
msgid "&Ok"
|
||||
msgstr "&Ok"
|
||||
|
||||
msgid "extend() argument"
|
||||
msgstr "argument de extend()"
|
||||
|
||||
#, c-format
|
||||
msgid "E737: Key already exists: %s"
|
||||
msgstr "E737: un mappage existe d<>j<EFBFBD> pour %s"
|
||||
|
||||
msgid "map() argument"
|
||||
msgstr "argument de map()"
|
||||
|
||||
msgid "filter() argument"
|
||||
msgstr "argument de filter()"
|
||||
|
||||
#, c-format
|
||||
msgid "+-%s%3ld lines: "
|
||||
msgstr "+-%s%3ld lignes : "
|
||||
@@ -679,6 +691,9 @@ msgstr ""
|
||||
msgid "called inputrestore() more often than inputsave()"
|
||||
msgstr "inputrestore() a <20>t<EFBFBD> appel<65> plus de fois qu'inputsave()"
|
||||
|
||||
msgid "insert() argument"
|
||||
msgstr "argument de insert()"
|
||||
|
||||
msgid "E786: Range not allowed"
|
||||
msgstr "E786: Les plages ne sont pas autoris<69>es"
|
||||
|
||||
@@ -707,13 +722,22 @@ msgstr "E241: L'envoi au serveur %s
|
||||
msgid "E277: Unable to read a server reply"
|
||||
msgstr "E277: Impossible de lire la r<>ponse du serveur"
|
||||
|
||||
msgid "remove() argument"
|
||||
msgstr "argument de remove()"
|
||||
|
||||
msgid "E655: Too many symbolic links (cycle?)"
|
||||
msgstr "E655: Trop de liens symboliques (cycle ?)"
|
||||
|
||||
msgid "reverse() argument"
|
||||
msgstr "argument de reverse()"
|
||||
|
||||
# AB - La version fran<61>aise est meilleure que la version anglaise.
|
||||
msgid "E258: Unable to send to client"
|
||||
msgstr "E258: La r<>ponse n'a pas pu <20>tre envoy<6F>e au client"
|
||||
|
||||
msgid "sort() argument"
|
||||
msgstr "argument de sort()"
|
||||
|
||||
msgid "E702: Sort compare function failed"
|
||||
msgstr "E702: La fonction de comparaison de sort() a <20>chou<6F>"
|
||||
|
||||
@@ -747,14 +771,6 @@ msgstr "E731: Utilisation d'un Dictionnaire comme une Cha
|
||||
msgid "E806: using Float as a String"
|
||||
msgstr "E806: Utilisation d'un Flottant comme une Cha<68>ne"
|
||||
|
||||
#, c-format
|
||||
msgid "E704: Funcref variable name must start with a capital: %s"
|
||||
msgstr "E704: Le nom d'une Funcref doit commencer par une majuscule : %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E705: Variable name conflicts with existing function: %s"
|
||||
msgstr "E705: Le nom d'une variable entre en conflit avec la fonction %s"
|
||||
|
||||
# DB : On doit pouvoir trouver nettement mieux que <20>a.
|
||||
#, c-format
|
||||
msgid "E706: Variable type mismatch for: %s"
|
||||
@@ -764,6 +780,14 @@ msgstr "E706: Type de variable incoh
|
||||
msgid "E795: Cannot delete variable %s"
|
||||
msgstr "E795: Impossible de supprimer la variable %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E704: Funcref variable name must start with a capital: %s"
|
||||
msgstr "E704: Le nom d'une Funcref doit commencer par une majuscule : %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E705: Variable name conflicts with existing function: %s"
|
||||
msgstr "E705: Le nom d'une variable entre en conflit avec la fonction %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E741: Value is locked: %s"
|
||||
msgstr "E741: La valeur de %s est verrouill<6C>e"
|
||||
@@ -1468,7 +1492,8 @@ msgid "E183: User defined commands must start with an uppercase letter"
|
||||
msgstr "E183: Les commandes utilisateur doivent commencer par une majuscule"
|
||||
|
||||
msgid "E841: Reserved name, cannot be used for user defined command"
|
||||
msgstr "E841: Nom r<>serv<72>, ne peux pas <20>tre utilis<69> pour une commande utilisateur"
|
||||
msgstr ""
|
||||
"E841: Nom r<>serv<72>, ne peux pas <20>tre utilis<69> pour une commande utilisateur"
|
||||
|
||||
#, c-format
|
||||
msgid "E184: No such user-defined command: %s"
|
||||
@@ -1760,7 +1785,7 @@ msgid "E199: Active window or buffer deleted"
|
||||
msgstr "E199: Fen<65>tre ou tampon actif effac<61>"
|
||||
|
||||
msgid "E812: Autocommands changed buffer or buffer name"
|
||||
msgstr "E812: Des autocommandes on chang<6E> le tampon ou le nom du tampon"
|
||||
msgstr "E812: Des autocommandes ont chang<6E> le tampon ou le nom du tampon"
|
||||
|
||||
msgid "Illegal file name"
|
||||
msgstr "Nom de fichier invalide"
|
||||
@@ -1831,6 +1856,9 @@ msgstr "[NON converti]"
|
||||
msgid "[converted]"
|
||||
msgstr "[converti]"
|
||||
|
||||
msgid "[blowfish]"
|
||||
msgstr "[blowfish]"
|
||||
|
||||
msgid "[crypted]"
|
||||
msgstr "[chiffr<66>]"
|
||||
|
||||
@@ -2018,6 +2046,7 @@ msgstr "1 caract
|
||||
msgid "%lld characters"
|
||||
msgstr "%lld caract<63>res"
|
||||
|
||||
#. Explicit typecast avoids warning on Mac OS X 10.6
|
||||
#, c-format
|
||||
msgid "%ld characters"
|
||||
msgstr "%ld caract<63>res"
|
||||
@@ -2170,7 +2199,7 @@ msgid "E220: Missing }."
|
||||
msgstr "E220: } manquant."
|
||||
|
||||
msgid "E490: No fold found"
|
||||
msgstr "E490: Aucune repli trouv<75>"
|
||||
msgstr "E490: Aucun repli trouv<75>"
|
||||
|
||||
msgid "E350: Cannot create fold with current 'foldmethod'"
|
||||
msgstr "E350: Impossible de cr<63>er un repli avec la 'foldmethod'e actuelle"
|
||||
@@ -3441,19 +3470,6 @@ msgstr "+reverse\t\tNe pas utiliser de vid
|
||||
msgid "-xrm <resource>\tSet the specified resource"
|
||||
msgstr "-xrm <ressource>\tConfigurer la <ressource> sp<73>cifi<66>e"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"Arguments recognised by gvim (RISC OS version):\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Arguments reconnus par gvim (version RISC OS) :\n"
|
||||
|
||||
msgid "--columns <number>\tInitial width of window in columns"
|
||||
msgstr "--columns <nombre>\tNombre de colonnes initial de la fen<65>tre"
|
||||
|
||||
msgid "--rows <number>\tInitial height of window in rows"
|
||||
msgstr "--rows <nombre>\tNombre de lignes initial de la fen<65>tre"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"Arguments recognised by gvim (GTK+ version):\n"
|
||||
@@ -3971,24 +3987,20 @@ msgstr " PLUS R
|
||||
#. * other languages.
|
||||
msgid ""
|
||||
"\n"
|
||||
"(1) Another program may be editing the same file.\n"
|
||||
" If this is the case, be careful not to end up with two\n"
|
||||
" different instances of the same file when making changes.\n"
|
||||
"(1) Another program may be editing the same file. If this is the case,\n"
|
||||
" be careful not to end up with two different instances of the same\n"
|
||||
" file when making changes."
|
||||
msgstr ""
|
||||
"\n"
|
||||
"(1) Un autre programme est peut-<2D>tre en train d'<27>diter ce fichier.\n"
|
||||
" Si c'est le cas, faites attention <20> ne pas vous retrouver avec\n"
|
||||
" deux version diff<66>rentes du m<>me fichier en faisant des modifications.\n"
|
||||
" deux versions diff<66>rentes du m<>me fichier en faisant des modifications."
|
||||
|
||||
msgid " Quit, or continue with caution.\n"
|
||||
msgstr " Quittez, ou continuez prudemment.\n"
|
||||
msgid " Quit, or continue with caution.\n"
|
||||
msgstr " Quittez, ou continuez prudemment.\n"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"(2) An edit session for this file crashed.\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"(2) Une session d'<27>dition de ce fichier a plant<6E>.\n"
|
||||
msgid "(2) An edit session for this file crashed.\n"
|
||||
msgstr "(2) Une session d'<27>dition de ce fichier a plant<6E>.\n"
|
||||
|
||||
msgid " If this is the case, use \":recover\" or \"vim -r "
|
||||
msgstr " Si c'est le cas, utilisez \":recover\" ou \"vim -r "
|
||||
@@ -4331,8 +4343,9 @@ msgstr "E838: netbeans n'est pas support
|
||||
msgid "E511: netbeans already connected"
|
||||
msgstr "E511: netbeans d<>j<EFBFBD> connect<63>"
|
||||
|
||||
msgid "E505: "
|
||||
msgstr "E505: "
|
||||
#, c-format
|
||||
msgid "E505: %s is read-only (add ! to override)"
|
||||
msgstr "E505: %s est en lecture seule (ajoutez ! pour passer outre)"
|
||||
|
||||
msgid "E349: No identifier under cursor"
|
||||
msgstr "E349: Aucun identifiant sous le curseur"
|
||||
@@ -4500,6 +4513,9 @@ msgstr "E519: Option non support
|
||||
msgid "E520: Not allowed in a modeline"
|
||||
msgstr "E520: Non autoris<69> dans une ligne de mode"
|
||||
|
||||
msgid "E846: Key code not set"
|
||||
msgstr "E846: Le code de touche n'est pas configur<75>"
|
||||
|
||||
msgid "E521: Number required after ="
|
||||
msgstr "E521: Nombre requis apr<70>s ="
|
||||
|
||||
@@ -5152,7 +5168,7 @@ msgid "All included files were found"
|
||||
msgstr "Tous les fichiers inclus ont <20>t<EFBFBD> trouv<75>s"
|
||||
|
||||
msgid "No included files"
|
||||
msgstr "Aucun fichiers inclus"
|
||||
msgstr "Aucun fichier inclus"
|
||||
|
||||
msgid "E388: Couldn't find definition"
|
||||
msgstr "E388: Impossible de trouver la d<>finition"
|
||||
@@ -5296,7 +5312,7 @@ msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "Duplicate affix in %s line %d: %s"
|
||||
msgstr "Affixe dupliqu<71>e dans %s ligne %d : %s"
|
||||
msgstr "Affixe dupliqu<71> dans %s ligne %d : %s"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
@@ -5431,6 +5447,9 @@ msgstr "Drapeaux non reconnus dans %s ligne %d : %s"
|
||||
msgid "Ignored %d words with non-ASCII characters"
|
||||
msgstr "%d mot(s) ignor<6F>(s) avec des caract<63>res non-ASCII"
|
||||
|
||||
msgid "E845: Insufficient memory, word list will be incomplete"
|
||||
msgstr "E845: m<>moire insuffisante, liste de mots peut-<2D>tre incompl<70>te"
|
||||
|
||||
#, c-format
|
||||
msgid "Compressed %d of %d nodes; %d (%d%%) remaining"
|
||||
msgstr "%d noeuds compress<73>s sur %d ; %d (%d%%) restants "
|
||||
@@ -5496,7 +5515,7 @@ msgstr "Mot ajout
|
||||
|
||||
msgid "E763: Word characters differ between spell files"
|
||||
msgstr ""
|
||||
"E763: Les caract<63>res de mots diff<66>rent entre les fichier orthographiques"
|
||||
"E763: Les caract<63>res de mots diff<66>rent entre les fichiers orthographiques"
|
||||
|
||||
msgid "Sorry, no suggestions"
|
||||
msgstr "D<>sol<6F>, aucune suggestion"
|
||||
@@ -5627,6 +5646,9 @@ msgstr "E394: Aucun
|
||||
msgid "E397: Filename required"
|
||||
msgstr "E397: Nom de fichier requis"
|
||||
|
||||
msgid "E847: Too many syntax includes"
|
||||
msgstr "E847: Trop d'inclusions de syntaxe"
|
||||
|
||||
#, c-format
|
||||
msgid "E789: Missing ']': %s"
|
||||
msgstr "E789: ']' manquant : %s"
|
||||
@@ -5639,6 +5661,9 @@ msgstr "E398: '=' manquant : %s"
|
||||
msgid "E399: Not enough arguments: syntax region %s"
|
||||
msgstr "E399: Pas assez d'arguments : syntax region %s"
|
||||
|
||||
msgid "E848: Too many syntax clusters"
|
||||
msgstr "E848: Trop de grappes de syntaxe"
|
||||
|
||||
msgid "E400: No cluster specified"
|
||||
msgstr "E400: Aucune grappe sp<73>cifi<66>e"
|
||||
|
||||
@@ -5744,6 +5769,9 @@ msgstr "E669: Caract
|
||||
msgid "W18: Invalid character in group name"
|
||||
msgstr "W18: Caract<63>re invalide dans un nom de groupe"
|
||||
|
||||
msgid "E849: Too many highlight and syntax groups"
|
||||
msgstr "E849: Trop de groupes de surbrillance et de syntaxe"
|
||||
|
||||
msgid "E555: at bottom of tag stack"
|
||||
msgstr "E555: En bas de la pile de marqueurs"
|
||||
|
||||
@@ -5899,7 +5927,7 @@ msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "Will not overwrite with undo file, cannot read: %s"
|
||||
msgstr "Le fichier d'annulations de sera pas <20>cras<61>, impossible de lire : %s"
|
||||
msgstr "Le fichier d'annulations ne sera pas <20>cras<61>, impossible de lire : %s"
|
||||
|
||||
#, c-format
|
||||
msgid "Will not overwrite, this is not an undo file: %s"
|
||||
@@ -6102,13 +6130,6 @@ msgstr ""
|
||||
"\n"
|
||||
"Version MacOS"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"RISC OS version"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Version RISC OS"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
"OpenVMS version"
|
||||
@@ -6762,6 +6783,9 @@ msgstr "E139: Le fichier est charg
|
||||
msgid "E764: Option '%s' is not set"
|
||||
msgstr "E764: L'option '%s' n'est pas activ<69>e"
|
||||
|
||||
msgid "E850: Invalid register name"
|
||||
msgstr "E850: Nom de registre invalide"
|
||||
|
||||
msgid "search hit TOP, continuing at BOTTOM"
|
||||
msgstr "La recherche a atteint le HAUT, et continue en BAS"
|
||||
|
||||
@@ -6807,3 +6831,26 @@ msgstr "Cette fen
|
||||
|
||||
msgid "attempt to refer to deleted buffer"
|
||||
msgstr "tentative de r<>f<EFBFBD>rencer un tampon effac<61>"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ "Arguments recognised by gvim (RISC OS version):\n"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ "Arguments reconnus par gvim (version RISC OS) :\n"
|
||||
|
||||
#~ msgid "--columns <number>\tInitial width of window in columns"
|
||||
#~ msgstr "--columns <nombre>\tNombre de colonnes initial de la fen<65>tre"
|
||||
|
||||
#~ msgid "--rows <number>\tInitial height of window in rows"
|
||||
#~ msgstr "--rows <nombre>\tNombre de lignes initial de la fen<65>tre"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ "RISC OS version"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ "Version RISC OS"
|
||||
|
||||
#~ msgid "E505: "
|
||||
#~ msgstr "E505: "
|
||||
|
||||
239
src/regexp.c
239
src/regexp.c
@@ -666,8 +666,12 @@ static char_u *regnext __ARGS((char_u *));
|
||||
static void regc __ARGS((int b));
|
||||
#ifdef FEAT_MBYTE
|
||||
static void regmbc __ARGS((int c));
|
||||
# define REGMBC(x) regmbc(x);
|
||||
# define CASEMBC(x) case x:
|
||||
#else
|
||||
# define regmbc(c) regc(c)
|
||||
# define REGMBC(x)
|
||||
# define CASEMBC(x)
|
||||
#endif
|
||||
static void reginsert __ARGS((int, char_u *));
|
||||
static void reginsert_limits __ARGS((int, long, long, char_u *));
|
||||
@@ -787,68 +791,295 @@ reg_equi_class(c)
|
||||
switch (c)
|
||||
{
|
||||
case 'A': case '\300': case '\301': case '\302':
|
||||
CASEMBC(0x100) CASEMBC(0x102) CASEMBC(0x104) CASEMBC(0x1cd)
|
||||
CASEMBC(0x1de) CASEMBC(0x1e0) CASEMBC(0x1ea2)
|
||||
case '\303': case '\304': case '\305':
|
||||
regmbc('A'); regmbc('\300'); regmbc('\301');
|
||||
regmbc('\302'); regmbc('\303'); regmbc('\304');
|
||||
regmbc('\305');
|
||||
REGMBC(0x100) REGMBC(0x102) REGMBC(0x104)
|
||||
REGMBC(0x1cd) REGMBC(0x1de) REGMBC(0x1e0)
|
||||
REGMBC(0x1ea2)
|
||||
return;
|
||||
case 'B': CASEMBC(0x1e02) CASEMBC(0x1e06)
|
||||
regmbc('B'); REGMBC(0x1e02) REGMBC(0x1e06)
|
||||
return;
|
||||
case 'C': case '\307':
|
||||
CASEMBC(0x106) CASEMBC(0x108) CASEMBC(0x10a) CASEMBC(0x10c)
|
||||
regmbc('C'); regmbc('\307');
|
||||
REGMBC(0x106) REGMBC(0x108) REGMBC(0x10a)
|
||||
REGMBC(0x10c)
|
||||
return;
|
||||
case 'D': CASEMBC(0x10e) CASEMBC(0x110) CASEMBC(0x1e0a)
|
||||
CASEMBC(0x1e0e) CASEMBC(0x1e10)
|
||||
regmbc('D'); REGMBC(0x10e) REGMBC(0x110)
|
||||
REGMBC(0x1e0a) REGMBC(0x1e0e) REGMBC(0x1e10)
|
||||
return;
|
||||
case 'E': case '\310': case '\311': case '\312': case '\313':
|
||||
CASEMBC(0x112) CASEMBC(0x114) CASEMBC(0x116) CASEMBC(0x118)
|
||||
CASEMBC(0x11a) CASEMBC(0x1eba) CASEMBC(0x1ebc)
|
||||
regmbc('E'); regmbc('\310'); regmbc('\311');
|
||||
regmbc('\312'); regmbc('\313');
|
||||
REGMBC(0x112) REGMBC(0x114) REGMBC(0x116)
|
||||
REGMBC(0x118) REGMBC(0x11a) REGMBC(0x1eba)
|
||||
REGMBC(0x1ebc)
|
||||
return;
|
||||
case 'F': CASEMBC(0x1e1e)
|
||||
regmbc('F'); REGMBC(0x1e1e)
|
||||
return;
|
||||
case 'G': CASEMBC(0x11c) CASEMBC(0x11e) CASEMBC(0x120)
|
||||
CASEMBC(0x122) CASEMBC(0x1e4) CASEMBC(0x1e6) CASEMBC(0x1f4)
|
||||
CASEMBC(0x1e20)
|
||||
regmbc('G'); REGMBC(0x11c) REGMBC(0x11e)
|
||||
REGMBC(0x120) REGMBC(0x122) REGMBC(0x1e4)
|
||||
REGMBC(0x1e6) REGMBC(0x1f4) REGMBC(0x1e20)
|
||||
return;
|
||||
case 'H': CASEMBC(0x124) CASEMBC(0x126) CASEMBC(0x1e22)
|
||||
CASEMBC(0x1e26) CASEMBC(0x1e28)
|
||||
regmbc('H'); REGMBC(0x124) REGMBC(0x126)
|
||||
REGMBC(0x1e22) REGMBC(0x1e26) REGMBC(0x1e28)
|
||||
return;
|
||||
case 'I': case '\314': case '\315': case '\316': case '\317':
|
||||
CASEMBC(0x128) CASEMBC(0x12a) CASEMBC(0x12c) CASEMBC(0x12e)
|
||||
CASEMBC(0x130) CASEMBC(0x1cf) CASEMBC(0x1ec8)
|
||||
regmbc('I'); regmbc('\314'); regmbc('\315');
|
||||
regmbc('\316'); regmbc('\317');
|
||||
REGMBC(0x128) REGMBC(0x12a) REGMBC(0x12c)
|
||||
REGMBC(0x12e) REGMBC(0x130) REGMBC(0x1cf)
|
||||
REGMBC(0x1ec8)
|
||||
return;
|
||||
case 'J': CASEMBC(0x134)
|
||||
regmbc('J'); REGMBC(0x134)
|
||||
return;
|
||||
case 'K': CASEMBC(0x136) CASEMBC(0x1e8) CASEMBC(0x1e30)
|
||||
CASEMBC(0x1e34)
|
||||
regmbc('K'); REGMBC(0x136) REGMBC(0x1e8)
|
||||
REGMBC(0x1e30) REGMBC(0x1e34)
|
||||
return;
|
||||
case 'L': CASEMBC(0x139) CASEMBC(0x13b) CASEMBC(0x13d)
|
||||
CASEMBC(0x13f) CASEMBC(0x141) CASEMBC(0x1e3a)
|
||||
regmbc('L'); REGMBC(0x139) REGMBC(0x13b)
|
||||
REGMBC(0x13d) REGMBC(0x13f) REGMBC(0x141)
|
||||
REGMBC(0x1e3a)
|
||||
return;
|
||||
case 'M': CASEMBC(0x1e3e) CASEMBC(0x1e40)
|
||||
regmbc('M'); REGMBC(0x1e3e) REGMBC(0x1e40)
|
||||
return;
|
||||
case 'N': case '\321':
|
||||
CASEMBC(0x143) CASEMBC(0x145) CASEMBC(0x147) CASEMBC(0x1e44)
|
||||
CASEMBC(0x1e48)
|
||||
regmbc('N'); regmbc('\321');
|
||||
REGMBC(0x143) REGMBC(0x145) REGMBC(0x147)
|
||||
REGMBC(0x1e44) REGMBC(0x1e48)
|
||||
return;
|
||||
case 'O': case '\322': case '\323': case '\324': case '\325':
|
||||
case '\326':
|
||||
case '\326': case '\330':
|
||||
CASEMBC(0x14c) CASEMBC(0x14e) CASEMBC(0x150) CASEMBC(0x1a0)
|
||||
CASEMBC(0x1d1) CASEMBC(0x1ea) CASEMBC(0x1ec) CASEMBC(0x1ece)
|
||||
regmbc('O'); regmbc('\322'); regmbc('\323');
|
||||
regmbc('\324'); regmbc('\325'); regmbc('\326');
|
||||
regmbc('\330');
|
||||
REGMBC(0x14c) REGMBC(0x14e) REGMBC(0x150)
|
||||
REGMBC(0x1a0) REGMBC(0x1d1) REGMBC(0x1ea)
|
||||
REGMBC(0x1ec) REGMBC(0x1ece)
|
||||
return;
|
||||
case 'P': case 0x1e54: case 0x1e56:
|
||||
regmbc('P'); REGMBC(0x1e54) REGMBC(0x1e56)
|
||||
return;
|
||||
case 'R': CASEMBC(0x154) CASEMBC(0x156) CASEMBC(0x158)
|
||||
CASEMBC(0x1e58) CASEMBC(0x1e5e)
|
||||
regmbc('R'); REGMBC(0x154) REGMBC(0x156) REGMBC(0x158)
|
||||
REGMBC(0x1e58) REGMBC(0x1e5e)
|
||||
return;
|
||||
case 'S': CASEMBC(0x15a) CASEMBC(0x15c) CASEMBC(0x15e)
|
||||
CASEMBC(0x160) CASEMBC(0x1e60)
|
||||
regmbc('S'); REGMBC(0x15a) REGMBC(0x15c)
|
||||
REGMBC(0x15e) REGMBC(0x160) REGMBC(0x1e60)
|
||||
return;
|
||||
case 'T': CASEMBC(0x162) CASEMBC(0x164) CASEMBC(0x166)
|
||||
CASEMBC(0x1e6a) CASEMBC(0x1e6e)
|
||||
regmbc('T'); REGMBC(0x162) REGMBC(0x164)
|
||||
REGMBC(0x166) REGMBC(0x1e6a) REGMBC(0x1e6e)
|
||||
return;
|
||||
case 'U': case '\331': case '\332': case '\333': case '\334':
|
||||
CASEMBC(0x168) CASEMBC(0x16a) CASEMBC(0x16c) CASEMBC(0x16e)
|
||||
CASEMBC(0x170) CASEMBC(0x172) CASEMBC(0x1af) CASEMBC(0x1d3)
|
||||
CASEMBC(0x1ee6)
|
||||
regmbc('U'); regmbc('\331'); regmbc('\332');
|
||||
regmbc('\333'); regmbc('\334');
|
||||
REGMBC(0x168) REGMBC(0x16a) REGMBC(0x16c)
|
||||
REGMBC(0x16e) REGMBC(0x170) REGMBC(0x172)
|
||||
REGMBC(0x1af) REGMBC(0x1d3) REGMBC(0x1ee6)
|
||||
return;
|
||||
case 'V': CASEMBC(0x1e7c)
|
||||
regmbc('V'); REGMBC(0x1e7c)
|
||||
return;
|
||||
case 'W': CASEMBC(0x174) CASEMBC(0x1e80) CASEMBC(0x1e82)
|
||||
CASEMBC(0x1e84) CASEMBC(0x1e86)
|
||||
regmbc('W'); REGMBC(0x174) REGMBC(0x1e80)
|
||||
REGMBC(0x1e82) REGMBC(0x1e84) REGMBC(0x1e86)
|
||||
return;
|
||||
case 'X': CASEMBC(0x1e8a) CASEMBC(0x1e8c)
|
||||
regmbc('X'); REGMBC(0x1e8a) REGMBC(0x1e8c)
|
||||
return;
|
||||
case 'Y': case '\335':
|
||||
CASEMBC(0x176) CASEMBC(0x178) CASEMBC(0x1e8e) CASEMBC(0x1ef2)
|
||||
CASEMBC(0x1ef6) CASEMBC(0x1ef8)
|
||||
regmbc('Y'); regmbc('\335');
|
||||
REGMBC(0x176) REGMBC(0x178) REGMBC(0x1e8e)
|
||||
REGMBC(0x1ef2) REGMBC(0x1ef6) REGMBC(0x1ef8)
|
||||
return;
|
||||
case 'Z': CASEMBC(0x179) CASEMBC(0x17b) CASEMBC(0x17d)
|
||||
CASEMBC(0x1b5) CASEMBC(0x1e90) CASEMBC(0x1e94)
|
||||
regmbc('Z'); REGMBC(0x179) REGMBC(0x17b)
|
||||
REGMBC(0x17d) REGMBC(0x1b5) REGMBC(0x1e90)
|
||||
REGMBC(0x1e94)
|
||||
return;
|
||||
case 'a': case '\340': case '\341': case '\342':
|
||||
case '\343': case '\344': case '\345':
|
||||
CASEMBC(0x101) CASEMBC(0x103) CASEMBC(0x105) CASEMBC(0x1ce)
|
||||
CASEMBC(0x1df) CASEMBC(0x1e1) CASEMBC(0x1ea3)
|
||||
regmbc('a'); regmbc('\340'); regmbc('\341');
|
||||
regmbc('\342'); regmbc('\343'); regmbc('\344');
|
||||
regmbc('\345');
|
||||
REGMBC(0x101) REGMBC(0x103) REGMBC(0x105)
|
||||
REGMBC(0x1ce) REGMBC(0x1df) REGMBC(0x1e1)
|
||||
REGMBC(0x1ea3)
|
||||
return;
|
||||
case 'b': CASEMBC(0x1e03) CASEMBC(0x1e07)
|
||||
regmbc('b'); REGMBC(0x1e03) REGMBC(0x1e07)
|
||||
return;
|
||||
case 'c': case '\347':
|
||||
CASEMBC(0x107) CASEMBC(0x109) CASEMBC(0x10b) CASEMBC(0x10d)
|
||||
regmbc('c'); regmbc('\347');
|
||||
REGMBC(0x107) REGMBC(0x109) REGMBC(0x10b)
|
||||
REGMBC(0x10d)
|
||||
return;
|
||||
case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1d0b)
|
||||
CASEMBC(0x1e11)
|
||||
regmbc('d'); REGMBC(0x10f) REGMBC(0x111)
|
||||
REGMBC(0x1e0b) REGMBC(0x01e0f) REGMBC(0x1e11)
|
||||
return;
|
||||
case 'e': case '\350': case '\351': case '\352': case '\353':
|
||||
CASEMBC(0x113) CASEMBC(0x115) CASEMBC(0x117) CASEMBC(0x119)
|
||||
CASEMBC(0x11b) CASEMBC(0x1ebb) CASEMBC(0x1ebd)
|
||||
regmbc('e'); regmbc('\350'); regmbc('\351');
|
||||
regmbc('\352'); regmbc('\353');
|
||||
REGMBC(0x113) REGMBC(0x115) REGMBC(0x117)
|
||||
REGMBC(0x119) REGMBC(0x11b) REGMBC(0x1ebb)
|
||||
REGMBC(0x1ebd)
|
||||
return;
|
||||
case 'f': CASEMBC(0x1e1f)
|
||||
regmbc('f'); REGMBC(0x1e1f)
|
||||
return;
|
||||
case 'g': CASEMBC(0x11d) CASEMBC(0x11f) CASEMBC(0x121)
|
||||
CASEMBC(0x123) CASEMBC(0x1e5) CASEMBC(0x1e7) CASEMBC(0x1f5)
|
||||
CASEMBC(0x1e21)
|
||||
regmbc('g'); REGMBC(0x11d) REGMBC(0x11f)
|
||||
REGMBC(0x121) REGMBC(0x123) REGMBC(0x1e5)
|
||||
REGMBC(0x1e7) REGMBC(0x1f5) REGMBC(0x1e21)
|
||||
return;
|
||||
case 'h': CASEMBC(0x125) CASEMBC(0x127) CASEMBC(0x1e23)
|
||||
CASEMBC(0x1e27) CASEMBC(0x1e29) CASEMBC(0x1e96)
|
||||
regmbc('h'); REGMBC(0x125) REGMBC(0x127)
|
||||
REGMBC(0x1e23) REGMBC(0x1e27) REGMBC(0x1e29)
|
||||
REGMBC(0x1e96)
|
||||
return;
|
||||
case 'i': case '\354': case '\355': case '\356': case '\357':
|
||||
CASEMBC(0x129) CASEMBC(0x12b) CASEMBC(0x12d) CASEMBC(0x12f)
|
||||
CASEMBC(0x1d0) CASEMBC(0x1ec9)
|
||||
regmbc('i'); regmbc('\354'); regmbc('\355');
|
||||
regmbc('\356'); regmbc('\357');
|
||||
REGMBC(0x129) REGMBC(0x12b) REGMBC(0x12d)
|
||||
REGMBC(0x12f) REGMBC(0x1d0) REGMBC(0x1ec9)
|
||||
return;
|
||||
case 'j': CASEMBC(0x135) CASEMBC(0x1f0)
|
||||
regmbc('j'); REGMBC(0x135) REGMBC(0x1f0)
|
||||
return;
|
||||
case 'k': CASEMBC(0x137) CASEMBC(0x1e9) CASEMBC(0x1e31)
|
||||
CASEMBC(0x1e35)
|
||||
regmbc('k'); REGMBC(0x137) REGMBC(0x1e9)
|
||||
REGMBC(0x1e31) REGMBC(0x1e35)
|
||||
return;
|
||||
case 'l': CASEMBC(0x13a) CASEMBC(0x13c) CASEMBC(0x13e)
|
||||
CASEMBC(0x140) CASEMBC(0x142) CASEMBC(0x1e3b)
|
||||
regmbc('l'); REGMBC(0x13a) REGMBC(0x13c)
|
||||
REGMBC(0x13e) REGMBC(0x140) REGMBC(0x142)
|
||||
REGMBC(0x1e3b)
|
||||
return;
|
||||
case 'm': CASEMBC(0x1e3f) CASEMBC(0x1e41)
|
||||
regmbc('m'); REGMBC(0x1e3f) REGMBC(0x1e41)
|
||||
return;
|
||||
case 'n': case '\361':
|
||||
CASEMBC(0x144) CASEMBC(0x146) CASEMBC(0x148) CASEMBC(0x149)
|
||||
CASEMBC(0x1e45) CASEMBC(0x1e49)
|
||||
regmbc('n'); regmbc('\361');
|
||||
REGMBC(0x144) REGMBC(0x146) REGMBC(0x148)
|
||||
REGMBC(0x149) REGMBC(0x1e45) REGMBC(0x1e49)
|
||||
return;
|
||||
case 'o': case '\362': case '\363': case '\364': case '\365':
|
||||
case '\366':
|
||||
case '\366': case '\370':
|
||||
CASEMBC(0x14d) CASEMBC(0x14f) CASEMBC(0x151) CASEMBC(0x1a1)
|
||||
CASEMBC(0x1d2) CASEMBC(0x1eb) CASEMBC(0x1ed) CASEMBC(0x1ecf)
|
||||
regmbc('o'); regmbc('\362'); regmbc('\363');
|
||||
regmbc('\364'); regmbc('\365'); regmbc('\366');
|
||||
regmbc('\370');
|
||||
REGMBC(0x14d) REGMBC(0x14f) REGMBC(0x151)
|
||||
REGMBC(0x1a1) REGMBC(0x1d2) REGMBC(0x1eb)
|
||||
REGMBC(0x1ed) REGMBC(0x1ecf)
|
||||
return;
|
||||
case 'p': CASEMBC(0x1e55) CASEMBC(0x1e57)
|
||||
regmbc('p'); REGMBC(0x1e55) REGMBC(0x1e57)
|
||||
return;
|
||||
case 'r': CASEMBC(0x155) CASEMBC(0x157) CASEMBC(0x159)
|
||||
CASEMBC(0x1e59) CASEMBC(0x1e5f)
|
||||
regmbc('r'); REGMBC(0x155) REGMBC(0x157) REGMBC(0x159)
|
||||
REGMBC(0x1e59) REGMBC(0x1e5f)
|
||||
return;
|
||||
case 's': CASEMBC(0x15b) CASEMBC(0x15d) CASEMBC(0x15f)
|
||||
CASEMBC(0x161) CASEMBC(0x1e61)
|
||||
regmbc('s'); REGMBC(0x15b) REGMBC(0x15d)
|
||||
REGMBC(0x15f) REGMBC(0x161) REGMBC(0x1e61)
|
||||
return;
|
||||
case 't': CASEMBC(0x163) CASEMBC(0x165) CASEMBC(0x167)
|
||||
CASEMBC(0x1e6b) CASEMBC(0x1e6f) CASEMBC(0x1e97)
|
||||
regmbc('t'); REGMBC(0x163) REGMBC(0x165) REGMBC(0x167)
|
||||
REGMBC(0x1e6b) REGMBC(0x1e6f) REGMBC(0x1e97)
|
||||
return;
|
||||
case 'u': case '\371': case '\372': case '\373': case '\374':
|
||||
CASEMBC(0x169) CASEMBC(0x16b) CASEMBC(0x16d) CASEMBC(0x16f)
|
||||
CASEMBC(0x171) CASEMBC(0x173) CASEMBC(0x1b0) CASEMBC(0x1d4)
|
||||
CASEMBC(0x1ee7)
|
||||
regmbc('u'); regmbc('\371'); regmbc('\372');
|
||||
regmbc('\373'); regmbc('\374');
|
||||
REGMBC(0x169) REGMBC(0x16b) REGMBC(0x16d)
|
||||
REGMBC(0x16f) REGMBC(0x171) REGMBC(0x173)
|
||||
REGMBC(0x1b0) REGMBC(0x1d4) REGMBC(0x1ee7)
|
||||
return;
|
||||
case 'v': CASEMBC(0x1e7d)
|
||||
regmbc('v'); REGMBC(0x1e7d)
|
||||
return;
|
||||
case 'w': CASEMBC(0x175) CASEMBC(0x1e81) CASEMBC(0x1e83)
|
||||
CASEMBC(0x1e85) CASEMBC(0x1e87) CASEMBC(0x1e98)
|
||||
regmbc('w'); REGMBC(0x175) REGMBC(0x1e81)
|
||||
REGMBC(0x1e83) REGMBC(0x1e85) REGMBC(0x1e87)
|
||||
REGMBC(0x1e98)
|
||||
return;
|
||||
case 'x': CASEMBC(0x1e8b) CASEMBC(0x1e8d)
|
||||
regmbc('x'); REGMBC(0x1e8b) REGMBC(0x1e8d)
|
||||
return;
|
||||
case 'y': case '\375': case '\377':
|
||||
CASEMBC(0x177) CASEMBC(0x1e8f) CASEMBC(0x1e99)
|
||||
CASEMBC(0x1ef3) CASEMBC(0x1ef7) CASEMBC(0x1ef9)
|
||||
regmbc('y'); regmbc('\375'); regmbc('\377');
|
||||
REGMBC(0x177) REGMBC(0x1e8f) REGMBC(0x1e99)
|
||||
REGMBC(0x1ef3) REGMBC(0x1ef7) REGMBC(0x1ef9)
|
||||
return;
|
||||
case 'z': CASEMBC(0x17a) CASEMBC(0x17c) CASEMBC(0x17e)
|
||||
CASEMBC(0x1b6) CASEMBC(0x1e91) CASEMBC(0x1e95)
|
||||
regmbc('z'); REGMBC(0x17a) REGMBC(0x17c)
|
||||
REGMBC(0x17e) REGMBC(0x1b6) REGMBC(0x1e91)
|
||||
REGMBC(0x1e95)
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@@ -2468,6 +2699,8 @@ regc(b)
|
||||
regmbc(c)
|
||||
int c;
|
||||
{
|
||||
if (!has_mbyte && c > 0xff)
|
||||
return;
|
||||
if (regcode == JUST_CALC_SIZE)
|
||||
regsize += (*mb_char2len)(c);
|
||||
else
|
||||
@@ -2588,7 +2821,7 @@ regtail(p, val)
|
||||
else
|
||||
offset = (int)(val - scan);
|
||||
/* When the offset uses more than 16 bits it can no longer fit in the two
|
||||
* bytes avaliable. Use a global flag to avoid having to check return
|
||||
* bytes available. Use a global flag to avoid having to check return
|
||||
* values in too many places. */
|
||||
if (offset > 0xffff)
|
||||
reg_toolong = TRUE;
|
||||
|
||||
@@ -1585,7 +1585,7 @@ searchc(cap, t_cmd)
|
||||
/* Force a move of at least one char, so ";" and "," will move the
|
||||
* cursor, even if the cursor is right in front of char we are looking
|
||||
* at. */
|
||||
if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1)
|
||||
if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1 && t_cmd)
|
||||
stop = FALSE;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test66.out test67.out test68.out test69.out test70.out \
|
||||
test71.out test72.out test73.out test74.out test75.out \
|
||||
test76.out test77.out test78.out test79.out test80.out \
|
||||
test81.out
|
||||
test81.out test82.out
|
||||
|
||||
.SUFFIXES: .in .out
|
||||
|
||||
@@ -130,3 +130,4 @@ test78.out: test78.in
|
||||
test79.out: test79.in
|
||||
test80.out: test80.in
|
||||
test81.out: test81.in
|
||||
test82.out: test82.in
|
||||
|
||||
@@ -29,7 +29,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test42.out test52.out test65.out test66.out test67.out \
|
||||
test68.out test69.out test71.out test72.out test73.out \
|
||||
test74.out test75.out test76.out test77.out test78.out \
|
||||
test79.out test80.out test81.out
|
||||
test79.out test80.out test81.out test82.out
|
||||
|
||||
SCRIPTS32 = test50.out test70.out
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test42.out test52.out test65.out test66.out test67.out \
|
||||
test68.out test69.out test71.out test72.out test73.out \
|
||||
test74.out test75.out test76.out test77.out test78.out \
|
||||
test79.out test80.out test81.out
|
||||
test79.out test80.out test81.out test82.out
|
||||
|
||||
SCRIPTS32 = test50.out test70.out
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test66.out test67.out test68.out test69.out test70.out \
|
||||
test71.out test72.out test73.out test74.out test75.out \
|
||||
test76.out test77.out test78.out test79.out test80.out \
|
||||
test81.out
|
||||
test81.out test82.out
|
||||
|
||||
.SUFFIXES: .in .out
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
||||
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
||||
#
|
||||
# Last change: 2011 Jun 26
|
||||
# Last change: 2011 Jul 15
|
||||
#
|
||||
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
||||
# Edit the lines in the Configuration section below to select.
|
||||
@@ -75,7 +75,8 @@ SCRIPT = test1.out test2.out test3.out test4.out test5.out \
|
||||
test61.out test62.out test63.out test64.out test65.out \
|
||||
test66.out test67.out test68.out test69.out \
|
||||
test71.out test72.out test74.out test75.out test76.out \
|
||||
test77.out test78.out test79.out test80.out test81.out
|
||||
test77.out test78.out test79.out test80.out test81.out \
|
||||
test82.out
|
||||
|
||||
# Known problems:
|
||||
# Test 30: a problem around mac format - unknown reason
|
||||
|
||||
@@ -26,7 +26,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
||||
test64.out test65.out test66.out test67.out test68.out \
|
||||
test69.out test70.out test71.out test72.out test73.out \
|
||||
test74.out test75.out test76.out test77.out test78.out \
|
||||
test79.out test80.out test81.out
|
||||
test79.out test80.out test81.out test82.out
|
||||
|
||||
SCRIPTS_GUI = test16.out
|
||||
|
||||
|
||||
@@ -1450,6 +1450,36 @@ void func3(void)
|
||||
int tab[] = {
|
||||
1, 2,
|
||||
3, 4,
|
||||
5, 6};
|
||||
|
||||
printf("Don't you dare indent this line incorrectly!\n);
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
:set cino&
|
||||
:set cino+=l1
|
||||
2kdd=][
|
||||
ENDTEST
|
||||
|
||||
void func(void)
|
||||
{
|
||||
int tab[] =
|
||||
{
|
||||
1, 2, 3,
|
||||
4, 5, 6};
|
||||
|
||||
printf("Indent this line correctly!\n");
|
||||
|
||||
switch (foo)
|
||||
{
|
||||
case bar:
|
||||
printf("bar");
|
||||
break;
|
||||
case baz: {
|
||||
printf("baz");
|
||||
break;
|
||||
}
|
||||
case quux:
|
||||
printf("But don't break the indentation of this instruction\n");
|
||||
break;
|
||||
}
|
||||
@@ -1562,7 +1592,7 @@ NAMESPACEEND
|
||||
namespace111111111
|
||||
{
|
||||
111111111111111111;
|
||||
}
|
||||
}
|
||||
NAMESPACEEND
|
||||
|
||||
|
||||
@@ -1582,6 +1612,145 @@ x: 4,
|
||||
a : 2,
|
||||
b: "123abc",
|
||||
x: 4,
|
||||
"y": 5
|
||||
}
|
||||
}
|
||||
JSEND
|
||||
|
||||
STARTTEST
|
||||
:set cino=j1,J1
|
||||
/^JSSTART
|
||||
=/^JSEND
|
||||
ENDTEST
|
||||
|
||||
JSSTART
|
||||
var foo = [
|
||||
1, // indent 8 more
|
||||
2,
|
||||
3
|
||||
]; // indent 8 less
|
||||
JSEND
|
||||
|
||||
STARTTEST
|
||||
:set cino=j1,J1
|
||||
/^JSSTART
|
||||
=/^JSEND
|
||||
ENDTEST
|
||||
|
||||
JSSTART
|
||||
function bar() {
|
||||
var foo = [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]; // indent 16 less
|
||||
}
|
||||
JSEND
|
||||
|
||||
STARTTEST
|
||||
:set cino=j1,J1
|
||||
/^JSSTART
|
||||
=/^JSEND
|
||||
ENDTEST
|
||||
|
||||
JSSTART
|
||||
(function($){
|
||||
|
||||
var class_name='myclass';
|
||||
|
||||
function private_method() {
|
||||
}
|
||||
|
||||
var public_method={
|
||||
method: function(options,args){
|
||||
private_method();
|
||||
}
|
||||
}
|
||||
|
||||
function init(options) {
|
||||
|
||||
$(this).data(class_name+'_public',$.extend({},{
|
||||
foo: 'bar',
|
||||
bar: 2, // indent 8 more
|
||||
foobar: [ // indent 8 more
|
||||
1, // indent 8 more
|
||||
2, // indent 16 more
|
||||
3 // indent 16 more
|
||||
],
|
||||
callback: function(){ // indent 8 more
|
||||
return true; // indent 8 more
|
||||
} // indent 8 more
|
||||
}, options||{}));
|
||||
}
|
||||
|
||||
$.fn[class_name]=function() {
|
||||
|
||||
var _arguments=arguments;
|
||||
return this.each(function(){
|
||||
|
||||
var options=$(this).data(class_name+'_public');
|
||||
if (!options) {
|
||||
init.apply(this,_arguments);
|
||||
|
||||
} else {
|
||||
var method=public_method[_arguments[0]];
|
||||
|
||||
if (typeof(method)!='function') {
|
||||
console.log(class_name+' has no method "'+_arguments[0]+'"');
|
||||
return false;
|
||||
}
|
||||
_arguments[0]=options;
|
||||
method.apply(this,_arguments);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
JSEND
|
||||
|
||||
STARTTEST
|
||||
:set cino=j1,J1
|
||||
/^JSSTART
|
||||
=/^JSEND
|
||||
ENDTEST
|
||||
|
||||
JSSTART
|
||||
function init(options) {
|
||||
$(this).data(class_name+'_public',$.extend({},{
|
||||
foo: 'bar',
|
||||
bar: 2,
|
||||
foobar: [
|
||||
1, // indent 8 more
|
||||
2, // indent 8 more
|
||||
3 // indent 8 more
|
||||
],
|
||||
callback: function(){
|
||||
return true;
|
||||
}
|
||||
}, options||{}));
|
||||
}
|
||||
JSEND
|
||||
|
||||
STARTTEST
|
||||
:set cino=j1,J1
|
||||
/^JSSTART
|
||||
=/^JSEND
|
||||
ENDTEST
|
||||
|
||||
JSSTART
|
||||
(function($){
|
||||
function init(options) {
|
||||
$(this).data(class_name+'_public',$.extend({},{
|
||||
foo: 'bar',
|
||||
bar: 2, // indent 8 more
|
||||
foobar: [ // indent 8 more
|
||||
1, // indent 8 more
|
||||
2, // indent 16 more
|
||||
3 // indent 16 more
|
||||
],
|
||||
callback: function(){ // indent 8 more
|
||||
return true; // indent 8 more
|
||||
} // indent 8 more
|
||||
}, options||{}));
|
||||
}
|
||||
})(jQuery);
|
||||
|
||||
@@ -1308,6 +1308,31 @@ void func3(void)
|
||||
}
|
||||
|
||||
|
||||
void func(void)
|
||||
{
|
||||
int tab[] =
|
||||
{
|
||||
1, 2, 3,
|
||||
4, 5, 6};
|
||||
|
||||
printf("Indent this line correctly!\n");
|
||||
|
||||
switch (foo)
|
||||
{
|
||||
case bar:
|
||||
printf("bar");
|
||||
break;
|
||||
case baz: {
|
||||
printf("baz");
|
||||
break;
|
||||
}
|
||||
case quux:
|
||||
printf("But don't break the indentation of this instruction\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void func(void)
|
||||
{
|
||||
cout << "a"
|
||||
@@ -1418,3 +1443,117 @@ var bar = {
|
||||
}
|
||||
JSEND
|
||||
|
||||
|
||||
JSSTART
|
||||
var foo = [
|
||||
1, // indent 8 more
|
||||
2,
|
||||
3
|
||||
]; // indent 8 less
|
||||
JSEND
|
||||
|
||||
|
||||
JSSTART
|
||||
function bar() {
|
||||
var foo = [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]; // indent 16 less
|
||||
}
|
||||
JSEND
|
||||
|
||||
|
||||
JSSTART
|
||||
(function($){
|
||||
|
||||
var class_name='myclass';
|
||||
|
||||
function private_method() {
|
||||
}
|
||||
|
||||
var public_method={
|
||||
method: function(options,args){
|
||||
private_method();
|
||||
}
|
||||
}
|
||||
|
||||
function init(options) {
|
||||
|
||||
$(this).data(class_name+'_public',$.extend({},{
|
||||
foo: 'bar',
|
||||
bar: 2, // indent 8 more
|
||||
foobar: [ // indent 8 more
|
||||
1, // indent 8 more
|
||||
2, // indent 16 more
|
||||
3 // indent 16 more
|
||||
],
|
||||
callback: function(){ // indent 8 more
|
||||
return true; // indent 8 more
|
||||
} // indent 8 more
|
||||
}, options||{}));
|
||||
}
|
||||
|
||||
$.fn[class_name]=function() {
|
||||
|
||||
var _arguments=arguments;
|
||||
return this.each(function(){
|
||||
|
||||
var options=$(this).data(class_name+'_public');
|
||||
if (!options) {
|
||||
init.apply(this,_arguments);
|
||||
|
||||
} else {
|
||||
var method=public_method[_arguments[0]];
|
||||
|
||||
if (typeof(method)!='function') {
|
||||
console.log(class_name+' has no method "'+_arguments[0]+'"');
|
||||
return false;
|
||||
}
|
||||
_arguments[0]=options;
|
||||
method.apply(this,_arguments);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
JSEND
|
||||
|
||||
|
||||
JSSTART
|
||||
function init(options) {
|
||||
$(this).data(class_name+'_public',$.extend({},{
|
||||
foo: 'bar',
|
||||
bar: 2,
|
||||
foobar: [
|
||||
1, // indent 8 more
|
||||
2, // indent 8 more
|
||||
3 // indent 8 more
|
||||
],
|
||||
callback: function(){
|
||||
return true;
|
||||
}
|
||||
}, options||{}));
|
||||
}
|
||||
JSEND
|
||||
|
||||
|
||||
JSSTART
|
||||
(function($){
|
||||
function init(options) {
|
||||
$(this).data(class_name+'_public',$.extend({},{
|
||||
foo: 'bar',
|
||||
bar: 2, // indent 8 more
|
||||
foobar: [ // indent 8 more
|
||||
1, // indent 8 more
|
||||
2, // indent 16 more
|
||||
3 // indent 16 more
|
||||
],
|
||||
callback: function(){ // indent 8 more
|
||||
return true; // indent 8 more
|
||||
} // indent 8 more
|
||||
}, options||{}));
|
||||
}
|
||||
})(jQuery);
|
||||
JSEND
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ x/[\u4f7f\u5929]\+
|
||||
x/\%U12345678
|
||||
x/[\U1234abcd\u1234\uabcd]
|
||||
x/\%d21879b
|
||||
x/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e
|
||||
x/ [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=]]* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e
|
||||
x:?^1?,$w! test.out
|
||||
:e! test.out
|
||||
G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
|
||||
@@ -53,3 +55,5 @@ d 天使x
|
||||
e <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>y
|
||||
f <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>z
|
||||
g a啷bb
|
||||
h AÀÁÂÃÄÅĀĂĄǍǞǠẢ BḂḆ CÇĆĈĊČ DĎĐḊḎḐ EÈÉÊËĒĔĖĘĚẺẼ FḞ GĜĞĠĢǤǦǴḠ HĤĦḢḦḨ IÌÍÎÏĨĪĬĮİǏỈ JĴ KĶǨḰḴ LĹĻĽĿŁḺ MḾṀ NÑŃŅŇṄṈ OÒÓÔÕÖØŌŎŐƠǑǪǬỎ PṔṖ Q RŔŖŘṘṞ SŚŜŞŠṠ TŢŤŦṪṮ UÙÚÛÜŨŪŬŮŰŲƯǓỦ VṼ WŴẀẂẄẆ XẊẌ YÝŶŸẎỲỶỸ ZŹŻŽƵẐẔ
|
||||
i aàáâãäåāăąǎǟǡả bḃḇ cçćĉċč dďđḋḏḑ eèéêëēĕėęěẻẽ fḟ gĝğġģǥǧǵḡ hĥħḣḧḩẖ iìíîïĩīĭįǐỉ jĵǰ kķǩḱḵ lĺļľŀłḻ mḿṁ nñńņňʼnṅṉ oòóôõöøōŏőơǒǫǭỏ pṕṗ q rŕŗřṙṟ sśŝşšṡ tţťŧṫṯẗ uùúûüũūŭůűųưǔủ vṽ wŵẁẃẅẇẘ xẋẍ yýÿŷẏẙỳỷỹ zźżžƶẑẕ
|
||||
|
||||
@@ -14,6 +14,8 @@ d 使x
|
||||
e y
|
||||
f z
|
||||
g abb
|
||||
h AÀÁÂÃÄÅĀĂĄǍǞǠẢ BḂḆ CÇĆĈĊČ DĎĐḊḎḐ EÈÉÊËĒĔĖĘĚẺẼ FḞ GĜĞĠĢǤǦǴḠ HĤĦḢḦḨ IÌÍÎÏĨĪĬĮİǏỈ JĴ KĶǨḰḴ LĹĻĽĿŁḺ MḾṀ NÑŃŅŇṄṈ OÒÓÔÕÖØŌŎŐƠǑǪǬỎ PṔṖ Q RŔŖŘṘṞ SŚŜŞŠṠ TŢŤŦṪṮ UÙÚÛÜŨŪŬŮŰŲƯǓỦ VṼ WŴẀẂẄẆ XẊẌ YÝŶŸẎỲỶỸ ZŹŻŽƵẐ
|
||||
i aàáâãäåāăąǎǟǡả bḃḇ cçćĉċč dďđḋḏḑ eèéêëēĕėęěẻẽ fḟ gĝğġģǥǧǵḡ hĥħḣḧḩẖ iìíîïĩīĭįǐỉ jĵǰ kķǩḱḵ lĺļľŀłḻ mḿṁ nñńņňʼnṅṉ oòóôõöøōŏőơǒǫǭỏ pṕṗ q rŕŗřṙṟ sśŝşšṡ tţťŧṫṯẗ uùúûüũūŭůűųưǔủ vṽ wŵẁẃẅẇẘ xẋẍ yýÿŷẏẙỳỷỹ zźżžƶẑ
|
||||
ב
|
||||
בג
|
||||
א
|
||||
|
||||
@@ -6,7 +6,7 @@ blocks.
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set nocp fileformat=unix undolevels=-1
|
||||
:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo
|
||||
:e! Xtest
|
||||
ggdG
|
||||
:let text = "\tabcdefghijklmnoparstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnoparstuvwxyz0123456789"
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
Test for t movement command and 'cpo-;' setting
|
||||
|
||||
STARTTEST
|
||||
:set nocompatible
|
||||
:set nocompatible viminfo+=nviminfo
|
||||
:set cpo-=;
|
||||
/firstline/
|
||||
j0tt;D
|
||||
0fz;D
|
||||
$Fy;D
|
||||
$Ty;D:set cpo+=;
|
||||
j0tt;;D
|
||||
$Ty;;D:?firstline?+1,$w! test.out
|
||||
@@ -13,6 +15,8 @@ ENDTEST
|
||||
|
||||
firstline
|
||||
aaa two three four
|
||||
zzz
|
||||
yyy
|
||||
bbb yee yoo four
|
||||
ccc two three four
|
||||
ddd yee yoo four
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
aaa two
|
||||
z
|
||||
y
|
||||
bbb y
|
||||
ccc
|
||||
ddd yee y
|
||||
|
||||
93
src/testdir/test82.in
Normal file
93
src/testdir/test82.in
Normal file
@@ -0,0 +1,93 @@
|
||||
Tests for case-insensitive UTF-8 comparisons (utf_strnicmp() in mbyte.c)
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:if !has("multi_byte")
|
||||
: e! test.ok
|
||||
: w! test.out
|
||||
: qa!
|
||||
:endif
|
||||
:set enc=utf8
|
||||
ggdG
|
||||
:
|
||||
:function! Ch(a, op, b, expected)
|
||||
: if eval(printf('"%s" %s "%s"', a:a, a:op, a:b)) != a:expected
|
||||
: call append(line('$'), printf('"%s" %s "%s" should return %d', a:a, a:op, a:b, a:expected))
|
||||
: else
|
||||
: let b:passed += 1
|
||||
: endif
|
||||
:endfunction
|
||||
:
|
||||
:function! Chk(a, b, result)
|
||||
: if a:result == 0
|
||||
: call Ch(a:a, '==?', a:b, 1)
|
||||
: call Ch(a:a, '!=?', a:b, 0)
|
||||
: call Ch(a:a, '<=?', a:b, 1)
|
||||
: call Ch(a:a, '>=?', a:b, 1)
|
||||
: call Ch(a:a, '<?', a:b, 0)
|
||||
: call Ch(a:a, '>?', a:b, 0)
|
||||
: elseif a:result > 0
|
||||
: call Ch(a:a, '==?', a:b, 0)
|
||||
: call Ch(a:a, '!=?', a:b, 1)
|
||||
: call Ch(a:a, '<=?', a:b, 0)
|
||||
: call Ch(a:a, '>=?', a:b, 1)
|
||||
: call Ch(a:a, '<?', a:b, 0)
|
||||
: call Ch(a:a, '>?', a:b, 1)
|
||||
: else
|
||||
: call Ch(a:a, '==?', a:b, 0)
|
||||
: call Ch(a:a, '!=?', a:b, 1)
|
||||
: call Ch(a:a, '<=?', a:b, 1)
|
||||
: call Ch(a:a, '>=?', a:b, 0)
|
||||
: call Ch(a:a, '<?', a:b, 1)
|
||||
: call Ch(a:a, '>?', a:b, 0)
|
||||
: endif
|
||||
:endfunction
|
||||
:
|
||||
:function! Check(a, b, result)
|
||||
: call Chk(a:a, a:b, a:result)
|
||||
: call Chk(a:b, a:a, -a:result)
|
||||
:endfunction
|
||||
:
|
||||
:function! LT(a, b)
|
||||
: call Check(a:a, a:b, -1)
|
||||
:endfunction
|
||||
:
|
||||
:function! GT(a, b)
|
||||
: call Check(a:a, a:b, 1)
|
||||
:endfunction
|
||||
:
|
||||
:function! EQ(a, b)
|
||||
: call Check(a:a, a:b, 0)
|
||||
:endfunction
|
||||
:
|
||||
:let b:passed=0
|
||||
:call EQ('', '')
|
||||
:call LT('', 'a')
|
||||
:call EQ('abc', 'abc')
|
||||
:call EQ('Abc', 'abC')
|
||||
:call LT('ab', 'abc')
|
||||
:call LT('AB', 'abc')
|
||||
:call LT('ab', 'aBc')
|
||||
:call EQ('\xd0\xb9\xd1\x86\xd1\x83\xd0\xba\xd0\xb5\xd0\xbd', '\xd0\xb9\xd0\xa6\xd0\xa3\xd0\xba\xd0\x95\xd0\xbd')
|
||||
:call LT('\xd0\xb9\xd1\x86\xd1\x83\xd0\xba\xd0\xb5\xd0\xbd', '\xd0\xaf\xd1\x86\xd1\x83\xd0\xba\xd0\xb5\xd0\xbd')
|
||||
:call EQ('\xe2\x84\xaa', 'k')
|
||||
:call LT('\xe2\x84\xaa', 'kkkkkk')
|
||||
:call EQ('\xe2\x84\xaa\xe2\x84\xaa\xe2\x84\xaa', 'kkk')
|
||||
:call LT('kk', '\xe2\x84\xaa\xe2\x84\xaa\xe2\x84\xaa')
|
||||
:call EQ('\xe2\x84\xaa\xe2\x84\xa6k\xe2\x84\xaak\xcf\x89', 'k\xcf\x89\xe2\x84\xaakk\xe2\x84\xa6')
|
||||
:call EQ('Abc\x80', 'AbC\x80')
|
||||
:call LT('Abc\x80', 'AbC\x81')
|
||||
:call LT('Abc', 'AbC\x80')
|
||||
:call LT('abc\x80DEF', 'abc\x80def') " case folding stops at the first bad character
|
||||
:call LT('\xc3XYZ', '\xc3xyz')
|
||||
:call EQ('\xef\xbc\xba', '\xef\xbd\x9a') " FF3A (upper), FF5A (lower)
|
||||
:call GT('\xef\xbc\xba', '\xef\xbc\xff') " first string is ok and equals \xef\xbd\x9a after folding, second string is illegal and was left unchanged, then the strings were bytewise compared
|
||||
:call LT('\xc3', '\xc3\x83')
|
||||
:call EQ('\xc3\xa3xYz', '\xc3\x83XyZ')
|
||||
:for n in range(0x60, 0xFF) | call LT(printf('xYz\x%.2X', n-1), printf('XyZ\x%.2X', n)) | endfor
|
||||
:for n in range(0x80, 0xBF) | call EQ(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n)) | endfor
|
||||
:for n in range(0xC0, 0xFF) | call LT(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n)) | endfor
|
||||
:call append(0, printf('%d checks passed', b:passed))
|
||||
:wq! test.out
|
||||
ENDTEST
|
||||
|
||||
2
src/testdir/test82.ok
Normal file
2
src/testdir/test82.ok
Normal file
@@ -0,0 +1,2 @@
|
||||
3732 checks passed
|
||||
|
||||
@@ -709,6 +709,38 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
259,
|
||||
/**/
|
||||
258,
|
||||
/**/
|
||||
257,
|
||||
/**/
|
||||
256,
|
||||
/**/
|
||||
255,
|
||||
/**/
|
||||
254,
|
||||
/**/
|
||||
253,
|
||||
/**/
|
||||
252,
|
||||
/**/
|
||||
251,
|
||||
/**/
|
||||
250,
|
||||
/**/
|
||||
249,
|
||||
/**/
|
||||
248,
|
||||
/**/
|
||||
247,
|
||||
/**/
|
||||
246,
|
||||
/**/
|
||||
245,
|
||||
/**/
|
||||
244,
|
||||
/**/
|
||||
243,
|
||||
/**/
|
||||
|
||||
@@ -815,6 +815,7 @@ extern char *(*dyn_libintl_textdomain)(const char *domainname);
|
||||
#define EW_EXEC 0x40 /* executable files */
|
||||
#define EW_PATH 0x80 /* search in 'path' too */
|
||||
#define EW_ICASE 0x100 /* ignore case */
|
||||
#define EW_NOERROR 0x200 /* no error for bad regexp */
|
||||
/* Note: mostly EW_NOTFOUND and EW_SILENT are mutually exclusive: EW_NOTFOUND
|
||||
* is used when executing commands and EW_SILENT for interactive expanding. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user