Skip to content
Snippets Groups Projects
Commit 662db673 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

Updated runtime files.

parent e9d4b58d
No related merge requests found
Showing
with 604 additions and 148 deletions
*change.txt* For Vim version 7.3. Last change: 2010 Jul 29 *change.txt* For Vim version 7.3. Last change: 2011 Feb 25
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -690,7 +690,8 @@ reason is that the flags can only be found by skipping the pattern, and in ...@@ -690,7 +690,8 @@ reason is that the flags can only be found by skipping the pattern, and in
order to skip the pattern the "magicness" must be known. Catch 22! order to skip the pattern the "magicness" must be known. Catch 22!
If the {pattern} for the substitute command is empty, the command uses the If the {pattern} for the substitute command is empty, the command uses the
pattern from the last substitute or ":global" command. With the [r] flag, the pattern from the last substitute or ":global" command. If there is none, but
there is a previous search pattern, that one is used. With the [r] flag, the
command uses the pattern from the last substitute, ":global", or search command uses the pattern from the last substitute, ":global", or search
command. command.
......
*editing.txt* For Vim version 7.3. Last change: 2011 Jan 27 *editing.txt* For Vim version 7.3. Last change: 2011 Feb 26
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -276,10 +276,11 @@ If you want to keep the changed buffer without saving it, switch on the ...@@ -276,10 +276,11 @@ If you want to keep the changed buffer without saving it, switch on the
'readonly' option for this buffer. {not in Vi} 'readonly' option for this buffer. {not in Vi}
*CTRL-^* *CTRL-6* *CTRL-^* *CTRL-6*
CTRL-^ Edit the alternate file (equivalent to ":e #"). CTRL-^ Edit the alternate file. Mostly the alternate file is
Mostly the alternate file is the previously edited the previously edited file. This is a quick way to
file. This is a quick way to toggle between two toggle between two files. It is equivalent to ":e #",
files. except that it also works when there is no file name.
If the 'autowrite' or 'autowriteall' option is on and If the 'autowrite' or 'autowriteall' option is on and
the buffer was changed, write it. the buffer was changed, write it.
Mostly the ^ character is positioned on the 6 key, Mostly the ^ character is positioned on the 6 key,
...@@ -1387,6 +1388,8 @@ To set the default method, used for new files, use one of these in your ...@@ -1387,6 +1388,8 @@ To set the default method, used for new files, use one of these in your
|vimrc| file: > |vimrc| file: >
set cm=zip set cm=zip
set cm=blowfish set cm=blowfish
The message given for reading and writing a file will show "[crypted]" when
using zip, "[blowfish]" when using blowfish.
When writing an undo file, the same key and method will be used for the text When writing an undo file, the same key and method will be used for the text
in the undo file. |persistent-undo|. in the undo file. |persistent-undo|.
......
*eval.txt* For Vim version 7.3. Last change: 2011 Feb 11 *eval.txt* For Vim version 7.3. Last change: 2011 Mar 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -7072,7 +7072,9 @@ This would call the function "my_func_whizz(parameter)". ...@@ -7072,7 +7072,9 @@ This would call the function "my_func_whizz(parameter)".
is terminated. is terminated.
Example: > Example: >
:try | throw "oops" | catch /^oo/ | echo "caught" | endtry :try | throw "oops" | catch /^oo/ | echo "caught" | endtry
< < Note that "catch" may need to be on a separate line
for when an error causes the parsing to skip the whole
line and not see the "|" that separates the commands.
*:ec* *:echo* *:ec* *:echo*
:ec[ho] {expr1} .. Echoes each {expr1}, with a space in between. The :ec[ho] {expr1} .. Echoes each {expr1}, with a space in between. The
......
*indent.txt* For Vim version 7.3. Last change: 2011 Jan 09 *indent.txt* For Vim version 7.3. Last change: 2011 Mar 18
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -320,9 +320,11 @@ assume a 'shiftwidth' of 4. ...@@ -320,9 +320,11 @@ assume a 'shiftwidth' of 4.
BaseClass(3) BaseClass(3) BaseClass(3) BaseClass(3)
{} {} {} {}
< <
+N Indent a continuation line (a line that spills onto the next) N +N Indent a continuation line (a line that spills onto the next)
additional characters. (default 'shiftwidth'). inside a function N additional characters. (default
When the previous line ended in a backslash it's doubled. 'shiftwidth').
Outside of a function, when the previous line ended in a
backslash, the 2 * N is used.
cino= cino=+10 > cino= cino=+10 >
a = b + 9 * a = b + 9 * a = b + 9 * a = b + 9 *
......
*pattern.txt* For Vim version 7.3. Last change: 2010 Jul 20 *pattern.txt* For Vim version 7.3. Last change: 2011 Feb 25
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -214,7 +214,8 @@ The last used pattern and offset are remembered. They can be used to repeat ...@@ -214,7 +214,8 @@ The last used pattern and offset are remembered. They can be used to repeat
the search, possibly in another direction or with another count. Note that the search, possibly in another direction or with another count. Note that
two patterns are remembered: One for 'normal' search commands and one for the two patterns are remembered: One for 'normal' search commands and one for the
substitute command ":s". Each time an empty pattern is given, the previously substitute command ":s". Each time an empty pattern is given, the previously
used pattern is used. used pattern is used. However, if there is no previous search command, a
previous substitute pattern is used, if possible.
The 'magic' option sticks with the last used pattern. If you change 'magic', The 'magic' option sticks with the last used pattern. If you change 'magic',
this will not change how the last used pattern will be interpreted. this will not change how the last used pattern will be interpreted.
......
...@@ -3206,6 +3206,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME* ...@@ -3206,6 +3206,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
<reg> map.txt /*<reg>* <reg> map.txt /*<reg>*
<register> map.txt /*<register>* <register> map.txt /*<register>*
<sfile> cmdline.txt /*<sfile>* <sfile> cmdline.txt /*<sfile>*
<slnum> cmdline.txt /*<slnum>*
<xCSI> intro.txt /*<xCSI>* <xCSI> intro.txt /*<xCSI>*
<xDown> term.txt /*<xDown>* <xDown> term.txt /*<xDown>*
<xEnd> term.txt /*<xEnd>* <xEnd> term.txt /*<xEnd>*
......
*todo.txt* For Vim version 7.3. Last change: 2011 Feb 25 *todo.txt* For Vim version 7.3. Last change: 2011 Mar 22
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -30,11 +30,43 @@ be worked on, but only if you sponsor Vim development. See |sponsor|. ...@@ -30,11 +30,43 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs* *known-bugs*
-------------------- Known bugs and current work ----------------------- -------------------- Known bugs and current work -----------------------
New r and rhelp syntax files. (Jakson Alves de Aquino, 2011 Feb 20) The :z command doesn't work exactly as it should. (ChangZhuo Chen, 2011 Mar 2)
In file message show "blowfish" instead of "crypted" when using blowfish. Crash with ":python help(dir)". (Kearn Holliday, 2011 Mar 19)
I can reproduce it. Don't know why it happens.
Patch to fix drag-n-drop in KDE. (Florian Degner, 2011 Feb 23) Compare with how old Vi works and with posix spec. terminal is 80 x 24,
'scroll' option set to 11.
Update Bavarian tutor. (Sepp Hell, 2011 Mar 10)
After ":set t_kb=" ":set t_kb" gives an error, should report an empty string.
Can do ":set t_xy=foo", need to check for valid name.
Menu File/Close should close a tab if it's not the last one and it
contains only one window (Jean Johner)
Patch by Ben Schmidt (7 maart)
Patch to update .hgtags (Ben Haskell, 2011 Mar 8)
Also hints how to add a tag after committing a patch.
Patch for slow write: undefined symbols with FEAT_CLIENTSERVER.
Alternative tests. (Krasilnikov)
When opening file from windows explorer, characters inside [] cause
problems, even though double quotes are used. (Manuel Stol, 2011 Mar 9)
Patch for Vim indent file. (Cocular, 2011 Mar)
:help c_Esc should work, but only :help c_<Esc> does.
Patch to change the meaning of \n in substitute(). (motoya kurotsu, 2011 Mar 8)
New version of Pascal indent file. (Neil Carter, 2011 Mar 9)
Help file foldexpr (ZyX)
upstart syntax file (James Hunt, Mar 11 2011)
Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2, Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2,
only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug
...@@ -43,15 +75,24 @@ only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug ...@@ -43,15 +75,24 @@ only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug
Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20) Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
Crash with big .xpm file. (Yukihiro Nakadaira, 2011 Feb 18) Crash with big .xpm file. (Yukihiro Nakadaira, 2011 Feb 18)
Patch from Ben Schmidt (2011 Mar 3). Needs some more work.
Patch for disappearing cursor after netbeans command. (Xavier de Gaye, 2011
Mar 4)
Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26) Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26)
Compiler scripts for fortran (Hong Xu, 2011 March 19)
This line hangs Vim, because of syntax HL: This line hangs Vim, because of syntax HL:
call append(line, "INFO ....12....18....24....30....36....42....48....54....60....66....72....78%$") call append(line, "INFO ....12....18....24....30....36....42....48....54....60....66....72....78%$")
Building the MingW version without clipboard but with multi-byte doesn't Building the MingW version without clipboard but with multi-byte doesn't
work. (Bill Lam, 2010 Sep 18) work. (Bill Lam, 2010 Sep 18)
Patch for handling of NL in substitute() with \= expression. (Motoya Kurotsu,
2011 Mar 16)
When using a Vim server, a # in the path causes an error message. When using a Vim server, a # in the path causes an error message.
(Jeff Lanzarotta, 2011 Feb 17) (Jeff Lanzarotta, 2011 Feb 17)
...@@ -68,7 +109,7 @@ On 64 bit MS-Windows "long" is only 32 bits, but we sometimes need to store a ...@@ -68,7 +109,7 @@ On 64 bit MS-Windows "long" is only 32 bits, but we sometimes need to store a
right type. right type.
Patch to improve mf_hash, dynamic sizing. (Ivan Krasilnikov, 2010 Dec 17) Patch to improve mf_hash, dynamic sizing. (Ivan Krasilnikov, 2010 Dec 17)
Needs tests. Update with tests: 2011 Feb 28.
string() can't parse back "inf" and "nan". Fix documentation or fix code? string() can't parse back "inf" and "nan". Fix documentation or fix code?
(ZyX, 2010 Aug 23) (ZyX, 2010 Aug 23)
...@@ -82,12 +123,14 @@ Update Nov 19. James Vega: still not right. Christian: it's difficult. ...@@ -82,12 +123,14 @@ Update Nov 19. James Vega: still not right. Christian: it's difficult.
Patch to add up to 99 match groups. (Christian Brabandt, 2010 Dec 22) Patch to add up to 99 match groups. (Christian Brabandt, 2010 Dec 22)
Also add named groups: \%{name}(re) and \%{name}g Also add named groups: \%{name}(re) and \%{name}g
Patch to use pattern from last :s when there is no last search pattern.
(Christian Brabandt, 2011 Jan 24) Would this break anything?
Bug in try/catch: return with invalid compare throws error that isn't caught. Bug in try/catch: return with invalid compare throws error that isn't caught.
(ZyX, 2011 Jan 26) (ZyX, 2011 Jan 26)
Improvement patch for filetype.vim. (Thilo Six, 2011 Mar 19)
Patch for "+ and "* getting same selection when "a" is not in 'guioptions'.
(James Vega, 2011 Mar 17)
Highlighting stops working after changing it many times. Script to reproduce 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? it: Pablo Contreras, 2010 Oct 12 Windows XP and 7. Font is never freed?
...@@ -98,6 +141,10 @@ Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24) ...@@ -98,6 +141,10 @@ Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24)
"0g@$" puts '] on last byte of multi-byte. (ZyX, 2011 Jan 22) "0g@$" puts '] on last byte of multi-byte. (ZyX, 2011 Jan 22)
Deleting a linewise selection that includes the last line of the file leaves
an empty line. (Ben Schmidt, 2011 Mar 17)
Patch by Christian Brabandt, 2011 Mar 19.
Two patches for xxd. (Florian Zumbiehl, 2011 Jan 11) Two patches for xxd. (Florian Zumbiehl, 2011 Jan 11)
Two updates for second one Jan 12. Two updates for second one Jan 12.
...@@ -140,6 +187,9 @@ doesn't look right. (Dominique Pelle, 2010 Aug 8) ...@@ -140,6 +187,9 @@ doesn't look right. (Dominique Pelle, 2010 Aug 8)
GTK: tear-off menu does not work. (Kurt Sonnenmoser, 2010 Oct 25) GTK: tear-off menu does not work. (Kurt Sonnenmoser, 2010 Oct 25)
Win32: tear-off menu does not work when menu language is German. (Markus
Bossler, 2011 Mar 2) Fixed by 7.3.095?
Patch for adding 's' option to 'cino', C++ namespace indenting. (Konstantin Patch for adding 's' option to 'cino', C++ namespace indenting. (Konstantin
Lepa, 2011 Jan 18) Lepa, 2011 Jan 18)
...@@ -174,6 +224,9 @@ New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30) ...@@ -174,6 +224,9 @@ New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30)
- instead of a regexp use a hashtable. Expand '?', '*", '+'. What would be - instead of a regexp use a hashtable. Expand '?', '*", '+'. What would be
the maximum repeat for * and +? the maximum repeat for * and +?
"L'Italie" noted as a spell error at start of the sentence. (Dominique Pelle,
2011 Feb 27)
Copy/paste between Vim and Google chrome doesn't work well for multi-byte Copy/paste between Vim and Google chrome doesn't work well for multi-byte
characters. (Ben Haskell, 2010 Sep 17) characters. (Ben Haskell, 2010 Sep 17)
When putting text in the cut buffer (when exiting) and conversion doesn't work When putting text in the cut buffer (when exiting) and conversion doesn't work
...@@ -200,6 +253,9 @@ Nov 25) ...@@ -200,6 +253,9 @@ Nov 25)
GTK: Patch to fix menu popping down. (Hong Xu, 2010 Dec 4, Dec 5) GTK: Patch to fix menu popping down. (Hong Xu, 2010 Dec 4, Dec 5)
Update 2011 Feb 3. Update 2011 Feb 3.
Patch to use pipes on Win32. (Vincent Berthoux, 2011 Feb 28)
Update Mar 1 using 'shelltemp'.
Python: Adding line to buffer other than the current one doesn't work Python: Adding line to buffer other than the current one doesn't work
correctly. (Rozbujnik, 2010 Dec 19) correctly. (Rozbujnik, 2010 Dec 19)
...@@ -279,8 +335,6 @@ Patch to make more characters work in dialogs. (Yankwei Jia, 2010 Aug 4) ...@@ -279,8 +335,6 @@ Patch to make more characters work in dialogs. (Yankwei Jia, 2010 Aug 4)
Patch for VisVim, pass file name to VimOpenFile. (Jiri Sedlak, 2010 Nov 12) Patch for VisVim, pass file name to VimOpenFile. (Jiri Sedlak, 2010 Nov 12)
":com" changes the multi-byte text of :echo. (Dimitar Dimitrov, 2011 Feb 11)
When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines
instead of one. (Constantin Pan, 2010 Sep 10) instead of one. (Constantin Pan, 2010 Sep 10)
...@@ -397,6 +451,9 @@ find out why. ...@@ -397,6 +451,9 @@ find out why.
When completion inserts the first match, it may trigger the line to be folded. When completion inserts the first match, it may trigger the line to be folded.
Disable updating folds while completion is active? (Peter Odding, 2010 Jun 9) Disable updating folds while completion is active? (Peter Odding, 2010 Jun 9)
Using ":call foo#d.f()" doesn't autoload the "foo.vim" file. Works OK for
echo, just not for ":call" and ":call call()". (Ted, 2011 Mar 17)
In command line window ":close" doesn't work properly. (Tony Mechelynck, 2009 In command line window ":close" doesn't work properly. (Tony Mechelynck, 2009
Jun 1) Jun 1)
...@@ -2334,6 +2391,9 @@ Problems that will (probably) not be solved: ...@@ -2334,6 +2391,9 @@ Problems that will (probably) not be solved:
- Win32, MS-Windows XP: $HOME uses the wrong drive when the user profiles - Win32, MS-Windows XP: $HOME uses the wrong drive when the user profiles
are not on the boot disk. This is caused by a wrong value of $HOMEDRIVE. are not on the boot disk. This is caused by a wrong value of $HOMEDRIVE.
This is a bug in XP, see MSKB article 818134. This is a bug in XP, see MSKB article 818134.
- Win32, MS-Windows: expanding plugin/**/*.vim also picks up
dir/ctags.vim,v. This is because the short file name is something like
"ctags~1.vim" and that matches the pattern.
- SunOS 5.5.1 with Motif: The file open dialog does not have a horizontal - SunOS 5.5.1 with Motif: The file open dialog does not have a horizontal
scroll bar for the "files" selection. This is a problem in the Motif scroll bar for the "files" selection. This is a problem in the Motif
libraries, get a patch from Sun. libraries, get a patch from Sun.
...@@ -3752,6 +3812,10 @@ Insert mode: ...@@ -3752,6 +3812,10 @@ Insert mode:
<< "y"; << "y";
9 "} else" causes following lines to be indented too much. (Rouben 9 "} else" causes following lines to be indented too much. (Rouben
Rostamian, 2008 Aug 30) Rostamian, 2008 Aug 30)
9 Wrapping a variable initialization should have extra indent:
char * veryLongName =
"very long string"
Also check if "cino=+10" is used correctly.
8 Lisp indenting: "\\" confuses the indenter. (Dorai Sitaram, 2006 May 17) 8 Lisp indenting: "\\" confuses the indenter. (Dorai Sitaram, 2006 May 17)
8 Why are continuation lines outside of a {} block not indented? E.g.: 8 Why are continuation lines outside of a {} block not indented? E.g.:
long_type foo = long_type foo =
...@@ -4057,6 +4121,8 @@ Searching: ...@@ -4057,6 +4121,8 @@ Searching:
Use "&/" for searching the text in the Visual area? Use "&/" for searching the text in the Visual area?
9 Add "v" offset: "/pat/v": search for pattern and start Visual mode on the 9 Add "v" offset: "/pat/v": search for pattern and start Visual mode on the
matching text. matching text.
8 Add a modifier to interpret a space like "\_s\+" to make it much easier to
search for a phrase.
8 Add a mechanism for recursiveness: "\@(([^()]*\@g[^()]*)\)". \@g stands 8 Add a mechanism for recursiveness: "\@(([^()]*\@g[^()]*)\)". \@g stands
for "go recursive here" and \@( \) marks the recursive part. for "go recursive here" and \@( \) marks the recursive part.
Perl does it this way: Perl does it this way:
......
...@@ -661,7 +661,14 @@ Floating point computation: *float-functions* ...@@ -661,7 +661,14 @@ Floating point computation: *float-functions*
sqrt() square root sqrt() square root
sin() sine sin() sine
cos() cosine cos() cosine
tan() tangent
asin() arc sine
acos() arc cosine
atan() arc tangent atan() arc tangent
atan2() arc tangent
sinh() hyperbolic sine
cosh() hyperbolic cosine
tanh() hyperbolic tangent
Variables: *var-functions* Variables: *var-functions*
type() type of a variable type() type of a variable
......
*various.txt* For Vim version 7.3. Last change: 2011 Feb 01 *various.txt* For Vim version 7.3. Last change: 2011 Mar 03
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
...@@ -133,14 +133,14 @@ g8 Print the hex values of the bytes used in the ...@@ -133,14 +133,14 @@ g8 Print the hex values of the bytes used in the
specified with {range}, or around the current line specified with {range}, or around the current line
if there is no {range}. If there is a {count}, that's if there is no {range}. If there is a {count}, that's
how many lines you'll see; if there is only one window how many lines you'll see; if there is only one window
then the 'window' option is used, otherwise the then twice the value of the 'scroll' option is used,
current window size is used. otherwise the current window height minus 3 is used.
:z can be used either alone or followed by any of :z can be used either alone or followed by any of
several punctuation marks. These have the following several punctuation marks. These have the following
effect: effect:
mark first line last line new location ~ mark first line last line new cursor line ~
---- ---------- --------- ------------ ---- ---------- --------- ------------
+ current line 1 scr forward 1 scr forward + current line 1 scr forward 1 scr forward
- 1 scr back current line current line - 1 scr back current line current line
......
" Vim support file to detect file types " Vim support file to detect file types
" "
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2011 Feb 23 " Last Change: 2011 Mar 22
" Listen very carefully, I will say this only once " Listen very carefully, I will say this only once
if exists("did_load_filetypes") if exists("did_load_filetypes")
...@@ -325,7 +325,7 @@ au BufNewFile,BufRead */.calendar/*, ...@@ -325,7 +325,7 @@ au BufNewFile,BufRead */.calendar/*,
au BufNewFile,BufRead *.cs setf cs au BufNewFile,BufRead *.cs setf cs
" Cabal " Cabal
au BufNewFile,BufRead *.cabal setf cabal au BufNewFile,BufRead *.cabal setf cabal
" Cdrdao TOC " Cdrdao TOC
au BufNewFile,BufRead *.toc setf cdrtoc au BufNewFile,BufRead *.toc setf cdrtoc
...@@ -536,7 +536,7 @@ au BufNewFile,BufRead *.qc setf c ...@@ -536,7 +536,7 @@ au BufNewFile,BufRead *.qc setf c
au BufNewFile,BufRead *.cfg setf cfg au BufNewFile,BufRead *.cfg setf cfg
" Cucumber " Cucumber
au BufNewFile,BufRead *.feature setf cucumber au BufNewFile,BufRead *.feature setf cucumber
" Communicating Sequential Processes " Communicating Sequential Processes
au BufNewFile,BufRead *.csp,*.fdr setf csp au BufNewFile,BufRead *.csp,*.fdr setf csp
...@@ -678,7 +678,7 @@ au BufNewFile,BufRead *.exp setf expect ...@@ -678,7 +678,7 @@ au BufNewFile,BufRead *.exp setf expect
au BufNewFile,BufRead exports setf exports au BufNewFile,BufRead exports setf exports
" Falcon " Falcon
au BufNewFile,BufRead *.fal setf falcon au BufNewFile,BufRead *.fal setf falcon
" Fantom " Fantom
au BufNewFile,BufRead *.fan,*.fwt setf fan au BufNewFile,BufRead *.fan,*.fwt setf fan
...@@ -779,7 +779,7 @@ au BufNewFile,BufRead *.haml setf haml ...@@ -779,7 +779,7 @@ au BufNewFile,BufRead *.haml setf haml
au BufNewFile,BufRead *.hsc,*.hsm setf hamster au BufNewFile,BufRead *.hsc,*.hsm setf hamster
" Haskell " Haskell
au BufNewFile,BufRead *.hs,*.hs-boot setf haskell au BufNewFile,BufRead *.hs,*.hs-boot setf haskell
au BufNewFile,BufRead *.lhs setf lhaskell au BufNewFile,BufRead *.lhs setf lhaskell
au BufNewFile,BufRead *.chs setf chaskell au BufNewFile,BufRead *.chs setf chaskell
...@@ -872,7 +872,9 @@ func! s:ProtoCheck(default) ...@@ -872,7 +872,9 @@ func! s:ProtoCheck(default)
" Cproto files have a comment in the first line and a function prototype in " Cproto files have a comment in the first line and a function prototype in
" the second line, it always ends in ";". Indent files may also have " the second line, it always ends in ";". Indent files may also have
" comments, thus we can't match comments to see the difference. " comments, thus we can't match comments to see the difference.
if getline(2) =~ ';$' " IDL files can have a single ';' in the second line, require at least one
" chacter before the ';'.
if getline(2) =~ '.;$'
setf cpp setf cpp
else else
exe 'setf ' . a:default exe 'setf ' . a:default
...@@ -1405,7 +1407,7 @@ au BufNewFile,BufRead *.it,*.ih setf ppwiz ...@@ -1405,7 +1407,7 @@ au BufNewFile,BufRead *.it,*.ih setf ppwiz
" Obj 3D file format " Obj 3D file format
" TODO: is there a way to avoid MS-Windows Object files? " TODO: is there a way to avoid MS-Windows Object files?
au BufNewFile,BufRead *.obj setf obj au BufNewFile,BufRead *.obj setf obj
" Oracle Pro*C/C++ " Oracle Pro*C/C++
au BufNewFile,BufRead *.pc setf proc au BufNewFile,BufRead *.pc setf proc
...@@ -1650,7 +1652,7 @@ au BufNewFile,BufRead *.sa setf sather ...@@ -1650,7 +1652,7 @@ au BufNewFile,BufRead *.sa setf sather
au BufNewFile,BufRead *.sci,*.sce setf scilab au BufNewFile,BufRead *.sci,*.sce setf scilab
" SCSS " SCSS
au BufNewFile,BufRead *.scss setf scss au BufNewFile,BufRead *.scss setf scss
" SD: Streaming Descriptors " SD: Streaming Descriptors
au BufNewFile,BufRead *.sd setf sd au BufNewFile,BufRead *.sd setf sd
...@@ -1811,7 +1813,7 @@ endfunc ...@@ -1811,7 +1813,7 @@ endfunc
" Z-Shell script " Z-Shell script
au BufNewFile,BufRead .zprofile,/etc/zprofile,.zfbfmarks setf zsh au BufNewFile,BufRead .zprofile,/etc/zprofile,.zfbfmarks setf zsh
au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh') au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh')
au BufNewFile,BufRead *.zsh setf zsh au BufNewFile,BufRead *.zsh setf zsh
" Scheme " Scheme
au BufNewFile,BufRead *.scm,*.ss setf scheme au BufNewFile,BufRead *.scm,*.ss setf scheme
...@@ -2101,6 +2103,9 @@ au BufNewFile,BufRead *.tf,.tfrc,tfrc setf tf ...@@ -2101,6 +2103,9 @@ au BufNewFile,BufRead *.tf,.tfrc,tfrc setf tf
" TPP - Text Presentation Program " TPP - Text Presentation Program
au BufNewFile,BufReadPost *.tpp setf tpp au BufNewFile,BufReadPost *.tpp setf tpp
" Treetop
au BufRead,BufNewFile *.treetop setf treetop
" Trustees " Trustees
au BufNewFile,BufRead trustees.conf setf trustees au BufNewFile,BufRead trustees.conf setf trustees
...@@ -2131,6 +2136,10 @@ au BufNewFile,BufRead *.uc setf uc ...@@ -2131,6 +2136,10 @@ au BufNewFile,BufRead *.uc setf uc
" Updatedb " Updatedb
au BufNewFile,BufRead /etc/updatedb.conf setf updatedb au BufNewFile,BufRead /etc/updatedb.conf setf updatedb
" Upstart (init(8)) config files
au BufNewFile,BufRead */etc/init/*.conf,~/.init/*.conf setf upstart
au BufNewFile,BufRead */etc/init/*.override,~/.init/*.override setf upstart
" Vera " Vera
au BufNewFile,BufRead *.vr,*.vri,*.vrh setf vera au BufNewFile,BufRead *.vr,*.vri,*.vrh setf vera
......
" Vim filetype plugin file
" Language: Treetop
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2011-03-14
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal comments=b:# commentstring=#\ %s formatoptions-=tcroq formatoptions+=l
let b:undo_ftplugin = "setl com< cms< fo<"
let &cpo = s:cpo_save
unlet s:cpo_save
" Vim indent file
" Language: Treetop
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2011-03-14
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
setlocal indentexpr=GetTreetopIndent()
setlocal indentkeys=0{,0},!^F,o,O,=end
setlocal nosmartindent
if exists("*GetTreetopIndent")
finish
endif
function GetTreetopIndent()
let pnum = prevnonblank(v:lnum - 1)
if pnum == 0
return 0
endif
let ind = indent(pnum)
let line = getline(pnum)
if line =~ '^\s*\%(grammar\|module\|rule\)\>'
let ind += &sw
endif
let line = getline(v:lnum)
if line =~ '^\s*end\>'
let ind -= &sw
end
retur ind
endfunction
" Menu Translations: Korean " Menu Translations: Korean
" Maintainer: SungHyun Nam <goweol@gmail.com> " Maintainer: SungHyun Nam <goweol@gmail.com>
" Last Change: 2010 Feb 18 " Last Change: 2011 Mar 22
" Quit when menu translations have already been done. " Quit when menu translations have already been done.
if exists("did_menu_trans") if exists("did_menu_trans")
...@@ -42,7 +42,7 @@ menutrans E&xit<Tab>:qa ...@@ -42,7 +42,7 @@ menutrans E&xit<Tab>:qa
" Edit menu " Edit menu
menutrans &Edit 편집(&E) menutrans &Edit 편집(&E)
menutrans &Undo<Tab>u 취소(&U)<Tab>u menutrans &Undo<Tab>u 취소(&U)<Tab>u
menutrans &Redo<Tab>^R 다시 실행(&R)<Tab>^R menutrans &Redo<Tab>^R 다시\ 실행(&R)<Tab>^R
menutrans Rep&eat<Tab>\. 되풀이(&e)<Tab>\. menutrans Rep&eat<Tab>\. 되풀이(&e)<Tab>\.
menutrans Cu&t<Tab>"+x 자르기(&t)<Tab>"+x menutrans Cu&t<Tab>"+x 자르기(&t)<Tab>"+x
menutrans &Copy<Tab>"+y 복사(&C)<Tab>"+y menutrans &Copy<Tab>"+y 복사(&C)<Tab>"+y
...@@ -63,7 +63,7 @@ menutrans Toggle\ &Ignore-case<Tab>:set\ ic! ...@@ -63,7 +63,7 @@ menutrans Toggle\ &Ignore-case<Tab>:set\ ic!
menutrans Toggle\ &Showmatch<Tab>:set\ sm! Showmatch\ 토글(&S)<Tab>:set\ sm! menutrans Toggle\ &Showmatch<Tab>:set\ sm! Showmatch\ 토글(&S)<Tab>:set\ sm!
menutrans &Context\ lines 콘텍스트\ 줄(&C) menutrans &Context\ lines 콘텍스트\ 줄(&C)
menutrans &Virtual\ Edit 가상\ 편집(&V) menutrans &Virtual\ Edit 가상\ 편집(&V)
menutrans Never 사용 안 함 menutrans Never 사용\\
menutrans Block\ Selection 블럭\ 고르기 menutrans Block\ Selection 블럭\ 고르기
menutrans Insert\ mode 삽입\ 모드 menutrans Insert\ mode 삽입\ 모드
menutrans Block\ and\ Insert 블럭과\ 삽입 menutrans Block\ and\ Insert 블럭과\ 삽입
...@@ -92,7 +92,7 @@ menutrans Toggle\ &auto-indent<Tab>:set\ ai! ...@@ -92,7 +92,7 @@ menutrans Toggle\ &auto-indent<Tab>:set\ ai!
menutrans Toggle\ &C-indenting<Tab>:set\ cin! C-인덴팅\ 토글(&C)<Tab>:set\ cin! menutrans Toggle\ &C-indenting<Tab>:set\ cin! C-인덴팅\ 토글(&C)<Tab>:set\ cin!
" other options " other options
menutrans &Shiftwidth 쉬프트 너비(&S) menutrans &Shiftwidth 쉬프트\ 너비(&S)
menutrans Soft\ &Tabstop 소프트\ 탭스톱(&T) menutrans Soft\ &Tabstop 소프트\ 탭스톱(&T)
menutrans Te&xt\ Width\.\.\. 텍스트\ 너비(&x)\.\.\. menutrans Te&xt\ Width\.\.\. 텍스트\ 너비(&x)\.\.\.
menutrans &File\ Format\.\.\. 파일\ 형식(&F)\.\.\. menutrans &File\ Format\.\.\. 파일\ 형식(&F)\.\.\.
...@@ -125,12 +125,12 @@ menutrans &Find\ More\ Languages ...@@ -125,12 +125,12 @@ menutrans &Find\ More\ Languages
" Tools.Fold Menu " Tools.Fold Menu
menutrans &Folding 접기(&F) menutrans &Folding 접기(&F)
" open close folds " open close folds
menutrans &Enable/Disable\ folds<Tab>zi 접는\ 기능\ 사용\ 토글(&E)<Tab>zi menutrans &Enable/Disable\ folds<Tab>zi 접\ 사용\ 토글(&E)<Tab>zi
menutrans &View\ Cursor\ Line<Tab>zv 커서\ 줄\ 보기(&V)<Tab>zv menutrans &View\ Cursor\ Line<Tab>zv 커서\ 줄\ 보기(&V)<Tab>zv
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 커서\ 줄만\ 보기(&w)<Tab>zMzx menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 커서\ 줄만\ 보기(&w)<Tab>zMzx
menutrans C&lose\ more\ folds<Tab>zm 더\ 많은\ 접기\ 닫기(&l)<Tab>zm menutrans C&lose\ more\ folds<Tab>zm 더\ 많은\ 접기\ 닫기(&l)<Tab>zm
menutrans &Close\ all\ folds<Tab>zM 접힌\ 부분\ 모두\ 접(&C)<Tab>zM menutrans &Close\ all\ folds<Tab>zM 모든\ 접기\ 닫(&C)<Tab>zM
menutrans O&pen\ more\ folds<Tab>zr 더 많은\ 접기\ 열기(&p)<Tab>zr menutrans O&pen\ more\ folds<Tab>zr 더\ 많은\ 접기\ 열기(&p)<Tab>zr
menutrans &Open\ all\ folds<Tab>zR 접힌\ 부분\ 모두\ 펴기(&O)<Tab>zR menutrans &Open\ all\ folds<Tab>zR 접힌\ 부분\ 모두\ 펴기(&O)<Tab>zR
" fold method " fold method
menutrans Fold\ Met&hod 접는\ 방법(&h) menutrans Fold\ Met&hod 접는\ 방법(&h)
...@@ -141,11 +141,11 @@ menutrans S&yntax ...@@ -141,11 +141,11 @@ menutrans S&yntax
"menutrans &Diff &Diff "menutrans &Diff &Diff
menutrans Ma&rker 꼬리표(&r) menutrans Ma&rker 꼬리표(&r)
" create and delete folds " create and delete folds
menutrans Create\ &Fold<Tab>zf 새로 접기(&F)<Tab>zf menutrans Create\ &Fold<Tab>zf 접기\ 생성(&F)<Tab>zf
menutrans &Delete\ Fold<Tab>zd 완전히 펴기(&D)<Tab>zd menutrans &Delete\ Fold<Tab>zd 접기\ 삭제(&D)<Tab>zd
menutrans Delete\ &All\ Folds<Tab>zD 모\ 펴기(&A)<Tab>zD menutrans Delete\ &All\ Folds<Tab>zD 모\ 접기\ 삭제(&A)<Tab>zD
" moving around in folds " moving around in folds
menutrans Fold\ column\ &width 접\ \ 너비(&w) menutrans Fold\ column\ &width 접\ 컬럼\ 너비(&w)
"menutrans &Diff &Diff "menutrans &Diff &Diff
menutrans &Update 갱신(&U) menutrans &Update 갱신(&U)
......
" Menu Translations: Korean " Menu Translations: Korean
" Maintainer: SungHyun Nam <goweol@gmail.com> " Maintainer: SungHyun Nam <goweol@gmail.com>
" Last Change: 2010 Feb 18 " Last Change: 2011 Mar 22
" Quit when menu translations have already been done. " Quit when menu translations have already been done.
if exists("did_menu_trans") if exists("did_menu_trans")
...@@ -42,7 +42,7 @@ menutrans E&xit<Tab>:qa 끝내기(&x)<Tab>:qa ...@@ -42,7 +42,7 @@ menutrans E&xit<Tab>:qa 끝내기(&x)<Tab>:qa
" Edit menu " Edit menu
menutrans &Edit 편집(&E) menutrans &Edit 편집(&E)
menutrans &Undo<Tab>u 취소(&U)<Tab>u menutrans &Undo<Tab>u 취소(&U)<Tab>u
menutrans &Redo<Tab>^R 다시 실행(&R)<Tab>^R menutrans &Redo<Tab>^R 다시\ 실행(&R)<Tab>^R
menutrans Rep&eat<Tab>\. 되풀이(&e)<Tab>\. menutrans Rep&eat<Tab>\. 되풀이(&e)<Tab>\.
menutrans Cu&t<Tab>"+x 자르기(&t)<Tab>"+x menutrans Cu&t<Tab>"+x 자르기(&t)<Tab>"+x
menutrans &Copy<Tab>"+y 복사(&C)<Tab>"+y menutrans &Copy<Tab>"+y 복사(&C)<Tab>"+y
...@@ -63,7 +63,7 @@ menutrans Toggle\ &Ignore-case<Tab>:set\ ic! 대소문자\ 구분\ 토글(&I)<Ta ...@@ -63,7 +63,7 @@ menutrans Toggle\ &Ignore-case<Tab>:set\ ic! 대소문자\ 구분\ 토글(&I)<Ta
menutrans Toggle\ &Showmatch<Tab>:set\ sm! Showmatch\ 토글(&S)<Tab>:set\ sm! menutrans Toggle\ &Showmatch<Tab>:set\ sm! Showmatch\ 토글(&S)<Tab>:set\ sm!
menutrans &Context\ lines 콘텍스트\ 줄(&C) menutrans &Context\ lines 콘텍스트\ 줄(&C)
menutrans &Virtual\ Edit 가상\ 편집(&V) menutrans &Virtual\ Edit 가상\ 편집(&V)
menutrans Never 사용 안 함 menutrans Never 사용\\
menutrans Block\ Selection 블럭\ 고르기 menutrans Block\ Selection 블럭\ 고르기
menutrans Insert\ mode 삽입\ 모드 menutrans Insert\ mode 삽입\ 모드
menutrans Block\ and\ Insert 블럭과\ 삽입 menutrans Block\ and\ Insert 블럭과\ 삽입
...@@ -92,7 +92,7 @@ menutrans Toggle\ &auto-indent<Tab>:set\ ai! 자동인덴트\ 토글(&a)<Tab>:se ...@@ -92,7 +92,7 @@ menutrans Toggle\ &auto-indent<Tab>:set\ ai! 자동인덴트\ 토글(&a)<Tab>:se
menutrans Toggle\ &C-indenting<Tab>:set\ cin! C-인덴팅\ 토글(&C)<Tab>:set\ cin! menutrans Toggle\ &C-indenting<Tab>:set\ cin! C-인덴팅\ 토글(&C)<Tab>:set\ cin!
" other options " other options
menutrans &Shiftwidth 쉬프트 너비(&S) menutrans &Shiftwidth 쉬프트\ 너비(&S)
menutrans Soft\ &Tabstop 소프트\ 탭스톱(&T) menutrans Soft\ &Tabstop 소프트\ 탭스톱(&T)
menutrans Te&xt\ Width\.\.\. 텍스트\ 너비(&x)\.\.\. menutrans Te&xt\ Width\.\.\. 텍스트\ 너비(&x)\.\.\.
menutrans &File\ Format\.\.\. 파일\ 형식(&F)\.\.\. menutrans &File\ Format\.\.\. 파일\ 형식(&F)\.\.\.
...@@ -125,12 +125,12 @@ menutrans &Find\ More\ Languages 다른\ 언어\ 찾기(&F) ...@@ -125,12 +125,12 @@ menutrans &Find\ More\ Languages 다른\ 언어\ 찾기(&F)
" Tools.Fold Menu " Tools.Fold Menu
menutrans &Folding 접기(&F) menutrans &Folding 접기(&F)
" open close folds " open close folds
menutrans &Enable/Disable\ folds<Tab>zi 접는\ 기능\ 사용\ 토글(&E)<Tab>zi menutrans &Enable/Disable\ folds<Tab>zi 접\ 사용\ 토글(&E)<Tab>zi
menutrans &View\ Cursor\ Line<Tab>zv 커서\ 줄\ 보기(&V)<Tab>zv menutrans &View\ Cursor\ Line<Tab>zv 커서\ 줄\ 보기(&V)<Tab>zv
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 커서\ 줄만\ 보기(&w)<Tab>zMzx menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 커서\ 줄만\ 보기(&w)<Tab>zMzx
menutrans C&lose\ more\ folds<Tab>zm 더\ 많은\ 접기\ 닫기(&l)<Tab>zm menutrans C&lose\ more\ folds<Tab>zm 더\ 많은\ 접기\ 닫기(&l)<Tab>zm
menutrans &Close\ all\ folds<Tab>zM 접힌\ 부분\ 모두\ 접(&C)<Tab>zM menutrans &Close\ all\ folds<Tab>zM 모든\ 접기\ 닫(&C)<Tab>zM
menutrans O&pen\ more\ folds<Tab>zr 더 많은\ 접기\ 열기(&p)<Tab>zr menutrans O&pen\ more\ folds<Tab>zr 더\ 많은\ 접기\ 열기(&p)<Tab>zr
menutrans &Open\ all\ folds<Tab>zR 접힌\ 부분\ 모두\ 펴기(&O)<Tab>zR menutrans &Open\ all\ folds<Tab>zR 접힌\ 부분\ 모두\ 펴기(&O)<Tab>zR
" fold method " fold method
menutrans Fold\ Met&hod 접는\ 방법(&h) menutrans Fold\ Met&hod 접는\ 방법(&h)
...@@ -141,11 +141,11 @@ menutrans S&yntax 신택스(&y) ...@@ -141,11 +141,11 @@ menutrans S&yntax 신택스(&y)
"menutrans &Diff &Diff "menutrans &Diff &Diff
menutrans Ma&rker 꼬리표(&r) menutrans Ma&rker 꼬리표(&r)
" create and delete folds " create and delete folds
menutrans Create\ &Fold<Tab>zf 새로 접기(&F)<Tab>zf menutrans Create\ &Fold<Tab>zf 접기\ 생성(&F)<Tab>zf
menutrans &Delete\ Fold<Tab>zd 완전히 펴기(&D)<Tab>zd menutrans &Delete\ Fold<Tab>zd 접기\ 삭제(&D)<Tab>zd
menutrans Delete\ &All\ Folds<Tab>zD 모\ 펴기(&A)<Tab>zD menutrans Delete\ &All\ Folds<Tab>zD 모\ 접기\ 삭제(&A)<Tab>zD
" moving around in folds " moving around in folds
menutrans Fold\ column\ &width 접\ \ 너비(&w) menutrans Fold\ column\ &width 접\ 컬럼\ 너비(&w)
"menutrans &Diff &Diff "menutrans &Diff &Diff
menutrans &Update 갱신(&U) menutrans &Update 갱신(&U)
......
...@@ -3,13 +3,18 @@ ...@@ -3,13 +3,18 @@
" Maintainer: Jakson Aquino <jalvesaq@gmail.com> " Maintainer: Jakson Aquino <jalvesaq@gmail.com>
" Former Maintainers: Vaidotas Zemlys <zemlys@gmail.com> " Former Maintainers: Vaidotas Zemlys <zemlys@gmail.com>
" Tom Payne <tom@tompayne.org> " Tom Payne <tom@tompayne.org>
" Last Change: Wed Sep 29, 2010 09:31AM " Last Change: Sun Feb 20, 2011 12:06PM
" Filenames: *.R *.r *.Rhistory *.Rt " Filenames: *.R *.r *.Rhistory *.Rt
" "
" NOTE: The highlighting of R functions is defined in the " NOTE: The highlighting of R functions is defined in the
" r-plugin/functions.vim, which is part of vim-r-plugin2: " r-plugin/functions.vim, which is part of vim-r-plugin2:
" http://www.vim.org/scripts/script.php?script_id=2628 " http://www.vim.org/scripts/script.php?script_id=2628
" "
" CONFIGURATION:
" syntax folding can be turned on by
"
" let r_syntax_folding = 1
"
" Some lines of code were borrowed from Zhuojun Chen. " Some lines of code were borrowed from Zhuojun Chen.
if exists("b:current_syntax") if exists("b:current_syntax")
...@@ -18,18 +23,30 @@ endif ...@@ -18,18 +23,30 @@ endif
setlocal iskeyword=@,48-57,_,. setlocal iskeyword=@,48-57,_,.
if exists("g:r_syntax_folding")
setlocal foldmethod=syntax
endif
syn case match syn case match
" Comment " Comment
syn match rComment contains=@Spell "\#.*" syn match rComment contains=@Spell "\#.*"
" string enclosed in double quotes if &filetype == "rhelp"
syn region rString contains=rSpecial,rStrError,@Spell start=/"/ skip=/\\\\\|\\"/ end=/"/ " string enclosed in double quotes
" string enclosed in single quotes syn region rString contains=rSpecial,@Spell start=/"/ skip=/\\\\\|\\"/ end=/"/
syn region rString contains=rSpecial,rStrError,@Spell start=/'/ skip=/\\\\\|\\'/ end=/'/ " string enclosed in single quotes
syn region rString contains=rSpecial,@Spell start=/'/ skip=/\\\\\|\\'/ end=/'/
else
" string enclosed in double quotes
syn region rString contains=rSpecial,rStrError,@Spell start=/"/ skip=/\\\\\|\\"/ end=/"/
" string enclosed in single quotes
syn region rString contains=rSpecial,rStrError,@Spell start=/'/ skip=/\\\\\|\\'/ end=/'/
endif
syn match rStrError display contained "\\." syn match rStrError display contained "\\."
" New line, carriage return, tab, backspace, bell, feed, vertical tab, backslash " New line, carriage return, tab, backspace, bell, feed, vertical tab, backslash
syn match rSpecial display contained "\\\(n\|r\|t\|b\|a\|f\|v\|'\|\"\)\|\\\\" syn match rSpecial display contained "\\\(n\|r\|t\|b\|a\|f\|v\|'\|\"\)\|\\\\"
...@@ -42,9 +59,6 @@ syn match rSpecial display contained "\\U\x\{1,8}" ...@@ -42,9 +59,6 @@ syn match rSpecial display contained "\\U\x\{1,8}"
syn match rSpecial display contained "\\u{\x\{1,4}}" syn match rSpecial display contained "\\u{\x\{1,4}}"
syn match rSpecial display contained "\\U{\x\{1,8}}" syn match rSpecial display contained "\\U{\x\{1,8}}"
syn match rDollar "\$"
" Statement " Statement
syn keyword rStatement break next return syn keyword rStatement break next return
syn keyword rConditional if else syn keyword rConditional if else
...@@ -54,26 +68,18 @@ syn keyword rRepeat for in repeat while ...@@ -54,26 +68,18 @@ syn keyword rRepeat for in repeat while
syn keyword rConstant T F LETTERS letters month.ab month.name pi syn keyword rConstant T F LETTERS letters month.ab month.name pi
syn keyword rConstant R.version.string syn keyword rConstant R.version.string
" Constant syn keyword rNumber NA_integer_ NA_real_ NA_complex_ NA_character_
" Constants
syn keyword rConstant NULL syn keyword rConstant NULL
syn keyword rBoolean FALSE TRUE syn keyword rBoolean FALSE TRUE
syn keyword rNumber NA NA_integer_ NA_real_ NA_complex_ NA_character_ syn keyword rNumber NA Inf NaN
syn keyword rNumber Inf NaN
" integer " integer
syn match rInteger "\<\d\+L" syn match rInteger "\<\d\+L"
syn match rInteger "\<0x\([0-9]\|[a-f]\|[A-F]\)\+L" syn match rInteger "\<0x\([0-9]\|[a-f]\|[A-F]\)\+L"
syn match rInteger "\<\d\+[Ee]+\=\d\+L" syn match rInteger "\<\d\+[Ee]+\=\d\+L"
syn match rOperator "[\*\!\&\+\-\<\>\=\^\|\~\`/:@]"
syn match rOperator "%\{2}\|%\*%\|%\/%\|%in%\|%o%\|%x%"
syn match rComplex "\<\d\+i"
syn match rComplex "\<0x\([0-9]\|[a-f]\|[A-F]\)\+i"
syn match rComplex "\<\d\+\.\d*\([Ee][-+]\=\d\+\)\=i"
syn match rComplex "\<\.\d\+\([Ee][-+]\=\d\+\)\=i"
syn match rComplex "\<\d\+[Ee][-+]\=\d\+i"
" number with no fractional part or exponent " number with no fractional part or exponent
syn match rNumber "\<\d\+\>" syn match rNumber "\<\d\+\>"
" hexadecimal number " hexadecimal number
...@@ -86,6 +92,28 @@ syn match rFloat "\<\.\d\+\([Ee][-+]\=\d\+\)\=" ...@@ -86,6 +92,28 @@ syn match rFloat "\<\.\d\+\([Ee][-+]\=\d\+\)\="
" floating point number with no fractional part and optional exponent " floating point number with no fractional part and optional exponent
syn match rFloat "\<\d\+[Ee][-+]\=\d\+" syn match rFloat "\<\d\+[Ee][-+]\=\d\+"
" complex number
syn match rComplex "\<\d\+i"
syn match rComplex "\<\d\++\d\+i"
syn match rComplex "\<0x\([0-9]\|[a-f]\|[A-F]\)\+i"
syn match rComplex "\<\d\+\.\d*\([Ee][-+]\=\d\+\)\=i"
syn match rComplex "\<\.\d\+\([Ee][-+]\=\d\+\)\=i"
syn match rComplex "\<\d\+[Ee][-+]\=\d\+i"
syn match rOperator "&"
syn match rOperator '-'
syn match rOperator '*'
syn match rOperator '+'
syn match rOperator '='
syn match rOperator "[|!<>^~`/:@]"
syn match rOperator "%\{2}\|%\*%\|%\/%\|%in%\|%o%\|%x%"
syn match rOpError '*\{3}'
syn match rOpError '//'
syn match rOpError '&&&'
syn match rOpError '|||'
syn match rOpError '<<'
syn match rOpError '>>'
syn match rArrow "<\{1,2}-" syn match rArrow "<\{1,2}-"
syn match rArrow "->\{1,2}" syn match rArrow "->\{1,2}"
...@@ -93,20 +121,50 @@ syn match rArrow "->\{1,2}" ...@@ -93,20 +121,50 @@ syn match rArrow "->\{1,2}"
syn match rDelimiter "[,;:]" syn match rDelimiter "[,;:]"
" Error " Error
syn region rRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError if exists("g:r_syntax_folding")
syn region rRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError syn region rRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError fold
syn region rRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError syn region rRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError fold
syn region rRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError fold
else
syn region rRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError
syn region rRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError
syn region rRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError
endif
syn match rError "[)\]}]" syn match rError "[)\]}]"
syn match rBraceError "[)}]" contained syn match rBraceError "[)}]" contained
syn match rCurlyError "[)\]]" contained syn match rCurlyError "[)\]]" contained
syn match rParenError "[\]}]" contained syn match rParenError "[\]}]" contained
" Source list of R functions. The list is produced by the Vim-R-plugin
" http://www.vim.org/scripts/script.php?script_id=2628
runtime r-plugin/functions.vim
syn match rDollar display contained "\$"
" List elements will not be highlighted as functions:
syn match rLstElmt "\$[a-zA-Z0-9\\._]*" contains=rDollar
" Functions that may add new objects " Functions that may add new objects
syn keyword rPreProc library require attach detach source syn keyword rPreProc library require attach detach source
if &filetype == "rhelp"
syn match rHelpIdent '\\method'
syn match rHelpIdent '\\S4method'
endif
" Type " Type
syn keyword rType array category character complex double function integer list logical matrix numeric vector data.frame syn keyword rType array category character complex double function integer list logical matrix numeric vector data.frame
" Name of object with spaces
syn region rNameWSpace start="`" end="`"
if &filetype == "rhelp"
syn match rhPreProc "^#ifdef.*"
syn match rhPreProc "^#endif.*"
syn match rhSection "\\dontrun\>"
endif
" Define the default highlighting. " Define the default highlighting.
hi def link rArrow Statement hi def link rArrow Statement
hi def link rBoolean Boolean hi def link rBoolean Boolean
...@@ -120,9 +178,16 @@ hi def link rDelimiter Delimiter ...@@ -120,9 +178,16 @@ hi def link rDelimiter Delimiter
hi def link rDollar SpecialChar hi def link rDollar SpecialChar
hi def link rError Error hi def link rError Error
hi def link rFloat Float hi def link rFloat Float
hi def link rFunction Function
hi def link rHelpIdent Identifier
hi def link rhPreProc PreProc
hi def link rhSection PreCondit
hi def link rInteger Number hi def link rInteger Number
hi def link rLstElmt Normal
hi def link rNameWSpace Normal
hi def link rNumber Number hi def link rNumber Number
hi def link rOperator Operator hi def link rOperator Operator
hi def link rOpError Error
hi def link rParenError Error hi def link rParenError Error
hi def link rPreProc PreProc hi def link rPreProc PreProc
hi def link rRepeat Repeat hi def link rRepeat Repeat
......
" Vim syntax file " Vim syntax file
" Language: R Help File " Language: R Help File
" Maintainer: Johannes Ranke <jranke@uni-bremen.de> " Maintainer: Jakson Aquino <jalvesaq@gmail.com>
" Last Change: 2010 Nov 22 " Former Maintainer: Johannes Ranke <jranke@uni-bremen.de>
" Last Change: Sat Feb 19, 2011 02:13PM
" Version: 0.7.4 " Version: 0.7.4
" SVN: $Id: rhelp.vim 90 2010-11-22 10:58:11Z ranke $ " SVN: $Id: rhelp.vim 90 2010-11-22 10:58:11Z ranke $
" Remarks: - Includes R syntax highlighting in the appropriate " Remarks: - Includes R syntax highlighting in the appropriate
...@@ -24,36 +25,46 @@ endif ...@@ -24,36 +25,46 @@ endif
syn case match syn case match
" R help identifiers {{{ " R help identifiers {{{1
syn region rhelpIdentifier matchgroup=rhelpSection start="\\name{" end="}" syn region rhelpIdentifier matchgroup=rhelpSection start="\\name{" end="}"
syn region rhelpIdentifier matchgroup=rhelpSection start="\\alias{" end="}" syn region rhelpIdentifier matchgroup=rhelpSection start="\\alias{" end="}"
syn region rhelpIdentifier matchgroup=rhelpSection start="\\pkg{" end="}" syn region rhelpIdentifier matchgroup=rhelpSection start="\\pkg{" end="}" contains=rhelpLink
syn region rhelpIdentifier matchgroup=rhelpSection start="\\method{" end="}" contained syn region rhelpIdentifier matchgroup=rhelpSection start="\\method{" end="}" contained
syn region rhelpIdentifier matchgroup=rhelpSection start="\\Rdversion{" end="}" syn region rhelpIdentifier matchgroup=rhelpSection start="\\Rdversion{" end="}"
" Highlighting of R code using an existing r.vim syntax file if available {{{1 " Highlighting of R code using an existing r.vim syntax file if available {{{1
syn include @R syntax/r.vim syn include @R syntax/r.vim
" Strings {{{1
syn region rhelpString start=/"/ skip=/\\"/ end=/"/ contains=rhelpSpecialChar,rhelpCodeSpecial,rhelpLink contained
" Special characters in R strings
syn match rhelpCodeSpecial display contained "\\\\\(n\|r\|t\|b\|a\|f\|v\|'\|\"\)\|\\\\"
" Special characters ( \$ \& \% \# \{ \} \_)
syn match rhelpSpecialChar "\\[$&%#{}_]"
" R code {{{1
syn match rhelpDots "\\dots" containedin=@R syn match rhelpDots "\\dots" containedin=@R
syn region rhelpRcode matchgroup=Delimiter start="\\examples{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpSection syn region rhelpRcode matchgroup=Delimiter start="\\examples{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpLink,rhelpIdentifier,rhelpString,rhelpSpecialChar,rhelpSection
syn region rhelpRcode matchgroup=Delimiter start="\\usage{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpIdentifier,rhelpS4method syn region rhelpRcode matchgroup=Delimiter start="\\usage{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpIdentifier,rhelpS4method
syn region rhelpRcode matchgroup=Delimiter start="\\synopsis{" matchgroup=Delimiter transparent end="}" contains=@R syn region rhelpRcode matchgroup=Delimiter start="\\synopsis{" matchgroup=Delimiter transparent end="}" contains=@R
syn region rhelpRcode matchgroup=Delimiter start="\\special{" matchgroup=Delimiter transparent end="}" contains=@R contained syn region rhelpRcode matchgroup=Delimiter start="\\special{" matchgroup=Delimiter transparent end="}" contains=@R
syn region rhelpRcode matchgroup=Delimiter start="\\code{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpLink contained syn region rhelpRcode matchgroup=Delimiter start="\\code{" skip='\\\@<!{.\{-}\\\@<!}' transparent end="}" contains=@R,rhelpDots,rhelpString,rhelpSpecialChar,rhelpLink keepend
syn region rhelpS4method matchgroup=Delimiter start="\\S4method{.*}(" matchgroup=Delimiter transparent end=")" contains=@R,rhelpDots contained syn region rhelpS4method matchgroup=Delimiter start="\\S4method{.*}(" matchgroup=Delimiter transparent end=")" contains=@R,rhelpDots
syn region rhelpSexpr matchgroup=Delimiter start="\\Sexpr{" matchgroup=Delimiter transparent end="}" contains=@R syn region rhelpSexpr matchgroup=Delimiter start="\\Sexpr{" matchgroup=Delimiter transparent end="}" contains=@R
" Strings {{{1 " PreProc {{{1
syn region rhelpString start=/"/ end=/"/ syn match rhelpPreProc "^#ifdef.*"
syn match rhelpPreProc "^#endif.*"
" Special characters ( \$ \& \% \# \{ \} \_) {{{1
syn match rhelpSpecialChar "\\[$&%#{}_]"
" Special Delimiters {{{1 " Special Delimiters {{{1
syn match rhelpDelimiter "\\cr" syn match rhelpDelimiter "\\cr"
syn match rhelpDelimiter "\\tab " syn match rhelpDelimiter "\\tab "
" Keywords {{{1 " Keywords {{{1
syn match rhelpKeyword "\\R" contained syn match rhelpKeyword "\\R"
syn match rhelpKeyword "\\ldots" syn match rhelpKeyword "\\ldots"
syn match rhelpKeyword "--" syn match rhelpKeyword "--"
syn match rhelpKeyword "---" syn match rhelpKeyword "---"
...@@ -111,9 +122,13 @@ syn match rhelpKeyword "\\Psi" ...@@ -111,9 +122,13 @@ syn match rhelpKeyword "\\Psi"
syn match rhelpKeyword "\\Omega" syn match rhelpKeyword "\\Omega"
" Links {{{1 " Links {{{1
syn region rhelpLink matchgroup=rhelpSection start="\\link{" end="}" contained keepend syn region rhelpLink matchgroup=rhelpSection start="\\link{" end="}" contained keepend extend
syn region rhelpLink matchgroup=rhelpSection start="\\link\[.\{-}\]{" end="}" contained keepend syn region rhelpLink matchgroup=rhelpSection start="\\link\[.\{-}\]{" end="}" contained keepend extend
syn region rhelpLink matchgroup=rhelpSection start="\\linkS4class{" end="}" contained keepend syn region rhelpLink matchgroup=rhelpSection start="\\linkS4class{" end="}" contained keepend extend
" Verbatim like {{{1
syn region rhelpVerbatim matchgroup=rhelpType start="\\samp{" skip='\\\@<!{.\{-}\\\@<!}' end="}" contains=rhelpSpecialChar,rhelpComment
syn region rhelpVerbatim matchgroup=rhelpType start="\\verb{" skip='\\\@<!{.\{-}\\\@<!}' end="}" contains=rhelpSpecialChar,rhelpComment
" Type Styles {{{1 " Type Styles {{{1
syn match rhelpType "\\emph\>" syn match rhelpType "\\emph\>"
...@@ -123,7 +138,6 @@ syn match rhelpType "\\sQuote\>" ...@@ -123,7 +138,6 @@ syn match rhelpType "\\sQuote\>"
syn match rhelpType "\\dQuote\>" syn match rhelpType "\\dQuote\>"
syn match rhelpType "\\preformatted\>" syn match rhelpType "\\preformatted\>"
syn match rhelpType "\\kbd\>" syn match rhelpType "\\kbd\>"
syn match rhelpType "\\samp\>"
syn match rhelpType "\\eqn\>" syn match rhelpType "\\eqn\>"
syn match rhelpType "\\deqn\>" syn match rhelpType "\\deqn\>"
syn match rhelpType "\\file\>" syn match rhelpType "\\file\>"
...@@ -172,6 +186,8 @@ syn match rhelpSection "\\donttest\>" ...@@ -172,6 +186,8 @@ syn match rhelpSection "\\donttest\>"
syn region rhelpFreesec matchgroup=Delimiter start="\\section{" matchgroup=Delimiter transparent end="}" syn region rhelpFreesec matchgroup=Delimiter start="\\section{" matchgroup=Delimiter transparent end="}"
syn region rhelpFreesubsec matchgroup=Delimiter start="\\subsection{" matchgroup=Delimiter transparent end="}" syn region rhelpFreesubsec matchgroup=Delimiter start="\\subsection{" matchgroup=Delimiter transparent end="}"
syn match rhelpDelimiter "{\|\[\|(\|)\|\]\|}"
" R help file comments {{{1 " R help file comments {{{1
syn match rhelpComment /%.*$/ syn match rhelpComment /%.*$/
...@@ -194,17 +210,21 @@ if version >= 508 || !exists("did_rhelp_syntax_inits") ...@@ -194,17 +210,21 @@ if version >= 508 || !exists("did_rhelp_syntax_inits")
else else
command -nargs=+ HiLink hi def link <args> command -nargs=+ HiLink hi def link <args>
endif endif
HiLink rhelpVerbatim String
HiLink rhelpDelimiter Delimiter
HiLink rhelpIdentifier Identifier HiLink rhelpIdentifier Identifier
HiLink rhelpString String HiLink rhelpString String
HiLink rhelpCodeSpecial Special
HiLink rhelpKeyword Keyword HiLink rhelpKeyword Keyword
HiLink rhelpDots Keyword HiLink rhelpDots Keyword
HiLink rhelpLink Underlined HiLink rhelpLink Underlined
HiLink rhelpType Type HiLink rhelpType Type
HiLink rhelpSection PreCondit HiLink rhelpSection PreCondit
HiLink rhelpError Error HiLink rhelpError Error
HiLink rhelpBraceError Error HiLink rhelpBraceError Error
HiLink rhelpCurlyError Error HiLink rhelpCurlyError Error
HiLink rhelpParenError Error HiLink rhelpParenError Error
HiLink rhelpPreProc PreProc
HiLink rhelpDelimiter Delimiter HiLink rhelpDelimiter Delimiter
HiLink rhelpComment Comment HiLink rhelpComment Comment
HiLink rhelpRComment Comment HiLink rhelpRComment Comment
......
" Vim syntax file
" Language: Treetop
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2011-03-14
if exists("b:current_syntax")
finish
endif
let s:cpo_save = &cpo
set cpo&vim
syn keyword treetopTodo
\ contained
\ TODO
\ FIXME
\ XXX
\ NOTE
syn match treetopComment
\ '#.*'
\ display
\ contains=treetopTodo
syn include @treetopRuby syntax/ruby.vim
unlet b:current_syntax
syn keyword treetopKeyword
\ require
\ end
syn region treetopKeyword
\ matchgroup=treetopKeyword
\ start='\<\%(grammar\|include\|module\)\>\ze\s'
\ end='$'
\ transparent
\ oneline
\ keepend
\ contains=@treetopRuby
syn keyword treetopKeyword
\ rule
\ nextgroup=treetopRuleName
\ skipwhite skipnl
syn match treetopGrammarName
\ '\u\w*'
\ contained
syn match treetopRubyModuleName
\ '\u\w*'
\ contained
syn match treetopRuleName
\ '\h\w*'
\ contained
syn region treetopString
\ matchgroup=treetopStringDelimiter
\ start=+"+
\ end=+"+
syn region treetopString
\ matchgroup=treetopStringDelimiter
\ start=+'+
\ end=+'+
syn region treetopCharacterClass
\ matchgroup=treetopCharacterClassDelimiter
\ start=+\[+
\ skip=+\\\]+
\ end=+\]+
syn region treetopRubyBlock
\ matchgroup=treetopRubyBlockDelimiter
\ start=+{+
\ end=+}+
\ contains=@treetopRuby
syn region treetopSemanticPredicate
\ matchgroup=treetopSemanticPredicateDelimiter
\ start=+[!&]{+
\ end=+}+
\ contains=@treetopRuby
syn region treetopSubclassDeclaration
\ matchgroup=treetopSubclassDeclarationDelimiter
\ start=+<+
\ end=+>+
\ contains=@treetopRuby
syn match treetopEllipsis
\ +''+
hi def link treetopTodo Todo
hi def link treetopComment Comment
hi def link treetopKeyword Keyword
hi def link treetopGrammarName Constant
hi def link treetopRubyModuleName Constant
hi def link treetopRuleName Identifier
hi def link treetopString String
hi def link treetopStringDelimiter treetopString
hi def link treetopCharacterClass treetopString
hi def link treetopCharacterClassDelimiter treetopCharacterClass
hi def link treetopRubyBlockDelimiter PreProc
hi def link treetopSemanticPredicateDelimiter PreProc
hi def link treetopSubclassDeclarationDelimiter PreProc
hi def link treetopEllipsis Special
let b:current_syntax = 'treetop'
let &cpo = s:cpo_save
unlet s:cpo_save
" Vim syntax file
" Language: Upstart job files
" Maintainer: Michael Biebl <biebl@debian.org>
" James Hunt <james.hunt@ubuntu.com>
" Last Change: 2011 Mar 22
" License: GPL v2
" Version: 0.4
" Remark: Syntax highlighting for Upstart (init(8)) job files.
"
" It is inspired by the initng syntax file and includes sh.vim to do the
" highlighting of script blocks.
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let is_bash = 1
syn include @Shell syntax/sh.vim
syn case match
" avoid need to use 'match' for most events
setlocal iskeyword+=-
syn match upstartComment /#.*$/ contains=upstartTodo
syn keyword upstartTodo TODO FIXME contained
syn region upstartString start=/"/ end=/"/ skip=/\\"/
syn region upstartScript matchgroup=upstartStatement start="script" end="end script" contains=@upstartShellCluster
syn cluster upstartShellCluster contains=@Shell
" one argument
syn keyword upstartStatement description author version instance expect
syn keyword upstartStatement pid kill normal console env exit export
syn keyword upstartStatement umask nice oom chroot chdir exec
" two arguments
syn keyword upstartStatement limit
" one or more arguments (events)
syn keyword upstartStatement emits
syn keyword upstartStatement on start stop
" flag, no parameter
syn keyword upstartStatement respawn service instance manual debug task
" prefix for exec or script
syn keyword upstartOption pre-start post-start pre-stop post-stop
" option for kill
syn keyword upstartOption timeout
" option for oom
syn keyword upstartOption never
" options for console
syn keyword upstartOption output owner
" options for expect
syn keyword upstartOption fork daemon
" options for limit
syn keyword upstartOption unlimited
" 'options' for start/stop on
syn keyword upstartOption and or
" Upstart itself and associated utilities
syn keyword upstartEvent runlevel
syn keyword upstartEvent started
syn keyword upstartEvent starting
syn keyword upstartEvent startup
syn keyword upstartEvent stopped
syn keyword upstartEvent stopping
syn keyword upstartEvent control-alt-delete
syn keyword upstartEvent keyboard-request
syn keyword upstartEvent power-status-changed
" D-Bus
syn keyword upstartEvent dbus-activation
" Display Manager (ie gdm)
syn keyword upstartEvent desktop-session-start
syn keyword upstartEvent login-session-start
" mountall
syn keyword upstartEvent all-swaps
syn keyword upstartEvent filesystem
syn keyword upstartEvent mounted
syn keyword upstartEvent mounting
syn keyword upstartEvent local-filesystems
syn keyword upstartEvent remote-filesystems
syn keyword upstartEvent virtual-filesystems
" SysV umountnfs.sh
syn keyword upstartEvent mounted-remote-filesystems
" upstart-udev-bridge and ifup/down
syn match upstartEvent /\<\i\{-1,}-device-\(added\|removed\|up\|down\)/
" upstart-socket-bridge
syn keyword upstartEvent socket
hi def link upstartComment Comment
hi def link upstartTodo Todo
hi def link upstartString String
hi def link upstartStatement Statement
hi def link upstartOption Type
hi def link upstartEvent Define
let b:current_syntax = "upstart"
...@@ -13,8 +13,8 @@ msgid "" ...@@ -13,8 +13,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vim 7.3\n" "Project-Id-Version: vim 7.3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-08-09 12:53+0200\n" "POT-Creation-Date: 2011-03-10 11:10+0100\n"
"PO-Revision-Date: 2010-08-09 21:00+0200\n" "PO-Revision-Date: 2011-03-12 07:08+0100\n"
"Last-Translator: Vlad Sandrini <vlad.gently@gmail.com>\n" "Last-Translator: Vlad Sandrini <vlad.gently@gmail.com>\n"
"Language-Team: Italian" "Language-Team: Italian"
" Antonio Colombo <azc100@gmail.com>" " Antonio Colombo <azc100@gmail.com>"
...@@ -201,7 +201,7 @@ msgstr "Segni per %s:" ...@@ -201,7 +201,7 @@ msgstr "Segni per %s:"
#, c-format #, c-format
msgid " line=%ld id=%d name=%s" msgid " line=%ld id=%d name=%s"
msgstr " linea=%ld id=%d nome=%s" msgstr " linea=%ld id=%d, nome=%s"
#, c-format #, c-format
msgid "E96: Can not diff more than %ld buffers" msgid "E96: Can not diff more than %ld buffers"
...@@ -303,6 +303,12 @@ msgstr " Completamento Keyword Locale (^N^P)" ...@@ -303,6 +303,12 @@ msgstr " Completamento Keyword Locale (^N^P)"
msgid "Hit end of paragraph" msgid "Hit end of paragraph"
msgstr "Giunto alla fine del paragrafo" msgstr "Giunto alla fine del paragrafo"
msgid "E839: Completion function changed window"
msgstr "E839: La funzione di completamento ha modificato la finestra"
msgid "E840: Completion function deleted text"
msgstr "E840: La funzione di completamento ha eliminato del testo"
msgid "'dictionary' option is empty" msgid "'dictionary' option is empty"
msgstr "l'opzione 'dictionary' non impostata" msgstr "l'opzione 'dictionary' non impostata"
...@@ -1271,6 +1277,9 @@ msgid "E183: User defined commands must start with an uppercase letter" ...@@ -1271,6 +1277,9 @@ msgid "E183: User defined commands must start with an uppercase letter"
msgstr "" msgstr ""
"E183: I comandi definiti dall'utente devono iniziare con lettera maiuscola" "E183: I comandi definiti dall'utente devono iniziare con lettera maiuscola"
msgid "E841: Reserved name, cannot be used for user defined command"
msgstr "E841: Nome riservato, non usabile in un comando definito dall'utente"
#, c-format #, c-format
msgid "E184: No such user-defined command: %s" msgid "E184: No such user-defined command: %s"
msgstr "E184: Comando definito dall'utente %s inesistente" msgstr "E184: Comando definito dall'utente %s inesistente"
...@@ -1395,6 +1404,9 @@ msgid "E498: no :source file name to substitute for \"<sfile>\"" ...@@ -1395,6 +1404,9 @@ msgid "E498: no :source file name to substitute for \"<sfile>\""
msgstr "" msgstr ""
"E498: nessun nome di file :source trovato da sostituire per \"<sfile>\"" "E498: nessun nome di file :source trovato da sostituire per \"<sfile>\""
msgid "E842: no line number to use for \"<slnum>\""
msgstr "E842: nessun numero di riga da usare per \"<slnum>\""
#, no-c-format #, no-c-format
msgid "E499: Empty file name for '%' or '#', only works with \":p:h\"" msgid "E499: Empty file name for '%' or '#', only works with \":p:h\""
msgstr "E499: Un nome di file nullo per '%' o '#', va bene solo con \":p:h\"" msgstr "E499: Un nome di file nullo per '%' o '#', va bene solo con \":p:h\""
...@@ -1626,6 +1638,9 @@ msgstr "[NON convertito]" ...@@ -1626,6 +1638,9 @@ msgstr "[NON convertito]"
msgid "[converted]" msgid "[converted]"
msgstr "[convertito]" msgstr "[convertito]"
msgid "[blowfish]"
msgstr "[blowfish]"
msgid "[crypted]" msgid "[crypted]"
msgstr "[cifrato]" msgstr "[cifrato]"
...@@ -2307,7 +2322,6 @@ msgstr "Pagina %d" ...@@ -2307,7 +2322,6 @@ msgstr "Pagina %d"
msgid "No text to be printed" msgid "No text to be printed"
msgstr "Manca testo da stampare" msgstr "Manca testo da stampare"
#, c-format
msgid "Printing page %d (%d%%)" msgid "Printing page %d (%d%%)"
msgstr "Sto stampando pagina %d (%d%%)" msgstr "Sto stampando pagina %d (%d%%)"
...@@ -2482,7 +2496,7 @@ msgid "" ...@@ -2482,7 +2496,7 @@ msgid ""
" g: Find this definition\n" " g: Find this definition\n"
" i: Find files #including this file\n" " i: Find files #including this file\n"
" s: Find this C symbol\n" " s: Find this C symbol\n"
" t: Find assignments to\n" " t: Find this text string\n"
msgstr "" msgstr ""
"\n" "\n"
" c: Trova funzioni che chiamano questa\n" " c: Trova funzioni che chiamano questa\n"
...@@ -2492,7 +2506,7 @@ msgstr "" ...@@ -2492,7 +2506,7 @@ msgstr ""
" g: Trova questa definizione\n" " g: Trova questa definizione\n"
" i: Trova file che #includono questo file\n" " i: Trova file che #includono questo file\n"
" s: Trova questo simbolo C\n" " s: Trova questo simbolo C\n"
" t: Trova assegnazioni a\n" " t: Trova questa stringa\n"
#, c-format #, c-format
msgid "E625: cannot open cscope database: %s" msgid "E625: cannot open cscope database: %s"
...@@ -2608,7 +2622,7 @@ msgid "E836: This Vim cannot execute :python after using :py3" ...@@ -2608,7 +2622,7 @@ msgid "E836: This Vim cannot execute :python after using :py3"
msgstr "E836: Python: Impossibile usare :py e :py3 nella stessa sessione" msgstr "E836: Python: Impossibile usare :py e :py3 nella stessa sessione"
msgid "E837: This Vim cannot execute :py3 after using :python" msgid "E837: This Vim cannot execute :py3 after using :python"
msgstr "E837: Python: Impossibile usare :py e :py3 nella stessa sessione" msgstr "E837: Impossibile usare ora :py3 dopo aver usato :python"
msgid "" msgid ""
"E263: Sorry, this command is disabled, the Python library could not be " "E263: Sorry, this command is disabled, the Python library could not be "
...@@ -3207,12 +3221,6 @@ msgstr "-display <schermo>\tEsegui vim su <schermo>" ...@@ -3207,12 +3221,6 @@ msgstr "-display <schermo>\tEsegui vim su <schermo>"
msgid "-iconic\t\tStart vim iconified" msgid "-iconic\t\tStart vim iconified"
msgstr "-iconic\t\tInizia vim riducendolo ad icona" msgstr "-iconic\t\tInizia vim riducendolo ad icona"
msgid "-name <name>\t\tUse resource as if vim was <name>"
msgstr "-name <nome>\t\tUsa risorsa come se vim fosse <nome>"
msgid "\t\t\t (Unimplemented)\n"
msgstr "\t\t\t (Non implementato)\n"
msgid "-background <color>\tUse <color> for the background (also: -bg)" msgid "-background <color>\tUse <color> for the background (also: -bg)"
msgstr "-background <colore>\tUsa <colore> come sfondo (anche: -bg)" msgstr "-background <colore>\tUsa <colore> come sfondo (anche: -bg)"
...@@ -3415,6 +3423,9 @@ msgstr "E298: Non riesco a leggere blocco numero 1?" ...@@ -3415,6 +3423,9 @@ msgstr "E298: Non riesco a leggere blocco numero 1?"
msgid "E298: Didn't get block nr 2?" msgid "E298: Didn't get block nr 2?"
msgstr "E298: Non riesco a leggere blocco numero 2?" msgstr "E298: Non riesco a leggere blocco numero 2?"
msgid "E843: Error while updating swap file crypt"
msgstr "E843: Errore aggiornando cifratura dello swap file"
#. could not (re)open the swap file, what can we do???? #. could not (re)open the swap file, what can we do????
msgid "E301: Oops, lost the swap file!!!" msgid "E301: Oops, lost the swap file!!!"
msgstr "E301: Ahim, lo swap file perduto!!!" msgstr "E301: Ahim, lo swap file perduto!!!"
...@@ -3518,7 +3529,7 @@ msgid "" ...@@ -3518,7 +3529,7 @@ msgid ""
"If you wrote the text file after changing the crypt key press enter" "If you wrote the text file after changing the crypt key press enter"
msgstr "" msgstr ""
"\n" "\n"
"Se hai riscritto il file dopo aver cambio chiave di cifr., premi Invio" "Se hai riscritto il file dopo aver cambiato chiave di cifr., premi Invio"
msgid "" msgid ""
"\n" "\n"
...@@ -3773,24 +3784,20 @@ msgstr " pi ...@@ -3773,24 +3784,20 @@ msgstr " pi
#. * other languages. #. * other languages.
msgid "" msgid ""
"\n" "\n"
"(1) Another program may be editing the same file.\n" "(1) Another program may be editing the same file. If this is the case,\n"
" If this is the case, be careful not to end up with two\n" " be careful not to end up with two different instances of the same\n"
" different instances of the same file when making changes.\n" " file when making changes."
msgstr "" msgstr ""
"\n" "\n"
"(1) Un altro programma pu essere in edit sullo stesso file.\n" "(1) Un altro programma pu essere in edit sullo stesso file.\n"
" Se cos, attenzione a non trovarti con due versioni\n" " Se cos, attenzione a non trovarti con due versioni\n"
" differenti dello stesso file a cui vengono apportate modifiche.\n" " differenti dello stesso file a cui vengono apportate modifiche.\n"
msgid " Quit, or continue with caution.\n" msgid " Quit, or continue with caution.\n"
msgstr " Esci, o continua con prudenza.\n" msgstr " Esci, o continua con prudenza.\n"
msgid "" msgid "(2) An edit session for this file crashed.\n"
"\n" msgstr "(2) Una sessione di edit per questo file finita male.\n"
"(2) An edit session for this file crashed.\n"
msgstr ""
"\n"
"(2) Una sessione di edit per questo file finita male.\n"
msgid " If this is the case, use \":recover\" or \"vim -r " msgid " If this is the case, use \":recover\" or \"vim -r "
msgstr " Se cos, usa \":recover\" oppure \"vim -r " msgstr " Se cos, usa \":recover\" oppure \"vim -r "
...@@ -4022,7 +4029,6 @@ msgstr "Vim: preservo file...\n" ...@@ -4022,7 +4029,6 @@ msgstr "Vim: preservo file...\n"
msgid "Vim: Finished.\n" msgid "Vim: Finished.\n"
msgstr "Vim: Finito.\n" msgstr "Vim: Finito.\n"
#, c-format
msgid "ERROR: " msgid "ERROR: "
msgstr "ERRORE: " msgstr "ERRORE: "
...@@ -4123,6 +4129,9 @@ msgstr "lettura da socket Netbeans" ...@@ -4123,6 +4129,9 @@ msgstr "lettura da socket Netbeans"
msgid "E658: NetBeans connection lost for buffer %ld" msgid "E658: NetBeans connection lost for buffer %ld"
msgstr "E658: Connessione NetBeans persa per il buffer %ld" msgstr "E658: Connessione NetBeans persa per il buffer %ld"
msgid "E838: netbeans is not supported with this GUI"
msgstr "E838: netbeans non supportato con questa GUI"
msgid "E511: netbeans already connected" msgid "E511: netbeans already connected"
msgstr "E511: netbeans gi connesso" msgstr "E511: netbeans gi connesso"
...@@ -4534,7 +4543,6 @@ msgstr "Vim: Segnale doppio, esco\n" ...@@ -4534,7 +4543,6 @@ msgstr "Vim: Segnale doppio, esco\n"
msgid "Vim: Caught deadly signal %s\n" msgid "Vim: Caught deadly signal %s\n"
msgstr "Vim: Intercettato segnale fatale %s\n" msgstr "Vim: Intercettato segnale fatale %s\n"
#, c-format
msgid "Vim: Caught deadly signal\n" msgid "Vim: Caught deadly signal\n"
msgstr "Vim: Intercettato segnale fatale\n" msgstr "Vim: Intercettato segnale fatale\n"
...@@ -4678,26 +4686,21 @@ msgstr "" ...@@ -4678,26 +4686,21 @@ msgstr ""
msgid "Vim Warning" msgid "Vim Warning"
msgstr "Avviso da Vim" msgstr "Avviso da Vim"
#, c-format
msgid "E372: Too many %%%c in format string" msgid "E372: Too many %%%c in format string"
msgstr "E372: Troppi %%%c nella stringa di 'format'" msgstr "E372: Troppi %%%c nella stringa di 'format'"
#, c-format
msgid "E373: Unexpected %%%c in format string" msgid "E373: Unexpected %%%c in format string"
msgstr "E373: %%%c imprevisto nella stringa di 'format'" msgstr "E373: %%%c imprevisto nella stringa di 'format'"
msgid "E374: Missing ] in format string" msgid "E374: Missing ] in format string"
msgstr "E374: Manca ] nella stringa di 'format'" msgstr "E374: Manca ] nella stringa di 'format'"
#, c-format
msgid "E375: Unsupported %%%c in format string" msgid "E375: Unsupported %%%c in format string"
msgstr "E375: %%%c non supportato nella stringa di 'format'" msgstr "E375: %%%c non supportato nella stringa di 'format'"
#, c-format
msgid "E376: Invalid %%%c in format string prefix" msgid "E376: Invalid %%%c in format string prefix"
msgstr "E376: %%%c non valido nel prefisso della stringa di 'format'" msgstr "E376: %%%c non valido nel prefisso della stringa di 'format'"
#, c-format
msgid "E377: Invalid %%%c in format string" msgid "E377: Invalid %%%c in format string"
msgstr "E377: %%%c non valido nella stringa di 'format'" msgstr "E377: %%%c non valido nella stringa di 'format'"
...@@ -4746,10 +4749,6 @@ msgstr "E681: Buffer non caricato" ...@@ -4746,10 +4749,6 @@ msgstr "E681: Buffer non caricato"
msgid "E777: String or List expected" msgid "E777: String or List expected"
msgstr "E777: aspettavo Stringa o Lista" msgstr "E777: aspettavo Stringa o Lista"
#, c-format
msgid "E369: invalid item in %s%%[]"
msgstr "E369: elemento non valido in %s%%[]"
msgid "E339: Pattern too long" msgid "E339: Pattern too long"
msgstr "E339: Espressione troppo lunga" msgstr "E339: Espressione troppo lunga"
...@@ -4763,7 +4762,6 @@ msgstr "E51: Troppe %s(" ...@@ -4763,7 +4762,6 @@ msgstr "E51: Troppe %s("
msgid "E52: Unmatched \\z(" msgid "E52: Unmatched \\z("
msgstr "E52: Senza riscontro: \\z(" msgstr "E52: Senza riscontro: \\z("
#, c-format
msgid "E53: Unmatched %s%%(" msgid "E53: Unmatched %s%%("
msgstr "E53: Senza riscontro: %s%%(" msgstr "E53: Senza riscontro: %s%%("
...@@ -4810,19 +4808,15 @@ msgstr "E67: \\z1 ecc. non consentiti qui" ...@@ -4810,19 +4808,15 @@ msgstr "E67: \\z1 ecc. non consentiti qui"
msgid "E68: Invalid character after \\z" msgid "E68: Invalid character after \\z"
msgstr "E68: Carattere non ammesso dopo \\z" msgstr "E68: Carattere non ammesso dopo \\z"
#, c-format
msgid "E69: Missing ] after %s%%[" msgid "E69: Missing ] after %s%%["
msgstr "E69: Manca ] dopo %s%%[" msgstr "E69: Manca ] dopo %s%%["
#, c-format
msgid "E70: Empty %s%%[]" msgid "E70: Empty %s%%[]"
msgstr "E70: %s%%[] vuoto" msgstr "E70: %s%%[] vuoto"
#, c-format
msgid "E678: Invalid character after %s%%[dxouU]" msgid "E678: Invalid character after %s%%[dxouU]"
msgstr "E678: Carattere non valido dopo %s%%[dxouU]" msgstr "E678: Carattere non valido dopo %s%%[dxouU]"
#, c-format
msgid "E71: Invalid character after %s%%" msgid "E71: Invalid character after %s%%"
msgstr "E71: Carattere non ammesso dopo %s%%" msgstr "E71: Carattere non ammesso dopo %s%%"
...@@ -4987,6 +4981,10 @@ msgstr "Comprimo albero di parole..." ...@@ -4987,6 +4981,10 @@ msgstr "Comprimo albero di parole..."
msgid "E756: Spell checking is not enabled" msgid "E756: Spell checking is not enabled"
msgstr "E756: Controllo ortografico non abilitato" msgstr "E756: Controllo ortografico non abilitato"
#, c-format
msgid "Warning: Cannot find word list \"%s_%s.spl\" or \"%s_ascii.spl\""
msgstr "Attenzione: Non trovo lista parole \"%s_%s.spl\" o \"%s_ascii.spl\""
#, c-format #, c-format
msgid "Warning: Cannot find word list \"%s.%s.spl\" or \"%s.ascii.spl\"" msgid "Warning: Cannot find word list \"%s.%s.spl\" or \"%s.ascii.spl\""
msgstr "Attenzione: Non trovo lista parole \"%s.%s.spl\" o \"%s.ascii.spl\"" msgstr "Attenzione: Non trovo lista parole \"%s.%s.spl\" o \"%s.ascii.spl\""
...@@ -5212,6 +5210,9 @@ msgstr "Flag non riconosciuti in %s linea %d: %s" ...@@ -5212,6 +5210,9 @@ msgstr "Flag non riconosciuti in %s linea %d: %s"
msgid "Ignored %d words with non-ASCII characters" msgid "Ignored %d words with non-ASCII characters"
msgstr "%d parole con caratteri non-ASCII ignorate" msgstr "%d parole con caratteri non-ASCII ignorate"
msgid "E845: Insufficient memory, word list will be incomplete"
msgstr "E845: Memoria insufficiente, la lista parole sar incompleta"
#, c-format #, c-format
msgid "Compressed %d of %d nodes; %d (%d%%) remaining" msgid "Compressed %d of %d nodes; %d (%d%%) remaining"
msgstr "%d di %d nodi compressi; ne restano %d (%d%%)" msgstr "%d di %d nodi compressi; ne restano %d (%d%%)"
...@@ -5389,8 +5390,8 @@ msgstr " interruzioni di linea" ...@@ -5389,8 +5390,8 @@ msgstr " interruzioni di linea"
msgid "E395: contains argument not accepted here" msgid "E395: contains argument not accepted here"
msgstr "E395: contiene argomenti non accettati qui" msgstr "E395: contiene argomenti non accettati qui"
msgid "E396: containedin argument not accepted here" msgid "E844: invalid cchar value"
msgstr "E396: argomento 'containedin' non accettato qui" msgstr "E844: valore cchar non valido"
msgid "E393: group[t]here not accepted here" msgid "E393: group[t]here not accepted here"
msgstr "E393: group[t]here non ammesso qui" msgstr "E393: group[t]here non ammesso qui"
...@@ -5768,8 +5769,8 @@ msgstr "dopo" ...@@ -5768,8 +5769,8 @@ msgstr "dopo"
msgid "Nothing to undo" msgid "Nothing to undo"
msgstr "Nessuna modifica, Undo impossibile" msgstr "Nessuna modifica, Undo impossibile"
msgid "number changes time saved" msgid "number changes when saved"
msgstr "numero modif. ora salv." msgstr "numero modif. quando salv."
#, c-format #, c-format
msgid "%ld seconds ago" msgid "%ld seconds ago"
...@@ -6164,7 +6165,6 @@ msgstr "Differenza con Vim" ...@@ -6164,7 +6165,6 @@ msgstr "Differenza con Vim"
msgid "Edit with &Vim" msgid "Edit with &Vim"
msgstr "Apri con &Vim" msgstr "Apri con &Vim"
#. Now concatenate
msgid "Edit with existing Vim - " msgid "Edit with existing Vim - "
msgstr "Apri con Vim esistente - " msgstr "Apri con Vim esistente - "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment