Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated for version 7.0c02

  • Loading branch information...
commit 318148da99e191ae07ebd3265425879b2ad736a4 1 parent 632759e
vimboss authored
Showing with 1,139 additions and 207 deletions.
  1. +1 −0  Filelist
  2. +15 −2 runtime/doc/insert.txt
  3. +14 −1 runtime/doc/syntax.txt
  4. +4 −0 runtime/doc/tags
  5. +13 −18 runtime/doc/todo.txt
  6. +17 −2 runtime/doc/version7.txt
  7. +7 −1 runtime/filetype.vim
  8. +4 −4 runtime/ftplugin/man.vim
  9. +4 −3 runtime/lang/menu_ja_jp.euc-jp.vim
  10. +4 −3 runtime/lang/menu_ja_jp.utf-8.vim
  11. +4 −3 runtime/lang/menu_japanese_japan.932.vim
  12. +4 −1 runtime/mswin.vim
  13. +5 −2 runtime/scripts.vim
  14. +35 −34 runtime/synmenu.vim
  15. +377 −0 runtime/syntax/coretex.vim
  16. +40 −0 runtime/syntax/debsources.vim
  17. +166 −0 runtime/syntax/plaintex.vim
  18. +3 −2 src/Makefile
  19. +2 −0  src/auto/configure
  20. +3 −0  src/configure.in
  21. BIN  src/doc-txt.icns
  22. +16 −4 src/edit.c
  23. +4 −2 src/ex_cmds.c
  24. +5 −0 src/gui_mac.c
  25. +1 −2  src/gui_w48.c
  26. +17 −0 src/main.c
  27. +152 −28 src/po/ja.po
  28. +152 −28 src/po/ja.sjis.po
  29. +7 −4 src/popupmnu.c
  30. +57 −57 src/proto/ex_cmds.pro
  31. +1 −1  src/proto/gui_mac.pro
  32. +1 −1  src/search.c
  33. +1 −1  src/tag.c
  34. +3 −3 src/version.h
View
1  Filelist
@@ -362,6 +362,7 @@ SRC_MAC = \
src/dehqx.py \
src/gui_mac.c \
src/gui_mac.icns \
+ src/doc-txt.icns \
src/os_mac.h \
src/os_mac.rsr.hqx \
src/os_mac_conv.c \
View
17 runtime/doc/insert.txt
@@ -1,4 +1,4 @@
-*insert.txt* For Vim version 7.0c. Last change: 2006 Mar 21
+*insert.txt* For Vim version 7.0c. Last change: 2006 Mar 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -304,9 +304,11 @@ insert mode:
*i_CTRL-X_CTRL-E*
CTRL-X CTRL-E scroll window one line up.
+ When doing completion look here: |complete_CTRL-E|
*i_CTRL-X_CTRL-Y*
CTRL-X CTRL-Y scroll window one line down.
+ When doing completion look here: |complete_CTRL-Y|
After CTRL-X is pressed, each CTRL-E (CTRL-Y) scrolls the window up (down) by
one line unless that would cause the cursor to move from its current position
@@ -590,6 +592,16 @@ and CTRL-P (previous).
Also see the 'infercase' option if you want to adjust the case of the match.
+ *complete_CTRL-E*
+When completion is active you can use CTRL-E to stop it and go back to the
+orignally typed text. The CTRL-E will not be inserted.
+
+ *complete_CTRL-Y*
+When the popup menu is displayed you can use CTRL-Y to stop completion and
+accept the currently selected entry. The CTRL-Y is not inserted. Typing a
+space, Enter, or some other unprintable character will leave completion mode
+and insert that typed character.
+
Note: The keys that are valid in CTRL-X mode are not mapped. This allows for
":map ^F ^X^F" to work (where ^F is CTRL-F and ^X is CTRL-X). The key that
ends CTRL-X mode (any key that is not a valid CTRL-X mode command) is mapped.
@@ -1121,7 +1133,8 @@ any printable, non-white character:
Add this character and reduce the number of matches.
In both states these can be used:
-<CR> and <Enter> Accept the currently selected match and stop completion.
+CTRL-Y Yes: Accept the currently selected match and stop completion.
+CTRL-E End completion, go back to what was typed.
<PageUp> Select a match several entries back, but don't insert it.
<PageDown> Select a match several entries further, but don't insert it.
<Up> Select the previous match, as if CTRL-P was used, but don't
View
15 runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt* For Vim version 7.0c. Last change: 2006 Mar 12
+*syntax.txt* For Vim version 7.0c. Last change: 2006 Mar 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1945,6 +1945,19 @@ x > 0 to sync at least x lines backwards,
x = 0 to sync from start.
+PLAINTEX *plaintex.vim* *ft-plaintex-syntax*
+
+TeX is a typesetting language, and plaintex is the file type for the "plain"
+variant of TeX. If you never want your *.tex files recognized as plain TeX,
+see |ft-tex-plugin|.
+
+This syntax file has the option >
+
+ let g:plaintex_delimiters = 1
+
+if you want to highlight brackets "[]" and braces "{}".
+
+
PPWIZARD *ppwiz.vim* *ft-ppwiz-syntax*
PPWizard is a preprocessor for HTML and OS/2 INF files
View
4 runtime/doc/tags
@@ -4720,6 +4720,8 @@ compl-whole-line insert.txt /*compl-whole-line*
complete() eval.txt /*complete()*
complete-functions insert.txt /*complete-functions*
complete-items insert.txt /*complete-items*
+complete_CTRL-E insert.txt /*complete_CTRL-E*
+complete_CTRL-Y insert.txt /*complete_CTRL-Y*
complete_add() eval.txt /*complete_add()*
complete_check() eval.txt /*complete_check()*
complex-change change.txt /*complex-change*
@@ -5285,6 +5287,7 @@ ft-php-omni insert.txt /*ft-php-omni*
ft-php-syntax syntax.txt /*ft-php-syntax*
ft-php3-syntax syntax.txt /*ft-php3-syntax*
ft-phtml-syntax syntax.txt /*ft-phtml-syntax*
+ft-plaintex-syntax syntax.txt /*ft-plaintex-syntax*
ft-postscr-syntax syntax.txt /*ft-postscr-syntax*
ft-ppwiz-syntax syntax.txt /*ft-ppwiz-syntax*
ft-printcap-syntax syntax.txt /*ft-printcap-syntax*
@@ -6465,6 +6468,7 @@ pi_gzip.txt pi_gzip.txt /*pi_gzip.txt*
pi_netrw.txt pi_netrw.txt /*pi_netrw.txt*
pi_paren.txt pi_paren.txt /*pi_paren.txt*
pi_spec.txt pi_spec.txt /*pi_spec.txt*
+plaintex.vim syntax.txt /*plaintex.vim*
plsql sql.txt /*plsql*
plugin usr_05.txt /*plugin*
plugin-details filetype.txt /*plugin-details*
View
31 runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 7.0c. Last change: 2006 Mar 27
+*todo.txt* For Vim version 7.0c. Last change: 2006 Mar 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -30,12 +30,11 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs*
-------------------- Known bugs and current work -----------------------
-In completion using Enter to accept the current match causes trouble.
-Leave it out? Typing a space already works
-
The 16 bit DOS version compiles now, but it's still too low on memory, writing
a file fails when 'writebackup' is set.
+Have argv() return the arguments in a List.
+
New Hungarian dictionary. (Laci Nemeth)
test COMPOUNDFORBIDFLAG
implement use of COMPOUNDPERMITFLAG
@@ -43,10 +42,16 @@ New Hungarian dictionary. (Laci Nemeth)
implement using CHECKCOMPOUNDPATTERN: match words with sl_comppat[].
explain the use of affix flags, replace |spell-affix-rare|
-Mac: When started from finder path isn't set and curdir is /.
-Benji Fisher suggests using system() (2006 Mar 26)
-
-Mac: reported default for $VIM is /Applications/share/vim
+- Set user variables to the names of the actually used user vimrc file,
+ the first directory looked for user plugins/syntax files.
+ $MYVIMRC for .vimrc, $MYGVIMRC for .gvimrc, $MYRUNTIME/plugin for
+ runtime files?
+ Also: when the environment variable exists, use it. If it doesn't
+ exist, set it. Requires good names: $VIM_USER_VIMRC $VIM_USER_DIR
+ Add a menu item "Preferences" that does "sp $MYVIMRC".
+- The Replace dialog takes "\r" literal, unless "replace all" is used.
+ Need to escape backslashes.
+ Win32: the text to replace with isn't remembered.
Add more tests for all new functionality in Vim 7. Especially new functions.
@@ -132,16 +137,6 @@ Awaiting updated patches:
- findmatch() should be adjusted for Lisp. See remark at
get_lisp_indent(). Esp. \( and \) should be skipped. (Dorai Sitaram,
incomplete patch Mar 18)
-- Set user variables to the names of the actually used user vimrc file,
- the first directory looked for user plugins/syntax files.
- $MYVIMRC for .vimrc, $MYGVIMRC for .gvimrc, $MYRUNTIME/plugin for
- runtime files?
- Also: when the environment variable exists, use it. If it doesn't
- exist, set it. Requires good names: $VIM_USER_VIMRC $VIM_USER_DIR
- Add a menu item "Preferences" that does "sp $MYVIMRC".
-- The Replace dialog takes "\r" literal, unless "replace all" is used.
- Need to escape backslashes.
- Win32: the text to replace with isn't remembered.
- For GUI Find/Replace dialog support using a regexp. Patch for Motif
and GTK by degreneir (nov 10 and nov 18).
- Patch for "paranoid mode" by Kevin Collins, March 7. Needs much more work.
View
19 runtime/doc/version7.txt
@@ -1,4 +1,4 @@
-*version7.txt* For Vim version 7.0c. Last change: 2006 Mar 27
+*version7.txt* For Vim version 7.0c. Last change: 2006 Mar 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -77,6 +77,9 @@ was being edited by another Vim. Vim now gives an error message |E768|.
The support for Mac OS 9 has been removed.
+Files ending in .tex now have 'filetype' set to "context", "plaintex", or
+"tex". |ft-tex-plugin|
+
Minor incompatibilities:
@@ -876,6 +879,7 @@ context syntax and ftplugin file. (Nikolai Weibull)
CRM114 ftplugin file. (Nikolai Weibull)
cvs RC ftplugin file. (Nikolai Weibull)
D indent file. (Jason Mills)
+Debian Sources.list syntax file. (Matthijs Mohlmann)
dictconf and dictdconf syntax, indent and ftplugin files. (Nikolai Weibull)
diff ftplugin file. (Bram Moolenaar)
dircolors ftplugin file. (Nikolai Weibull)
@@ -917,7 +921,7 @@ Pascal indent file. (Neil Carter)
passwd syntax and ftplugin file. (Nikolai Weibull)
PHP compiler plugin. (Doug Kearns)
pinfo ftplugin file. (Nikolai Weibull)
-plaintex ftplugin file. (Benji Fisher)
+plaintex syntax and ftplugin files. (Nikolai Weibull, Benji Fisher)
procmail ftplugin file. (Nikolai Weibull)
prolog ftplugin file. (Nikolai Weibull)
protocols syntax and ftplugin file. (Nikolai Weibull)
@@ -997,6 +1001,9 @@ Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
event and the drag receive handler to work around a stall after Vim loads a
file. Fixed an off-by-one line number error. (Da Woon Jung)
+Mac: When started from Finder change directory to the file being edited or the
+user home directory.
+
Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
GUI font selector for Motif. (Marcin Dalecki)
@@ -2223,5 +2230,13 @@ change.
Win32: added menu to GUI tab pages line. (Yegappan Lakshmanan)
+Mac: Added document icons. (Benji Fisher)
+
+Insert mode completion: Using Enter to accept the current match causes
+confusion. Use CTRL-Y instead. Also, use CTRL-E to go back to the typed
+text.
+
+GUI: When there are left and righ scrollbars, ":tabedit" kept them instead of
+using the one that isn't needed.
vim:tw=78:ts=8:ft=help:norl:
View
8 runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2006 Mar 26
+" Last Change: 2006 Mar 28
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
@@ -475,6 +475,9 @@ au BufNewFile,BufRead *.si setf cuplsim
" Debian Control
au BufNewFile,BufRead */debian/control setf debcontrol
+" Debian Sources.list
+au BufNewFile,BufRead /etc/apt/sources.list setf debsources
+
" ROCKLinux package description
au BufNewFile,BufRead *.desc setf desc
@@ -2005,6 +2008,9 @@ au BufNewFile,BufRead [cC]hange[lL]og*
" Crontab
au BufNewFile,BufRead crontab,crontab.* call s:StarSetf('crontab')
+" Debian Sources.list
+au BufNewFile,BufRead /etc/apt/sources.list.d/* call s:StarSetf('debsources')
+
" Dracula
au BufNewFile,BufRead drac.* call s:StarSetf('dracula')
View
8 runtime/ftplugin/man.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: man
" Maintainer: Nam SungHyun <namsh@kldp.org>
-" Last Change: 2003 Dec 24
+" Last Change: 2006 Mar 28
" To make the ":Man" command available before editing a manual page, source
" this script from your startup vimrc file.
@@ -23,7 +23,7 @@ if &filetype == "man"
if !hasmapto('<Plug>ManBS')
nmap <buffer> <LocalLeader>h <Plug>ManBS
endif
- nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:set nomod<CR>''
+ nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:setl nomod<CR>''
nnoremap <buffer> <c-]> :call <SID>PreGetPage(v:count)<CR>
nnoremap <buffer> <c-t> :call <SID>PopPage()<CR>
@@ -137,9 +137,9 @@ func <SID>GetPage(...)
endif
silent exec "edit $HOME/".page.".".sect."~"
" Avoid warning for editing the dummy file twice
- set buftype=nofile noswapfile
+ setl buftype=nofile noswapfile
- set ma
+ setl ma
silent exec "norm 1GdG"
let $MANWIDTH = winwidth(0)
silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b"
View
7 runtime/lang/menu_ja_jp.euc-jp.vim
@@ -2,7 +2,7 @@
"
" Menu Translations: Japanese (EUC-JP)
" Translated By: MURAOKA Taro <koron@tka.att.ne.jp>
-" Last Change: 04-Feb-2006.
+" Last Change: 28-Mar-2006.
" Quit when menu translations have already been done.
if exists("did_menu_trans")
@@ -30,6 +30,7 @@ let g:menutrans_help_dialog = "
menutrans &File ファイル(&F)
menutrans &Open\.\.\.<Tab>:e 開く(&O)\.\.\.<Tab>:e
menutrans Sp&lit-Open\.\.\.<Tab>:sp 分割して開く(&L)\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew タブページで開く<Tab>:tabnew
menutrans &New<Tab>:enew 新規作成(&N)<Tab>:enew
menutrans &Close<Tab>:close 閉じる(&C)<Tab>:close
menutrans &Save<Tab>:w 保存(&S)<Tab>:w
@@ -51,7 +52,7 @@ menutrans &Paste<Tab>"+gP Ž
menutrans Put\ &Before<Tab>[p 前に貼る(&B)<Tab>[p
menutrans Put\ &After<Tab>]p 後に貼る(&A)<Tab>]p
menutrans &Delete<Tab>x 消す(&D)<Tab>x
-menutrans &Select\ All<Tab>ggVG 全て選択(&S)<Tab>ggvG
+menutrans &Select\ All<Tab>ggVG 全て選択(&S)<Tab>ggVG
menutrans &Find\.\.\. 検索(&F)\.\.\.
menutrans &Find<Tab>/ 検索(&F)<Tab>/
menutrans Find\ and\ Rep&lace\.\.\. 置換(&L)\.\.\.
@@ -150,7 +151,7 @@ menutrans &Spell\ Check\ On
menutrans Spell\ Check\ &Off スペルチェック有効(&O)
menutrans To\ &Next\ error<Tab>]s 次のエラー(&N)<Tab>]s
menutrans To\ &Previous\ error<Tab>[s 前のエラー(&P)<Tab>[s
-menutrans Suggest\ &Corrections<Tab>z? 修正候補(&C)<Tab>z?
+menutrans Suggest\ &Corrections<Tab>z= 修正候補(&C)<Tab>z=
menutrans &Repeat\ correction<Tab>:spellrepall 修正を繰り返す(&R)<Tab>:spellrepall
menutrans Set\ language\ to\ "en" 言語を\ "en"\ に設定する
menutrans Set\ language\ to\ "en_au" 言語を\ "en_au"\ に設定する
View
7 runtime/lang/menu_ja_jp.utf-8.vim
@@ -2,7 +2,7 @@
"
" Menu Translations: Japanese (UTF-8)
" Translated By: MURAOKA Taro <koron@tka.att.ne.jp>
-" Last Change: 04-Feb-2006.
+" Last Change: 06-Feb-2006.
" Quit when menu translations have already been done.
if exists("did_menu_trans")
@@ -30,6 +30,7 @@ let g:menutrans_help_dialog = "ヘルプを検索したいコマンドもしく
menutrans &File ファイル(&F)
menutrans &Open\.\.\.<Tab>:e 開く(&O)\.\.\.<Tab>:e
menutrans Sp&lit-Open\.\.\.<Tab>:sp 分割して開く(&L)\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew タブページで開く<Tab>:tabnew
menutrans &New<Tab>:enew 新規作成(&N)<Tab>:enew
menutrans &Close<Tab>:close 閉じる(&C)<Tab>:close
menutrans &Save<Tab>:w 保存(&S)<Tab>:w
@@ -51,7 +52,7 @@ menutrans &Paste<Tab>"+gP 貼り付け(&P)<Tab>"+gP
menutrans Put\ &Before<Tab>[p 前に貼る(&B)<Tab>[p
menutrans Put\ &After<Tab>]p 後に貼る(&A)<Tab>]p
menutrans &Delete<Tab>x 消す(&D)<Tab>x
-menutrans &Select\ All<Tab>ggVG 全て選択(&S)<Tab>ggvG
+menutrans &Select\ All<Tab>ggVG 全て選択(&S)<Tab>ggVG
menutrans &Find\.\.\. 検索(&F)\.\.\.
menutrans &Find<Tab>/ 検索(&F)<Tab>/
menutrans Find\ and\ Rep&lace\.\.\. 置換(&L)\.\.\.
@@ -150,7 +151,7 @@ menutrans &Spell\ Check\ On スペルチェック有効(&S)
menutrans Spell\ Check\ &Off スペルチェック有効(&O)
menutrans To\ &Next\ error<Tab>]s 次のエラー(&N)<Tab>]s
menutrans To\ &Previous\ error<Tab>[s 前のエラー(&P)<Tab>[s
-menutrans Suggest\ &Corrections<Tab>z? 修正候補(&C)<Tab>z?
+menutrans Suggest\ &Corrections<Tab>z= 修正候補(&C)<Tab>z=
menutrans &Repeat\ correction<Tab>:spellrepall 修正を繰り返す(&R)<Tab>:spellrepall
menutrans Set\ language\ to\ "en" 言語を\ "en"\ に設定する
menutrans Set\ language\ to\ "en_au" 言語を\ "en_au"\ に設定する
View
7 runtime/lang/menu_japanese_japan.932.vim
@@ -2,7 +2,7 @@
"
" Menu Translations: Japanese (CP932)
" Translated By: MURAOKA Taro <koron@tka.att.ne.jp>
-" Last Change: 04-Feb-2006.
+" Last Change: 28-Mar-2006.
" Quit when menu translations have already been done.
if exists("did_menu_trans")
@@ -30,6 +30,7 @@ let g:menutrans_help_dialog = "
menutrans &File ファイル(&F)
menutrans &Open\.\.\.<Tab>:e 開く(&O)\.\.\.<Tab>:e
menutrans Sp&lit-Open\.\.\.<Tab>:sp 分割して開く(&L)\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew タブページで開く<Tab>:tabnew
menutrans &New<Tab>:enew 新規作成(&N)<Tab>:enew
menutrans &Close<Tab>:close 閉じる(&C)<Tab>:close
menutrans &Save<Tab>:w 保存(&S)<Tab>:w
@@ -51,7 +52,7 @@ menutrans &Paste<Tab>"+gP
menutrans Put\ &Before<Tab>[p 前に貼る(&B)<Tab>[p
menutrans Put\ &After<Tab>]p 後に貼る(&A)<Tab>]p
menutrans &Delete<Tab>x 消す(&D)<Tab>x
-menutrans &Select\ All<Tab>ggVG 全て選択(&S)<Tab>ggvG
+menutrans &Select\ All<Tab>ggVG 全て選択(&S)<Tab>ggVG
menutrans &Find\.\.\. 検索(&F)\.\.\.
menutrans &Find<Tab>/ 検索(&F)<Tab>/
menutrans Find\ and\ Rep&lace\.\.\. 置換(&L)\.\.\.
@@ -150,7 +151,7 @@ menutrans &Spell\ Check\ On
menutrans Spell\ Check\ &Off スペルチェック有効(&O)
menutrans To\ &Next\ error<Tab>]s 次のエラー(&N)<Tab>]s
menutrans To\ &Previous\ error<Tab>[s 前のエラー(&P)<Tab>[s
-menutrans Suggest\ &Corrections<Tab>z? 修正候補(&C)<Tab>z?
+menutrans Suggest\ &Corrections<Tab>z= 修正候補(&C)<Tab>z=
menutrans &Repeat\ correction<Tab>:spellrepall 修正を繰り返す(&R)<Tab>:spellrepall
menutrans Set\ language\ to\ "en" 言語を\ "en"\ に設定する
menutrans Set\ language\ to\ "en_au" 言語を\ "en_au"\ に設定する
View
5 runtime/mswin.vim
@@ -1,7 +1,7 @@
" Set options and add mapping such that Vim behaves a lot like MS-Windows
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last change: 2006 Mar 09
+" Last change: 2006 Mar 28
" bail out if this isn't wanted (mrsvim.vim uses this).
if exists("g:skip_loading_mswin") && g:skip_loading_mswin
@@ -82,16 +82,19 @@ endif
noremap <C-A> gggH<C-O>G
inoremap <C-A> <C-O>gg<C-O>gH<C-O>G
cnoremap <C-A> <C-C>gggH<C-O>G
+onoremap <C-A> <C-C>gggH<C-O>G
" CTRL-Tab is Next window
noremap <C-Tab> <C-W>w
inoremap <C-Tab> <C-O><C-W>w
cnoremap <C-Tab> <C-C><C-W>w
+onoremap <C-Tab> <C-C><C-W>w
" CTRL-F4 is Close window
noremap <C-F4> <C-W>c
inoremap <C-F4> <C-O><C-W>c
cnoremap <C-F4> <C-C><C-W>c
+onoremap <C-F4> <C-C><C-W>c
" restore 'cpoptions'
set cpo&
View
7 runtime/scripts.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types in scripts
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last change: 2006 Mar 25
+" Last change: 2006 Mar 28
" This file is called by an autocommand for every file that has just been
" loaded into a buffer. It checks if the type of file can be recognized by
@@ -185,11 +185,14 @@ else
" - "# It was generated by makepatch " in the second line (makepatch diff).
" - "Index: <filename>" in the first line (CVS file)
" - "=== ", line of "=", "---", "+++ " (SVK diff)
+ " - "=== ", "--- ", "+++ " (bzr diff, common case)
+ " - "=== (removed|added|renamed|modified)" (bzr diff, alternative)
elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+\r\=$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\)'
\ || (s:line1 =~ '^--- ' && s:line2 =~ '^+++ ')
\ || (s:line1 =~ '^\* looking for ' && s:line2 =~ '^\* comparing to ')
\ || (s:line1 =~ '^\*\*\* ' && s:line2 =~ '^--- ')
- \ || (s:line1 =~ '^=== ' && s:line2 =~ '^=\{66\}' && s:line3 =~ '^--- ' && s:line4 =~ '^+++')
+ \ || (s:line1 =~ '^=== ' && ((s:line2 =~ '^=\{66\}' && s:line3 =~ '^--- ' && s:line4 =~ '^+++') || (s:line2 =~ '^--- ' && s:line3 =~ '^+++ ')))
+ \ || (s:line1 =~ '^=== \(removed\|added\|renamed\|modified\)')
set ft=diff
" PostScript Files (must have %!PS as the first line, like a2ps output)
View
69 runtime/synmenu.vim
@@ -116,40 +116,41 @@ an 50.20.390 &Syntax.C.CVS.cvsrc :cal SetSyn("cvsrc")<CR>
an 50.30.100 &Syntax.DE.D :cal SetSyn("d")<CR>
an 50.30.110 &Syntax.DE.Debian.Debian\ ChangeLog :cal SetSyn("debchangelog")<CR>
an 50.30.120 &Syntax.DE.Debian.Debian\ Control :cal SetSyn("debcontrol")<CR>
-an 50.30.130 &Syntax.DE.Desktop :cal SetSyn("desktop")<CR>
-an 50.30.140 &Syntax.DE.Dict\ config :cal SetSyn("dictconf")<CR>
-an 50.30.150 &Syntax.DE.Dictd\ config :cal SetSyn("dictdconf")<CR>
-an 50.30.160 &Syntax.DE.Diff :cal SetSyn("diff")<CR>
-an 50.30.170 &Syntax.DE.Digital\ Command\ Lang :cal SetSyn("dcl")<CR>
-an 50.30.180 &Syntax.DE.Dircolors :cal SetSyn("dircolors")<CR>
-an 50.30.190 &Syntax.DE.Django\ template :cal SetSyn("django")<CR>
-an 50.30.200 &Syntax.DE.DNS/BIND\ zone :cal SetSyn("bindzone")<CR>
-an 50.30.210 &Syntax.DE.DocBook.auto-detect :cal SetSyn("docbk")<CR>
-an 50.30.220 &Syntax.DE.DocBook.SGML :cal SetSyn("docbksgml")<CR>
-an 50.30.230 &Syntax.DE.DocBook.XML :cal SetSyn("docbkxml")<CR>
-an 50.30.240 &Syntax.DE.Dot :cal SetSyn("dot")<CR>
-an 50.30.250 &Syntax.DE.Dracula :cal SetSyn("dracula")<CR>
-an 50.30.260 &Syntax.DE.DSSSL :cal SetSyn("dsl")<CR>
-an 50.30.270 &Syntax.DE.DTD :cal SetSyn("dtd")<CR>
-an 50.30.280 &Syntax.DE.DTML\ (Zope) :cal SetSyn("dtml")<CR>
-an 50.30.290 &Syntax.DE.Dylan.Dylan :cal SetSyn("dylan")<CR>
-an 50.30.300 &Syntax.DE.Dylan.Dylan\ interface :cal SetSyn("dylanintr")<CR>
-an 50.30.310 &Syntax.DE.Dylan.Dylan\ lid :cal SetSyn("dylanlid")<CR>
-an 50.30.330 &Syntax.DE.EDIF :cal SetSyn("edif")<CR>
-an 50.30.340 &Syntax.DE.Eiffel :cal SetSyn("eiffel")<CR>
-an 50.30.350 &Syntax.DE.Elinks\ config :cal SetSyn("elinks")<CR>
-an 50.30.360 &Syntax.DE.Elm\ filter\ rules :cal SetSyn("elmfilt")<CR>
-an 50.30.370 &Syntax.DE.Embedix\ Component\ Description :cal SetSyn("ecd")<CR>
-an 50.30.380 &Syntax.DE.ERicsson\ LANGuage :cal SetSyn("erlang")<CR>
-an 50.30.390 &Syntax.DE.ESMTP\ rc :cal SetSyn("esmtprc")<CR>
-an 50.30.400 &Syntax.DE.ESQL-C :cal SetSyn("esqlc")<CR>
-an 50.30.410 &Syntax.DE.Essbase\ script :cal SetSyn("csc")<CR>
-an 50.30.420 &Syntax.DE.Esterel :cal SetSyn("esterel")<CR>
-an 50.30.430 &Syntax.DE.Eterm\ config :cal SetSyn("eterm")<CR>
-an 50.30.440 &Syntax.DE.Eviews :cal SetSyn("eviews")<CR>
-an 50.30.450 &Syntax.DE.Exim\ conf :cal SetSyn("exim")<CR>
-an 50.30.460 &Syntax.DE.Expect :cal SetSyn("expect")<CR>
-an 50.30.470 &Syntax.DE.Exports :cal SetSyn("exports")<CR>
+an 50.30.130 &Syntax.DE.Debian.Debian\ Sources\.list :cal SetSyn("debsources")<CR>
+an 50.30.140 &Syntax.DE.Desktop :cal SetSyn("desktop")<CR>
+an 50.30.150 &Syntax.DE.Dict\ config :cal SetSyn("dictconf")<CR>
+an 50.30.160 &Syntax.DE.Dictd\ config :cal SetSyn("dictdconf")<CR>
+an 50.30.170 &Syntax.DE.Diff :cal SetSyn("diff")<CR>
+an 50.30.180 &Syntax.DE.Digital\ Command\ Lang :cal SetSyn("dcl")<CR>
+an 50.30.190 &Syntax.DE.Dircolors :cal SetSyn("dircolors")<CR>
+an 50.30.200 &Syntax.DE.Django\ template :cal SetSyn("django")<CR>
+an 50.30.210 &Syntax.DE.DNS/BIND\ zone :cal SetSyn("bindzone")<CR>
+an 50.30.220 &Syntax.DE.DocBook.auto-detect :cal SetSyn("docbk")<CR>
+an 50.30.230 &Syntax.DE.DocBook.SGML :cal SetSyn("docbksgml")<CR>
+an 50.30.240 &Syntax.DE.DocBook.XML :cal SetSyn("docbkxml")<CR>
+an 50.30.250 &Syntax.DE.Dot :cal SetSyn("dot")<CR>
+an 50.30.260 &Syntax.DE.Dracula :cal SetSyn("dracula")<CR>
+an 50.30.270 &Syntax.DE.DSSSL :cal SetSyn("dsl")<CR>
+an 50.30.280 &Syntax.DE.DTD :cal SetSyn("dtd")<CR>
+an 50.30.290 &Syntax.DE.DTML\ (Zope) :cal SetSyn("dtml")<CR>
+an 50.30.300 &Syntax.DE.Dylan.Dylan :cal SetSyn("dylan")<CR>
+an 50.30.310 &Syntax.DE.Dylan.Dylan\ interface :cal SetSyn("dylanintr")<CR>
+an 50.30.320 &Syntax.DE.Dylan.Dylan\ lid :cal SetSyn("dylanlid")<CR>
+an 50.30.340 &Syntax.DE.EDIF :cal SetSyn("edif")<CR>
+an 50.30.350 &Syntax.DE.Eiffel :cal SetSyn("eiffel")<CR>
+an 50.30.360 &Syntax.DE.Elinks\ config :cal SetSyn("elinks")<CR>
+an 50.30.370 &Syntax.DE.Elm\ filter\ rules :cal SetSyn("elmfilt")<CR>
+an 50.30.380 &Syntax.DE.Embedix\ Component\ Description :cal SetSyn("ecd")<CR>
+an 50.30.390 &Syntax.DE.ERicsson\ LANGuage :cal SetSyn("erlang")<CR>
+an 50.30.400 &Syntax.DE.ESMTP\ rc :cal SetSyn("esmtprc")<CR>
+an 50.30.410 &Syntax.DE.ESQL-C :cal SetSyn("esqlc")<CR>
+an 50.30.420 &Syntax.DE.Essbase\ script :cal SetSyn("csc")<CR>
+an 50.30.430 &Syntax.DE.Esterel :cal SetSyn("esterel")<CR>
+an 50.30.440 &Syntax.DE.Eterm\ config :cal SetSyn("eterm")<CR>
+an 50.30.450 &Syntax.DE.Eviews :cal SetSyn("eviews")<CR>
+an 50.30.460 &Syntax.DE.Exim\ conf :cal SetSyn("exim")<CR>
+an 50.30.470 &Syntax.DE.Expect :cal SetSyn("expect")<CR>
+an 50.30.480 &Syntax.DE.Exports :cal SetSyn("exports")<CR>
an 50.40.100 &Syntax.FG.Fetchmail :cal SetSyn("fetchmail")<CR>
an 50.40.110 &Syntax.FG.Focus\ Executable :cal SetSyn("focexec")<CR>
an 50.40.120 &Syntax.FG.Focus\ Master :cal SetSyn("master")<CR>
View
377 runtime/syntax/coretex.vim
@@ -0,0 +1,377 @@
+" Vim syntax file
+" Language: TeX (core definition)
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2006-03-26
+
+if exists("b:current_syntax")
+ finish
+endif
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+" This follows the grouping (sort of) found at
+" http://www.tug.org/utilities/plain/cseq.html#top-fam
+
+syn keyword coretexTodo TODO FIXME XXX NOTE
+
+syn match coretexComment display contains=coretexTodo
+ \ '\\\@<!\%(\\\\\)*\zs%.*$'
+
+syn match coretexDimension display contains=@NoSpell
+ \ '[+-]\=\s*\%(\d\+\%([.,]\d*\)\=\|[.,]\d\+\)\s*\%(true\)\=\s*\%(p[tc]\|in\|bp\|c[mc]\|m[mu]\|dd\|sp\|e[mx]\)\>'
+
+syn cluster coretexBox
+ \ contains=coretexBoxCommand,coretexBoxInternalQuantity,
+ \ coretexBoxParameterDimen,coretexBoxParameterInteger,
+ \ coretexBoxParameterToken
+
+syn cluster coretexCharacter
+ \ contains=coretexCharacterCommand,coretexCharacterInternalQuantity,
+ \ coretexCharacterParameterInteger
+
+syn cluster coretexDebugging
+ \ contains=coretexDebuggingCommand,coretexDebuggingParameterInteger,
+ \ coretexDebuggingParameterToken
+
+syn cluster coretexFileIO
+ \ contains=coretexFileIOCommand,coretexFileIOInternalQuantity,
+ \ coretexFileIOParameterToken
+
+syn cluster coretexFonts
+ \ contains=coretexFontsCommand,coretexFontsInternalQuantity
+
+syn cluster coretexGlue
+ \ contains=coretexGlueCommand,coretexGlueDerivedCommand
+
+syn cluster coretexHyphenation
+ \ contains=coretexHyphenationCommand,coretexHyphenationDerivedCommand,
+ \ coretexHyphenationInternalQuantity,coretexHyphenationParameterInteger
+
+syn cluster coretexInserts
+ \ contains=coretexInsertsCommand,coretexInsertsParameterDimen,
+ \ coretexInsertsParameterGlue,coretexInsertsParameterInteger
+
+syn cluster coretexJob
+ \ contains=coretexJobCommand,coretexJobInternalQuantity,
+ \ coretexJobParameterInteger
+
+syn cluster coretexKern
+ \ contains=coretexKernCommand,coretexKernInternalQuantity
+
+syn cluster coretexLogic
+ \ contains=coretexLogicCommand
+
+syn cluster coretexMacro
+ \ contains=coretexMacroCommand,coretexMacroDerivedCommand,
+ \ coretexMacroParameterInteger
+
+syn cluster coretexMarks
+ \ contains=coretexMarksCommand
+
+syn cluster coretexMath
+ \ contains=coretexMathCommand,coretexMathDerivedCommand,
+ \ coretexMathInternalQuantity,coretexMathParameterDimen,
+ \ coretexMathParameterGlue,coretexMathParameterInteger,
+ \ coretexMathParameterMuglue,coretexMathParameterToken
+
+syn cluster coretexPage
+ \ contains=coretexPageInternalQuantity,coretexPageParameterDimen,
+ \ coretexPageParameterGlue
+
+syn cluster coretexParagraph
+ \ contains=coretexParagraphCommand,coretexParagraphInternalQuantity,
+ \ coretexParagraphParameterDimen,coretexParagraphParameterGlue,
+ \ coretexParagraphParameterInteger,coretexParagraphParameterToken
+
+syn cluster coretexPenalties
+ \ contains=coretexPenaltiesCommand,coretexPenaltiesInternalQuantity,
+ \ coretexPenaltiesParameterInteger
+
+syn cluster coretexRegisters
+ \ contains=coretexRegistersCommand,coretexRegistersInternalQuantity
+
+syn cluster coretexTables
+ \ contains=coretexTablesCommand,coretexTablesParameterGlue,
+ \ coretexTablesParameterToken
+
+syn cluster coretexCommand
+ \ contains=coretexBoxCommand,coretexCharacterCommand,
+ \ coretexDebuggingCommand,coretexFileIOCommand,
+ \ coretexFontsCommand,coretexGlueCommand,
+ \ coretexHyphenationCommand,coretexInsertsCommand,
+ \ coretexJobCommand,coretexKernCommand,coretexLogicCommand,
+ \ coretexMacroCommand,coretexMarksCommand,coretexMathCommand,
+ \ coretexParagraphCommand,coretexPenaltiesCommand,coretexRegistersCommand,
+ \ coretexTablesCommand
+
+syn match coretexBoxCommand display contains=@NoSpell
+ \ '\\\%([hv]\=box\|[cx]\=leaders\|copy\|[hv]rule\|lastbox\|setbox\|un[hv]\%(box\|copy\)\|vtop\)\>'
+syn match coretexCharacterCommand display contains=@NoSpell
+ \ '\\\%([] ]\|\%(^^M\|accent\|char\|\%(lower\|upper\)case\|number\|romannumeral\|string\)\>\)'
+syn match coretexDebuggingCommand display contains=@NoSpell
+ \ '\\\%(\%(batch\|\%(non\|error\)stop\|scroll\)mode\|\%(err\)\=message\|meaning\|show\%(box\%(breadth\|depth\)\=\|lists\|the\)\)\>'
+syn match coretexFileIOCommand display contains=@NoSpell
+ \ '\\\%(\%(close\|open\)\%(in\|out\)\|endinput\|immediate\|input\|read\|shipout\|special\|write\)\>'
+syn match coretexFontsCommand display contains=@NoSpell
+ \ '\\\%(/\|fontname\)\>'
+syn match coretexGlueCommand display contains=@NoSpell
+ \ '\\\%([hv]\|un\)skip\>'
+syn match coretexHyphenationCommand display contains=@NoSpell
+ \ '\\\%(discretionary\|hyphenation\|patterns\|setlanguage\)\>'
+syn match coretexInsertsCommand display contains=@NoSpell
+ \ '\\\%(insert\|split\%(bot\|first\)mark\|vsplit\)\>'
+syn match coretexJobCommand display contains=@NoSpell
+ \ '\\\%(dump\|end\|jobname\)\>'
+syn match coretexKernCommand display contains=@NoSpell
+ \ '\\\%(kern\|lower\|move\%(left\|right\)\|raise\|unkern\)\>'
+syn match coretexLogicCommand display contains=@NoSpell
+ \ '\\\%(else\|fi\|if[a-zA-Z@]\+\|or\)\>'
+" \ '\\\%(else\|fi\|if\%(case\|cat\|dim\|eof\|false\|[hv]box\|[hmv]mode\|inner\|num\|odd\|true\|void\|x\)\=\|or\)\>'
+syn match coretexMacroCommand display contains=@NoSpell
+ \ '\\\%(after\%(assignment\|group\)\|\%(begin\|end\)group\|\%(end\)\=csname\|e\=def\|expandafter\|futurelet\|global\|let\|long\|noexpand\|outer\|relax\|the\)\>'
+syn match coretexMarksCommand display contains=@NoSpell
+ \ '\\\%(bot\|first\|top\)\=mark\>'
+syn match coretexMathCommand display contains=@NoSpell
+ \ '\\\%(abovewithdelims\|delimiter\|display\%(limits\|style\)\|l\=eqno\|left\|\%(no\)\=limits\|math\%(accent\|bin\|char\|choice\|close\|code\|inner\|op\|open\|ord\|punct\|rel\)\|mkern\|mskip\|muskipdef\|nonscript\|\%(over\|under\)line\|radical\|right\|\%(\%(script\)\{1,2}\|text\)style\|vcenter\)\>'
+syn match coretexParagraphCommand display contains=@NoSpell
+ \ '\\\%(ignorespaces\|indent\|no\%(boundary\|indent\)\|par\|vadjust\)\>'
+syn match coretexPenaltiesCommand display contains=@NoSpell
+ \ '\\\%(un\)\=penalty\>'
+syn match coretexRegistersCommand display contains=@NoSpell
+ \ '\\\%(advance\|\%(count\|dimen\|skip\|toks\)def\|divide\|multiply\)\>'
+syn match coretexTablesCommand display contains=@NoSpell
+ \ '\\\%(cr\|crcr\|[hv]align\|noalign\|omit\|span\)\>'
+
+syn cluster coretexDerivedCommand
+ \ contains=coretexGlueDerivedCommand,coretexHyphenationDerivedCommand,
+ \ coretexMacroDerivedCommand,coretexMathDerivedCommand
+
+syn match coretexGlueDerivedCommand display contains=@NoSpell
+ \ '\\\%([hv]fil\%(l\|neg\)\=\|[hv]ss\)\>'
+syn match coretexHyphenationDerivedCommand display contains=@NoSpell
+ \ '\\-'
+syn match coretexMacroDerivedCommand display contains=@NoSpell
+ \ '\\[gx]def\>'
+syn match coretexMathDerivedCommand display contains=@NoSpell
+ \ '\\\%(above\|atop\%(withdelims\)\=\|mathchardef\|over\|overwithdelims\)\>'
+
+syn cluster coretexInternalQuantity
+ \ contains=coretexBoxInternalQuantity,coretexCharacterInternalQuantity,
+ \ coretexFileIOInternalQuantity,coretexFontsInternalQuantity,
+ \ coretexHyphenationInternalQuantity,coretexJobInternalQuantity,
+ \ coretexKernInternalQuantity,coretexMathInternalQuantity,
+ \ coretexPageInternalQuantity,coretexParagraphInternalQuantity,
+ \ coretexPenaltiesInternalQuantity,coretexRegistersInternalQuantity
+
+syn match coretexBoxInternalQuantity display contains=@NoSpell
+ \ '\\\%(badness\|dp\|ht\|prevdepth\|wd\)\>'
+syn match coretexCharacterInternalQuantity display contains=@NoSpell
+ \ '\\\%(catcode\|chardef\|\%([ul]c\|sf\)code\)\>'
+syn match coretexFileIOInternalQuantity display contains=@NoSpell
+ \ '\\inputlineno\>'
+syn match coretexFontsInternalQuantity display contains=@NoSpell
+ \ '\\\%(font\%(dimen\)\=\|nullfont\)\>'
+syn match coretexHyphenationInternalQuantity display contains=@NoSpell
+ \ '\\hyphenchar\>'
+syn match coretexJobInternalQuantity display contains=@NoSpell
+ \ '\\deadcycles\>'
+syn match coretexKernInternalQuantity display contains=@NoSpell
+ \ '\\lastkern\>'
+syn match coretexMathInternalQuantity display contains=@NoSpell
+ \ '\\\%(delcode\|mathcode\|muskip\|\%(\%(script\)\{1,2}\|text\)font\|skewchar\)\>'
+syn match coretexPageInternalQuantity display contains=@NoSpell
+ \ '\\page\%(depth\|fil\{1,3}stretch\|goal\|shrink\|stretch\|total\)\>'
+syn match coretexParagraphInternalQuantity display contains=@NoSpell
+ \ '\\\%(prevgraf\|spacefactor\)\>'
+syn match coretexPenaltiesInternalQuantity display contains=@NoSpell
+ \ '\\lastpenalty\>'
+syn match coretexRegistersInternalQuantity display contains=@NoSpell
+ \ '\\\%(count\|dimen\|skip\|toks\)\d\+\>'
+
+syn cluster coretexParameterDimen
+ \ contains=coretexBoxParameterDimen,coretexInsertsParameterDimen,
+ \ coretexMathParameterDimen,coretexPageParameterDimen,
+ \ coretexParagraphParameterDimen
+
+syn match coretexBoxParameterDimen display contains=@NoSpell
+ \ '\\\%(boxmaxdepth\|[hv]fuzz\|overfullrule\)\>'
+syn match coretexInsertsParameterDimen display contains=@NoSpell
+ \ '\\splitmaxdepth\>'
+syn match coretexMathParameterDimen display contains=@NoSpell
+ \ '\\\%(delimitershortfall\|display\%(indent\|width\)\|mathsurround\|nulldelimiterspace\|predisplaysize\|scriptspace\)\>'
+syn match coretexPageParameterDimen display contains=@NoSpell
+ \ '\\\%([hv]offset\|maxdepth\|vsize\)\>'
+syn match coretexParagraphParameterDimen display contains=@NoSpell
+ \ '\\\%(emergencystretch\|\%(hang\|par\)indent\|hsize\|lineskiplimit\)\>'
+
+syn cluster coretexParameterGlue
+ \ contains=coretexInsertsParameterGlue,coretexMathParameterGlue,
+ \ coretexPageParameterGlue,coretexParagraphParameterGlue,
+ \ coretexTablesParameterGlue
+
+syn match coretexInsertsParameterGlue display contains=@NoSpell
+ \ '\\splittopskip\>'
+syn match coretexMathParameterGlue display contains=@NoSpell
+ \ '\\\%(above\|below\)display\%(short\)\=skip\>'
+syn match coretexPageParameterGlue display contains=@NoSpell
+ \ '\\topskip\>'
+syn match coretexParagraphParameterGlue display contains=@NoSpell
+ \ '\\\%(baseline\|left\|line\|par\%(fill\)\=\|right\|x\=space\)skip\>'
+syn match coretexTablesParameterGlue display contains=@NoSpell
+ \ '\\tabskip\>'
+
+syn cluster coretexParameterInteger
+ \ contains=coretexBoxParameterInteger,coretexCharacterParameterInteger,
+ \ coretexDebuggingParameterInteger,coretexHyphenationParameterInteger,
+ \ coretexInsertsParameterInteger,coretexJobParameterInteger,
+ \ coretexMacroParameterInteger,coretexMathParameterInteger,
+ \ coretexParagraphParameterInteger,coretexPenaltiesParameterInteger,
+
+syn match coretexBoxParameterInteger display contains=@NoSpell
+ \ '\\[hv]badness\>'
+syn match coretexCharacterParameterInteger display contains=@NoSpell
+ \ '\\\%(\%(endline\|escape\|newline\)char\)\>'
+syn match coretexDebuggingParameterInteger display contains=@NoSpell
+ \ '\\\%(errorcontextlines\|pausing\|tracing\%(commands\|lostchars\|macros\|online\|output\|pages\|paragraphs\|restores|stats\)\)\>'
+syn match coretexHyphenationParameterInteger display contains=@NoSpell
+ \ '\\\%(defaulthyphenchar\|language\|\%(left\|right\)hyphenmin\|uchyph\)\>'
+syn match coretexInsertsParameterInteger display contains=@NoSpell
+ \ '\\\%(holdinginserts\)\>'
+syn match coretexJobParameterInteger display contains=@NoSpell
+ \ '\\\%(day\|mag\|maxdeadcycles\|month\|time\|year\)\>'
+syn match coretexMacroParameterInteger display contains=@NoSpell
+ \ '\\globaldefs\>'
+syn match coretexMathParameterInteger display contains=@NoSpell
+ \ '\\\%(binoppenalty\|defaultskewchar\|delimiterfactor\|displaywidowpenalty\|fam\|\%(post\|pre\)displaypenalty\|relpenalty\)\>'
+syn match coretexParagraphParameterInteger display contains=@NoSpell
+ \ '\\\%(\%(adj\|\%(double\|final\)hyphen\)demerits\|looseness\|\%(pre\)\=tolerance\)\>'
+syn match coretexPenaltiesParameterInteger display contains=@NoSpell
+ \ '\\\%(broken\|club\|exhyphen\|floating\|hyphen\|interline\|line\|output\|widow\)penalty\>'
+
+syn cluster coretexParameterMuglue
+ \ contains=coretexMathParameterMuglue
+
+syn match coretexMathParameterMuglue display contains=@NoSpell
+ \ '\\\%(med\|thick\|thin\)muskip\>'
+
+syn cluster coretexParameterDimen
+ \ contains=coretexBoxParameterToken,coretexDebuggingParameterToken,
+ \ coretexFileIOParameterToken,coretexMathParameterToken,
+ \ coretexParagraphParameterToken,coretexTablesParameterToken
+
+syn match coretexBoxParameterToken display contains=@NoSpell
+ \ '\\every[hv]box\>'
+syn match coretexDebuggingParameterToken display contains=@NoSpell
+ \ '\\errhelp\>'
+syn match coretexFileIOParameterToken display contains=@NoSpell
+ \ '\\output\>'
+syn match coretexMathParameterToken display contains=@NoSpell
+ \ '\\every\%(display\|math\)\>'
+syn match coretexParagraphParameterToken display contains=@NoSpell
+ \ '\\everypar\>'
+syn match coretexTablesParameterToken display contains=@NoSpell
+ \ '\\everycr\>'
+
+
+hi def link coretexCharacter Character
+hi def link coretexNumber Number
+
+hi def link coretexIdentifier Identifier
+
+hi def link coretexStatement Statement
+hi def link coretexConditional Conditional
+
+hi def link coretexPreProc PreProc
+hi def link coretexMacro Macro
+
+hi def link coretexType Type
+
+hi def link coretexDebug Debug
+
+hi def link coretexTodo Todo
+hi def link coretexComment Comment
+hi def link coretexDimension coretexNumber
+
+hi def link coretexCommand coretexStatement
+hi def link coretexBoxCommand coretexCommand
+hi def link coretexCharacterCommand coretexCharacter
+hi def link coretexDebuggingCommand coretexDebug
+hi def link coretexFileIOCommand coretexCommand
+hi def link coretexFontsCommand coretexType
+hi def link coretexGlueCommand coretexCommand
+hi def link coretexHyphenationCommand coretexCommand
+hi def link coretexInsertsCommand coretexCommand
+hi def link coretexJobCommand coretexPreProc
+hi def link coretexKernCommand coretexCommand
+hi def link coretexLogicCommand coretexConditional
+hi def link coretexMacroCommand coretexMacro
+hi def link coretexMarksCommand coretexCommand
+hi def link coretexMathCommand coretexCommand
+hi def link coretexParagraphCommand coretexCommand
+hi def link coretexPenaltiesCommand coretexCommand
+hi def link coretexRegistersCommand coretexCommand
+hi def link coretexTablesCommand coretexCommand
+
+hi def link coretexDerivedCommand coretexStatement
+hi def link coretexGlueDerivedCommand coretexDerivedCommand
+hi def link coretexHyphenationDerivedCommand coretexDerivedCommand
+hi def link coretexMacroDerivedCommand coretexDerivedCommand
+hi def link coretexMathDerivedCommand coretexDerivedCommand
+
+hi def link coretexInternalQuantity coretexIdentifier
+hi def link coretexBoxInternalQuantity coretexInternalQuantity
+hi def link coretexCharacterInternalQuantity coretexInternalQuantity
+hi def link coretexFileIOInternalQuantity coretexInternalQuantity
+hi def link coretexFontsInternalQuantity coretexInternalQuantity
+hi def link coretexHyphenationInternalQuantity coretexInternalQuantity
+hi def link coretexJobInternalQuantity coretexInternalQuantity
+hi def link coretexKernInternalQuantity coretexInternalQuantity
+hi def link coretexMathInternalQuantity coretexInternalQuantity
+hi def link coretexPageInternalQuantity coretexInternalQuantity
+hi def link coretexParagraphInternalQuantity coretexInternalQuantity
+hi def link coretexPenaltiesInternalQuantity coretexInternalQuantity
+hi def link coretexRegistersInternalQuantity coretexInternalQuantity
+
+hi def link coretexParameterDimen coretexNumber
+hi def link coretexBoxParameterDimen coretexParameterDimen
+hi def link coretexInsertsParameterDimen coretexParameterDimen
+hi def link coretexMathParameterDimen coretexParameterDimen
+hi def link coretexPageParameterDimen coretexParameterDimen
+hi def link coretexParagraphParameterDimen coretexParameterDimen
+
+hi def link coretexParameterGlue coretexNumber
+hi def link coretexInsertsParameterGlue coretexParameterGlue
+hi def link coretexMathParameterGlue coretexParameterGlue
+hi def link coretexPageParameterGlue coretexParameterGlue
+hi def link coretexParagraphParameterGlue coretexParameterGlue
+hi def link coretexTablesParameterGlue coretexParameterGlue
+
+hi def link coretexParameterInteger coretexNumber
+hi def link coretexBoxParameterInteger coretexParameterInteger
+hi def link coretexCharacterParameterInteger coretexParameterInteger
+hi def link coretexDebuggingParameterInteger coretexParameterInteger
+hi def link coretexHyphenationParameterInteger coretexParameterInteger
+hi def link coretexInsertsParameterInteger coretexParameterInteger
+hi def link coretexJobParameterInteger coretexParameterInteger
+hi def link coretexMacroParameterInteger coretexParameterInteger
+hi def link coretexMathParameterInteger coretexParameterInteger
+hi def link coretexParagraphParameterInteger coretexParameterInteger
+hi def link coretexPenaltiesParameterInteger coretexParameterInteger
+
+hi def link coretexParameterMuglue coretexNumber
+hi def link coretexMathParameterMuglue coretexParameterMuglue
+
+hi def link coretexParameterToken coretexIdentifier
+hi def link coretexBoxParameterToken coretexParameterToken
+hi def link coretexDebuggingParameterToken coretexParameterToken
+hi def link coretexFileIOParameterToken coretexParameterToken
+hi def link coretexMathParameterToken coretexParameterToken
+hi def link coretexParagraphParameterToken coretexParameterToken
+hi def link coretexTablesParameterToken coretexParameterToken
+
+let b:current_syntax = "coretex"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
View
40 runtime/syntax/debsources.vim
@@ -0,0 +1,40 @@
+" Vim syntax file
+" Language: Debian sources.list
+" Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
+" Last Change: $Date$
+" URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim
+" $Revision$
+
+" this is a very simple syntax file - I will be improving it
+" add entire DEFINE syntax
+
+" Standard syntax initialization
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+" case sensitive
+syn case match
+
+" A bunch of useful keywords
+syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\)/
+
+" Match comments
+syn match debsourcesComment /#.*/
+
+" Match uri's
+syn match debsourcesUri +\(http://\|ftp://\|file:///\)[^' <>"]\++
+syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+
+
+" Associate our matches and regions with pretty colours
+hi def link debsourcesLine Error
+hi def link debsourcesKeyword Statement
+hi def link debsourcesDistrKeyword Type
+hi def link debsourcesComment Comment
+hi def link debsourcesUri Constant
+
+let b:current_syntax = "debsources"
+
+" vim: ts=8
View
166 runtime/syntax/plaintex.vim
@@ -0,0 +1,166 @@
+" Vim syntax file
+" Language: TeX (plain.tex format)
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2006-03-26
+
+if exists("b:current_syntax")
+ finish
+endif
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+syn match plaintexControlSequence display contains=@NoSpell
+ \ '\\[a-zA-Z@]\+'
+
+runtime! syntax/coretex.vim
+
+syn match plaintexComment display
+ \ contains=ALLBUT,coretexComment,plaintexComment
+ \ '^\s*%[CDM].*$'
+
+if exists("g:plaintex_delimiters")
+ syn match plaintexDelimiter display '[][{}]'
+endif
+
+syn match plaintexRepeat display contains=@NoSpell
+ \ '\\\%(loop\|repeat\)\>'
+
+syn match plaintexCommand display contains=@NoSpell
+ \ '\\\%(plainoutput\|TeX\)\>'
+syn match plaintexBoxCommand display contains=@NoSpell
+ \ '\\\%(null\|strut\)\>'
+syn match plaintexCharacterCommand display contains=@NoSpell
+ \ /\\\%(["#$%&'.=^_`~]\|``\|''\|-\{2,3}\|[?!]`\|^^L\|\~\|\%(a[ae]\|A[AE]\|acute\|[cdHoOPStuvijlL]\|copyright\|d\=dag\|folio\|ldotp\|[lr]q\|oe\|OE\|slash\|ss\|underbar\)\>\)/
+syn match plaintexDebuggingCommand display contains=@NoSpell
+ \ '\\\%(showhyphens\|tracingall\|wlog\)\>'
+syn match plaintexFontsCommand display contains=@NoSpell
+ \ '\\\%(bf\|\%(five\|seven\)\%(bf\|i\|rm\|sy\)\|it\|oldstyle\|rm\|sl\|ten\%(bf\|ex\|it\=\|rm\|sl\|sy\|tt\)\|tt\)\>'
+syn match plaintexGlueCommand display contains=@NoSpell
+ \ '\\\%(\%(big\|en\|med\|\%(no\|off\)interline\|small\)skip\|\%(center\|left\|right\)\=line\|\%(dot\|\%(left\|right\)arrow\)fill\|[hv]glue\|[lr]lap\|q\=quad\|space\|topglue\)\>'
+syn match plaintexInsertsCommand display contains=@NoSpell
+ \ '\\\%(\%(end\|top\)insert\|v\=footnote\)\>'
+syn match plaintexJobCommand display contains=@NoSpell
+ \ '\\\%(bye\|fmt\%(name\|version\)\)\>'
+syn match plaintexInsertsCommand display contains=@NoSpell
+ \ '\\\%(mid\|page\)insert\>'
+syn match plaintexKernCommand display contains=@NoSpell
+ \ '\\\%(en\|\%(neg\)\=thin\)space\>'
+syn match plaintexMacroCommand display contains=@NoSpell
+ \ '\\\%(active\|[be]group\|empty\)\>'
+syn match plaintexPageCommand display contains=@NoSpell
+ \ '\\\%(\%(super\)\=eject\|nopagenumbers\|\%(normal\|ragged\)bottom\)\>'
+syn match plaintexParagraphCommand display contains=@NoSpell
+ \ '\\\%(endgraf\|\%(non\)\=frenchspacing\|hang\|item\%(item\)\=\|narrower\|normalbaselines\|obey\%(lines\|spaces\)\|openup\|proclaim\|\%(tt\)\=raggedright\|textindent\)\>'
+syn match plaintexPenaltiesCommand display contains=@NoSpell
+ \ '\\\%(allow\|big\|fil\|good\|med\|no\|small\)\=break\>'
+syn match plaintexRegistersCommand display contains=@NoSpell
+ \ '\\\%(advancepageno\|new\%(box\|count\|dimen\|fam\|help\|if\|insert\|language\|muskip\|read\|skip\|toks\|write\)\)\>'
+syn match plaintexTablesCommand display contains=@NoSpell
+ \ '&\|\\+\|\\\%(cleartabs\|endline\|hidewidth\|ialign\|multispan\|settabs\|tabalign\)\>'
+
+syn region plaintexMath matchgroup=plaintexMath
+ \ contains=@plaintexMath
+ \ start='\$' skip='\\\\\|\\\$' end='\$'
+syn region plaintexMath matchgroup=plaintexMath
+ \ contains=@plaintexMath keepend
+ \ start='\$\$' skip='\\\\\|\\\$' end='\$\$'
+
+syn cluster plaintexMath
+ \ contains=plaintexMathCommand,plaintexMathBoxCommand,
+ \ plaintexMathCharacterCommand,plaintexMathDelimiter,
+ \ plaintexMathFontsCommand,plaintexMathLetter,plaintexMathSymbol,
+ \ plaintexMathFunction,plaintexMathOperator,plaintexMathPunctuation,
+ \ plaintexMathRelation
+
+syn match plaintexMathCommand display contains=@NoSpell contained
+ \ '\\\%([!*,;>{}|_^]\|\%([aA]rrowvert\|[bB]ig\%(g[lmr]\=\|r\)\=\|\%(border\|p\)\=matrix\|displaylines\|\%(down\|up\)bracefill\|eqalign\%(no\)\|leqalignno\|[lr]moustache\|mathpalette\|root\|s[bp]\|skew\|sqrt\)\>\)'
+syn match plaintexMathBoxCommand display contains=@NoSpell contained
+ \ '\\\%([hv]\=phantom\|mathstrut\|smash\)\>'
+syn match plaintexMathCharacterCommand display contains=@NoSpell contained
+ \ '\\\%(b\|bar\|breve\|check\|d\=dots\=\|grave\|hat\|[lv]dots\|tilde\|vec\|wide\%(hat\|tilde\)\)\>'
+syn match plaintexMathDelimiter display contains=@NoSpell contained
+ \ '\\\%(brace\%(vert\)\=\|brack\|cases\|choose\|[lr]\%(angle\|brace\|brack\|ceil\|floor\|group\)\|over\%(brace\|\%(left\|right\)arrow\)\|underbrace\)\>'
+syn match plaintexMathFontsCommand display contains=@NoSpell contained
+ \ '\\\%(\%(bf\|it\|sl\|tt\)fam\|cal\|mit\)\>'
+syn match plaintexMathLetter display contains=@NoSpell contained
+ \ '\\\%(aleph\|alpha\|beta\|chi\|[dD]elta\|ell\|epsilon\|eta\|[gG]amma\|[ij]math\|iota\|kappa\|[lL]ambda\|[mn]u\|[oO]mega\|[pP][hs]\=i\|rho\|[sS]igma\|tau\|[tT]heta\|[uU]psilon\|var\%(epsilon\|ph\=i\|rho\|sigma\|theta\)\|[xX]i\|zeta\)\>'
+syn match plaintexMathSymbol display contains=@NoSpell contained
+ \ '\\\%(angle\|backslash\|bot\|clubsuit\|emptyset\|epsilon\|exists\|flat\|forall\|hbar\|heartsuit\|Im\|infty\|int\|lnot\|nabla\|natural\|neg\|pmod\|prime\|Re\|sharp\|smallint\|spadesuit\|surd\|top\|triangle\%(left\|right\)\=\|vdash\|wp\)\>'
+syn match plaintexMathFunction display contains=@NoSpell contained
+ \ '\\\%(arc\%(cos\|sin\|tan\)\|arg\|\%(cos\|sin\|tan\)h\=\|coth\=\|csc\|de[gt]\|dim\|exp\|gcd\|hom\|inf\|ker\|lo\=g\|lim\%(inf\|sup\)\=\|ln\|max\|min\|Pr\|sec\|sup\)\>'
+syn match plaintexMathOperator display contains=@NoSpell contained
+ \ '\\\%(amalg\|ast\|big\%(c[au]p\|circ\|o\%(dot\|plus\|times\|sqcup\)\|triangle\%(down\|up\)\|uplus\|vee\|wedge\|bmod\|bullet\)\|c[au]p\|cdot[ps]\=\|circ\|coprod\|d\=dagger\|diamond\%(suit\)\=\|div\|land\|lor\|mp\|o\%(dot\|int\|minus\|plus\|slash\|times\)pm\|prod\|setminus\|sqc[au]p\|sqsu[bp]seteq\|star\|su[bp]set\%(eq\)\=\|sum\|times\|uplus\|vee\|wedge\|wr\)\>'
+syn match plaintexMathPunctuation display contains=@NoSpell contained
+ \ '\\\%(colon\)\>'
+syn match plaintexMathRelation display contains=@NoSpell contained
+ \ '\\\%(approx\|asymp\|bowtie\|buildrel\|cong\|dashv\|doteq\|[dD]ownarrow\|equiv\|frown\|geq\=\|gets\|gg\|hook\%(left\|right\)arrow\|iff\|in\|leq\=\|[lL]eftarrow\|\%(left\|right\)harpoon\%(down\|up\)\|[lL]eftrightarrow\|ll\|[lL]ongleftrightarrow\|longmapsto\|[lL]ongrightarrow\|mapsto\|mid\|models\|[ns][ew]arrow\|neq\=\|ni\|not\%(in\)\=\|owns\|parallel\|perp\|prec\%(eq\)\=\|propto\|[rR]ightarrow\|rightleftharpoons\|sim\%(eq\)\=\|smile\|succ\%(eq\)\=\|to\|[uU]parrow\|[uU]pdownarrow\|[vV]ert\)\>'
+
+syn match plaintexParameterDimen display contains=@NoSpell
+ \ '\\maxdimen\>'
+syn match plaintexMathParameterDimen display contains=@NoSpell
+ \ '\\jot\>'
+syn match plaintexParagraphParameterGlue display contains=@NoSpell
+ \ '\\\%(\%(big\|med\|small\)skipamount\|normalbaselineskip\|normallineskip\%(limit\)\=\)\>'
+
+syn match plaintexFontParameterInteger display contains=@NoSpell
+ \ '\\magstep\%(half\)\=\>'
+syn match plaintexJobParameterInteger display contains=@NoSpell
+ \ '\\magnification\>'
+syn match plaintexPageParameterInteger display contains=@NoSpell
+ \ '\\pageno\>'
+
+syn match plaintexPageParameterToken display contains=@NoSpell
+ \ '\\\%(foot\|head\)line\>'
+
+hi def link plaintexOperator Operator
+
+hi def link plaintexDelimiter Delimiter
+
+hi def link plaintexControlSequence Identifier
+hi def link plaintexComment Comment
+hi def link plaintexInclude Include
+hi def link plaintexRepeat Repeat
+
+hi def link plaintexCommand coretexCommand
+hi def link plaintexBoxCommand plaintexCommand
+hi def link plaintexCharacterCommand coretexCharacterCommand
+hi def link plaintexDebuggingCommand coretexDebuggingCommand
+hi def link plaintexFontsCommand coretexFontsCommand
+hi def link plaintexGlueCommand plaintexCommand
+hi def link plaintexInsertsCommand plaintexCommand
+hi def link plaintexJobCommand coretexJobCommand
+hi def link plaintexKernCommand plaintexCommand
+hi def link plaintexMacroCommand coretexMacroCommand
+hi def link plaintexPageCommand plaintexCommand
+hi def link plaintexParagraphCommand plaintexCommand
+hi def link plaintexPenaltiesCommand plaintexCommand
+hi def link plaintexRegistersCommand plaintexCommand
+hi def link plaintexTablesCommand plaintexCommand
+
+hi def link plaintexMath String
+hi def link plaintexMathCommand plaintexCommand
+hi def link plaintexMathBoxCommand plaintexBoxCommand
+hi def link plaintexMathCharacterCommand plaintexCharacterCommand
+hi def link plaintexMathDelimiter plaintexDelimiter
+hi def link plaintexMathFontsCommand plaintexFontsCommand
+hi def link plaintexMathLetter plaintexMathCharacterCommand
+hi def link plaintexMathSymbol plaintexMathLetter
+hi def link plaintexMathFunction Function
+hi def link plaintexMathOperator plaintexOperator
+hi def link plaintexMathPunctuation plaintexCharacterCommand
+hi def link plaintexMathRelation plaintexOperator
+
+hi def link plaintexParameterDimen coretexParameterDimen
+hi def link plaintexMathParameterDimen coretexMathParameterDimen
+hi def link plaintexParagraphParameterGlue coretexParagraphParameterGlue
+hi def link plaintexFontParameterInteger coretexFontParameterInteger
+hi def link plaintexJobParameterInteger coretexJobParameterInteger
+hi def link plaintexPageParameterInteger coretexPageParameterInteger
+hi def link plaintexPageParameterToken coretexParameterToken
+
+let b:current_syntax = "plaintex"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
View
5 src/Makefile
@@ -1524,6 +1524,7 @@ PRO_AUTO = \
$(TCL_PRO)
ICON_APP = gui_mac.icns
+ICON_DOCTXT = doc-txt.icns
PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
@@ -2163,7 +2164,7 @@ shadow: runtime pixmaps
cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
if test -f $(ICON_APP); then \
cd $(SHADOWDIR); \
- ln -s ../$(ICON_APP) ../os_mac.rsr.hqx ../dehqx.py .; \
+ ln -s ../$(ICON_APP) ../$(ICON_DOCTXT) ../os_mac.rsr.hqx ../dehqx.py .; \
fi
mkdir $(SHADOWDIR)/testdir
cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
@@ -2528,7 +2529,7 @@ M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
-DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
### Icons
-ICONS = $(RESDIR)/$(ICON_APP)
+ICONS = $(RESDIR)/$(ICON_APP) $(RESDIR)/$(ICON_DOCTXT)
# If you uncomment the following lines the *.icns in the src directory will be
# detected by this Makefile automatically, and used for Vim.
View
2  src/auto/configure
@@ -3395,6 +3395,8 @@ fi
if test x$prefix = xNONE; then
prefix=/Applications
fi
+
+ datadir='${prefix}/Vim.app/Contents/Resources'
fi
fi
fi
View
3  src/configure.in
@@ -165,6 +165,9 @@ if test "`(uname) 2>/dev/null`" = Darwin; then
if test x$prefix = xNONE; then
prefix=/Applications
fi
+
+ dnl Sorry for the hard coded default
+ datadir='${prefix}/Vim.app/Contents/Resources'
fi
fi
fi
View
BIN  src/doc-txt.icns
Binary file not shown
View
20 src/edit.c
@@ -726,8 +726,8 @@ edit(cmdchar, startln, count)
continue;
}
- /* Pressing Enter selects the current match. */
- if (c == CAR || c == K_KENTER || c == NL)
+ /* Pressing CTRL-Y selects the current match. */
+ if (c == Ctrl_Y)
{
ins_compl_delete();
ins_compl_insert();
@@ -3274,11 +3274,23 @@ ins_compl_prep(c)
auto_format(FALSE, TRUE);
- /* if the popup menu is displayed hitting Enter means accepting
+ /* If the popup menu is displayed pressing CTRL-Y means accepting
* the selection without inserting anything. */
- if ((c == CAR || c == K_KENTER || c == NL) && pum_visible())
+ if (c == Ctrl_Y && pum_visible())
retval = TRUE;
+ /* CTRL-E means completion is Ended, go back to the typed text. */
+ if (c == Ctrl_E)
+ {
+ ins_compl_delete();
+ if (compl_leader != NULL)
+ ins_bytes(compl_leader + curwin->w_cursor.col - compl_col);
+ else if (compl_first_match != NULL)
+ ins_bytes(compl_first_match->cp_str
+ + curwin->w_cursor.col - compl_col);
+ retval = TRUE;
+ }
+
ins_compl_free();
compl_started = FALSE;
compl_matches = 0;
View
6 src/ex_cmds.c
@@ -3240,6 +3240,7 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
buf_copy_options(buf, BCO_ENTER);
/* close the link to the current buffer */
+ u_sync();
close_buffer(curwin, curbuf,
(flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD);
@@ -5185,7 +5186,8 @@ free_old_sub()
* Return TRUE when it was created.
*/
int
-prepare_tagpreview()
+prepare_tagpreview(undo_sync)
+ int undo_sync; /* sync undo when leaving the window */
{
win_T *wp;
@@ -5202,7 +5204,7 @@ prepare_tagpreview()
if (wp->w_p_pvw)
break;
if (wp != NULL)
- win_enter(wp, TRUE);
+ win_enter(wp, undo_sync);
else
{
/*
View
5 src/gui_mac.c
@@ -1066,6 +1066,11 @@ HandleODocAE(const AppleEvent *theAEvent, AppleEvent *theReply, long refCon)
else
alist_add(&global_alist, p, 2);
}
+
+ /* Change directory to the location of the first file. */
+ if (GARGCOUNT > 0 && vim_chdirfile(alist_name(&GARGLIST[0])) == OK)
+ shorten_fnames(TRUE);
+
goto finished;
}
View
3  src/gui_w48.c
@@ -1121,8 +1121,7 @@ gui_mch_set_text_area_pos(int x, int y, int w, int h)
top = TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
#endif
- GetWindowRect(s_hwnd, &rect);
- SetRect(&rect, 0, top, rect.right, TABLINE_HEIGHT);
+ SetRect(&rect, 0, top, w, TABLINE_HEIGHT);
TabCtrl_AdjustRect(s_tabhwnd, TRUE, &rect);
MoveWindow(s_tabhwnd, 0, top, rect.right, rect.bottom, TRUE);
}
View
17 src/main.c
@@ -449,7 +449,24 @@ main
* message box. isatty(2) returns TRUE anyway, thus we need to check the
* name to know we're not started from a terminal. */
if (gui.starting && (!isatty(2) || strcmp("/dev/console", ttyname(2)) == 0))
+ {
params.want_full_screen = FALSE;
+
+ /* Avoid always using "/" as the current directory. Note that when
+ * started from Finder the arglist will be filled later in
+ * HandleODocAE() and "fname" will be NULL. */
+ if (getcwd((char *)NameBuff, MAXPATHL) != NULL
+ && STRCMP(NameBuff, "/") == 0)
+ {
+ if (fname != NULL)
+ (void)vim_chdirfile(fname);
+ else
+ {
+ expand_env((char_u *)"$HOME", NameBuff, MAXPATHL);
+ vim_chdir(NameBuff);
+ }
+ }
+ }
#endif
/*
View
180 src/po/ja.po
@@ -4,13 +4,13 @@
# Do ":help credits" in Vim to see a list of people who contributed.
#
# MURAOKA Taro <koron@tka.att.ne.jp>, 2001-6.
-# Last Change: 05-Feb-2006.
+# Last Change: 28-Mar-2006.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 7.0\n"
-"POT-Creation-Date: 2006-02-04 22:44+0900\n"
-"PO-Revision-Date: 2006-02-05 00:10+0900\n"
+"POT-Creation-Date: 2006-03-28 20:12+0900\n"
+"PO-Revision-Date: 2006-03-28 21:10+0900\n"
"Last-Translator: MURAOKA Taro <koron@tka.att.ne.jp>\n"
"Language-Team: MURAOKA Taro <koron@tka.att.ne.jp>\n"
"MIME-Version: 1.0\n"
@@ -130,7 +130,7 @@ msgstr "[̵̾]"
msgid "help"
msgstr "ヘルプ"
-msgid "[help]"
+msgid "[Help]"
msgstr "[ヘルプ]"
msgid "[Preview]"
@@ -155,8 +155,8 @@ msgstr ""
msgid "[Location List]"
msgstr "[場所リスト]"
-msgid "[Error List]"
-msgstr "[エラーリスト]"
+msgid "[Quickfix List]"
+msgstr "[Quickfixリスト]"
msgid ""
"\n"
@@ -489,6 +489,9 @@ msgstr "E724: ɽ
msgid "E699: Too many arguments"
msgstr "E699: が多過ぎます"
+msgid "E785: complete() can only be used in Insert mode"
+msgstr "E785: complete() は挿入モードでしか利用できません"
+
#.
#. * Yes this is ugly, I don't particularly like it either. But doing it
#. * this way has the compelling advantage that translations need not to
@@ -1021,6 +1024,21 @@ msgstr "
msgid "finished sourcing %s"
msgstr "%s の取込を完了"
+msgid "modeline"
+msgstr "モード行"
+
+msgid "--cmd argument"
+msgstr "--cmd 引数"
+
+msgid "-c argument"
+msgstr "-c 引数"
+
+msgid "environment variable"
+msgstr "環境変数"
+
+msgid "error handler"
+msgstr "エラーハンドラ"
+
msgid "W15: Warning: Wrong line separator, ^M may be missing"
msgstr "W15: 警告: 行区切が不正です. ^M がないのでしょう"
@@ -1151,9 +1169,19 @@ msgstr "E185:
msgid "Greetings, Vim user!"
msgstr "Vim 使いさん、やあ!"
+msgid "E784: Cannot close last tab page"
+msgstr "E784: 最後のタブページを閉じることはできません"
+
+msgid "Already only one tab page"
+msgstr "既にタブページは1つしかありません"
+
msgid "Edit File in new window"
msgstr "新しいウィンドウでファイルを編集します"
+#, c-format
+msgid "Tab page %d"
+msgstr "タブページ %d"
+
msgid "No swap file"
msgstr "スワップファイルがありません"
@@ -1908,6 +1936,15 @@ msgstr "
msgid "Vim: Received \"die\" request from session manager\n"
msgstr "Vim: セッションマネージャから \"die\" 要求を受け取りました\n"
+msgid "Close"
+msgstr "閉じる"
+
+msgid "New tab"
+msgstr "新規タブページ"
+
+msgid "Open Tab..."
+msgstr "タブページを開く..."
+
msgid "Vim: Main window unexpectedly destroyed\n"
msgstr "Vim: メインウィンドウが不意に破壊されました\n"
@@ -1979,6 +2016,12 @@ msgstr "E243:
msgid "E672: Unable to open window inside MDI application"
msgstr "E672: MDIアプリの中ではウィンドウを開けません"
+msgid "Close tab"
+msgstr "タブページを閉じる"
+
+msgid "Open tab..."
+msgstr "タブページを開く"
+
msgid "Find string (use '\\\\' to find a '\\')"
msgstr "検索文字列 ('\\' を検索するには '\\\\')"
@@ -2055,10 +2098,6 @@ msgstr "̾
msgid "Show size in Points"
msgstr "サイズをポイントで表示する"
-# msgid " BLOCK"
-# msgstr " ブロック"
-# msgid " LINE"
-# msgstr " 行"
msgid "Encoding:"
msgstr "エンコード:"
@@ -2658,8 +2697,6 @@ msgstr "
msgid "Attempt to open script file again: \""
msgstr "スクリプトファイルを再び開いてみます: \""
-# msgid "\"\n"
-# msgstr "\"\n"
msgid "Cannot open for reading: \""
msgstr "読込用として開けません"
@@ -2835,6 +2872,9 @@ msgstr "-U <gvimrc>\t\t.gvimrc
msgid "--noplugin\t\tDon't load plugin scripts"
msgstr "--noplugin\t\tプラグインスクリプトをロードしない"
+msgid "-p[N]\t\tOpen N tab pages (default: one for each file)"
+msgstr "-p[N]\t\tN 個タブページを開く(省略値: ファイルにつき1個)"
+
msgid "-o[N]\t\tOpen N windows (default: one for each file)"
msgstr "-o[N]\t\tN 個ウィンドウを開く(省略値: ファイルにつき1個)"
@@ -2888,6 +2928,9 @@ msgid ""
"--remote-wait-silent <files> Same, don't complain if there is no server"
msgstr "--remote-wait-silent <files> 同上, サーバが無くても警告文を出力しない"
+msgid "--remote-tab <files> As --remote but open tab page for each file"
+msgstr "--remote-tab <files> --remoteでファイル1つにつき1つのタブページを開く"
+
msgid "--remote-send <keys>\tSend <keys> to a Vim server and exit"
msgstr "--remote-send <keys>\tVimサーバに <keys> を送信して終了する"
@@ -3011,8 +3054,6 @@ msgstr "--socketid <xid>\t
msgid "-P <parent title>\tOpen Vim inside parent application"
msgstr "-P <親のタイトル>\tVimを親アプリケーションの中で起動する"
-# msgid "--help\t\tShow Gnome arguments"
-# msgstr "--help\t\tGNOMEの引数を見せる"
msgid "No display"
msgstr "ディスプレイが見つかりません"
@@ -4146,6 +4187,9 @@ msgstr "
msgid "...(truncated)"
msgstr "...(省略)"
+msgid "Message"
+msgstr "メッセージ"
+
msgid "'columns' is not 80, cannot execute external commands"
msgstr "'columns' が80ではないため, 外部コマンドを実行できません"
@@ -4517,10 +4561,6 @@ msgstr "
msgid " SELECT BLOCK"
msgstr " 矩形選択"
-# msgid " BLOCK"
-# msgstr " ブロック"
-# msgid " LINE"
-# msgstr " 行"
msgid "recording"
msgstr "記録中"
@@ -4562,6 +4602,10 @@ msgstr "
msgid "Scanning included file: %s"
msgstr "インクルードされたファイルをスキャン中: %s"
+#, c-format
+msgid "Searching included file %s"
+msgstr "インクルードされたファイルをスキャン中 %s"
+
msgid "E387: Match is on current line"
msgstr "E387: 現在行に該当があります"
@@ -4654,8 +4698,8 @@ msgid "FLAG after using flags in %s line %d: %s"
msgstr "%s 内の %d 行目にフラグの二重使用があります: %s"
#, c-format
-msgid "Wrong COMPOUNDMAX value in %s line %d: %s"
-msgstr "%s の %d 行目の COMPOUNDMAX の値に誤りがあります: %s"
+msgid "Wrong COMPOUNDWORDMAX value in %s line %d: %s"
+msgstr "%s の %d 行目の COMPOUNDWORDMAX の値に誤りがあります: %s"
#, c-format
msgid "Wrong COMPOUNDMIN value in %s line %d: %s"
@@ -4666,6 +4710,10 @@ msgid "Wrong COMPOUNDSYLMAX value in %s line %d: %s"
msgstr "%s の %d 行目の COMPOUNDSYLMAX の値に誤りがあります: %s"
#, c-format
+msgid "Wrong CHECKCOMPOUNDPATTERN value in %s line %d: %s"
+msgstr "%s の %d 行目の CHECKCOMPOUNDPATTERN の値に誤りがあります: %s"
+
+#, c-format
msgid "Different combining flag in continued affix block in %s line %d: %s"
msgstr ""
"%s の %d 行目の 連続 affix ブロックのフラグの組合せに違いがあります: %s"
@@ -4676,10 +4724,10 @@ msgstr "%s
#, c-format
msgid ""
-"Affix also used for BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND in %s line %d: "
-"%s"
+"Affix also used for BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST in %s "
+"line %d: %s"
msgstr ""
-"%s の %d 行目の affix は BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND "
+"%s の %d 行目の affix は BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST "
"に使用してください: %s"
#, c-format
@@ -4691,6 +4739,10 @@ msgid "Broken condition in %s line %d: %s"
msgstr "%s の %d 行目の 条件は壊れています: %s"
#, c-format
+msgid "Affix flags ignored when PFXPOSTPONE used in %s line %d: %s"
+msgstr "PFXPOSTPONEが指定されたので %s の %d 行目の affix フラグを無視しました: %s"
+
+#, c-format
msgid "Expected REP(SAL) count in %s line %d"
msgstr "%s の %d 行目には REP(SAL) の回数が必要です"
@@ -4780,7 +4832,7 @@ msgstr "%s
#, c-format
msgid "/encoding= line after word ignored in %s line %d: %s"
-msgstr "%s %s の %d 行目の 単語の後の /encoding= 行を無視しました: %s"
+msgstr "%s の %d 行目の 単語の後の /encoding= 行を無視しました: %s"
#, c-format
msgid "Duplicate /regions= line ignored in %s line %d: %s"
@@ -4859,6 +4911,14 @@ msgstr "
msgid "E765: 'spellfile' does not have %ld entries"
msgstr "E765: 'spellfile' には %ld 個のエントリはありません"
+#, c-format
+msgid "Word removed from %s"
+msgstr "%s から単語が削除されました"
+
+#, c-format
+msgid "Word added to %s"
+msgstr "%s に単語が追加されました"
+
msgid "E763: Word characters differ between spell files"
msgstr "E763: 単語の文字がスペルファイルと異なります"
@@ -5223,15 +5283,52 @@ msgstr "Vim:
msgid "No undo possible; continue anyway"
msgstr "可能なアンドゥはありません: とりあえず続けます"
+msgid "Already at oldest change"
+msgstr "既に一番古い変更です"
+
+msgid "Already at newest change"
+msgstr "既に一番新しい変更です"
+
+#, c-format
+msgid "Undo number %ld not found"
+msgstr "アンドゥ番号 %ld がみつかりません"
+
msgid "E438: u_undo: line numbers wrong"
msgstr "E438: u_undo: 行番号が間違っています"
-msgid "1 change"
-msgstr "1 箇所変更しました"
+msgid "more line"
+msgstr "行 追加しました"
+
+msgid "行あります"
+msgstr "行 追加しました"
+
+msgid "line less"
+msgstr "行 削除しました"
+
+msgid "fewer lines"
+msgstr "行 削除しました"
+
+msgid "change"
+msgstr "箇所変更しました"
+
+msgid "changes"
+msgstr "箇所変更しました"
#, c-format
-msgid "%ld changes"
-msgstr "%ld 箇所変更しました"
+msgid "%ld %s; %s #%ld %s"
+msgstr "%ld %s; %s #%ld %s"
+
+msgid "before"
+msgstr "前方"
+
+msgid "after"
+msgstr "後方"
+
+msgid "Nothing to undo"
+msgstr "アンドゥ対象がありません"
+
+msgid "number changes time"
+msgstr "番号 変更 時刻"
msgid "E439: undo list corrupt"
msgstr "E439: アンドゥリストが壊れています"
@@ -5564,6 +5661,33 @@ msgstr "E446:
msgid "E447: Can't find file \"%s\" in path"
msgstr "E447: pathには \"%s\" というファイルがありません"
+msgid "Edit with &multiple Vims"
+msgstr "複数のVimで編集する (&M)"
+
+msgid "Edit with single &Vim"
+msgstr "1つのVimで編集する (&V)"
+
+msgid "Diff with Vim"
+msgstr "Vimで差分を見る"
+
+msgid "Edit with &Vim"
+msgstr "Vimで編集する (&V)"
+
+msgid "Edit with existing Vim - "
+msgstr "既存のVimで編集する - "
+
+msgid "Edits the selected file(s) with Vim"
+msgstr "選択されたファイルをVimで編集する"
+
+msgid "Error creating process: Check if gvim is in your path!"
+msgstr "起動に失敗しました: gvim へのパスが正しく設定されているか確認してください!"
+
+msgid "gvimext.dll error"
+msgstr "gvimext.dll エラー"
+
+msgid "Path length too long!"
+msgstr "パスが長過ぎます!"
+
msgid "--No lines in buffer--"
msgstr "--バッファに行がありません--"
View
180 src/po/ja.sjis.po
@@ -4,13 +4,13 @@
# Do ":help credits" in Vim to see a list of people who contributed.
#
# MURAOKA Taro <koron@tka.att.ne.jp>, 2001-6.
-# Last Change: 05-Feb-2006.
+# Last Change: 28-Mar-2006.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 7.0\n"
-"POT-Creation-Date: 2006-02-04 22:44+0900\n"
-"PO-Revision-Date: 2006-02-05 00:10+0900\n"
+"POT-Creation-Date: 2006-03-28 20:12+0900\n"
+"PO-Revision-Date: 2006-03-28 21:10+0900\n"
"Last-Translator: MURAOKA Taro <koron@tka.att.ne.jp>\n"
"Language-Team: MURAOKA Taro <koron@tka.att.ne.jp>\n"
"MIME-Version: 1.0\n"
@@ -130,7 +130,7 @@ msgstr "[
msgid "help"
msgstr "ヘルプ"
-msgid "[help]"
+msgid "[Help]"
msgstr "[ヘルプ]"
msgid "[Preview]"
@@ -155,8 +155,8 @@ msgstr ""
msgid "[Location List]"
msgstr "[場所リスト]"
-msgid "[Error List]"
-msgstr "[エラーリスト]"
+msgid "[Quickfix List]"
+msgstr "[Quickfixリスト]"
msgid ""
"\n"
@@ -489,6 +489,9 @@ msgstr "E724:
msgid "E699: Too many arguments"
msgstr "E699: が多過ぎます"
+msgid "E785: complete() can only be used in Insert mode"
+msgstr "E785: complete() は挿入モードでしか利用できません"
+
#.
#. * Yes this is ugly, I don't particularly like it either. But doing it
#. * this way has the compelling advantage that translations need not to
@@ -1021,6 +1024,21 @@ msgstr "
msgid "finished sourcing %s"
msgstr "%s の取込を完了"
+msgid "modeline"
+msgstr "モード行"
+
+msgid "--cmd argument"
+msgstr "--cmd 引数"
+
+msgid "-c argument"
+msgstr "-c 引数"
+
+msgid "environment variable"
+msgstr "環境変数"
+
+msgid "error handler"
+msgstr "エラーハンドラ"
+
msgid "W15: Warning: Wrong line separator, ^M may be missing"
msgstr "W15: 警告: 行区切が不正です. ^M がないのでしょう"
@@ -1151,9 +1169,19 @@ msgstr "E185:
msgid "Greetings, Vim user!"
msgstr "Vim 使いさん、やあ!"
+msgid "E784: Cannot close last tab page"
+msgstr "E784: 最後のタブページを閉じることはできません"
+
+msgid "Already only one tab page"
+msgstr "既にタブページは1つしかありません"
+
msgid "Edit File in new window"
msgstr "新しいウィンドウでファイルを編集します"
+#, c-format
+msgid "Tab page %d"
+msgstr "タブページ %d"
+
msgid "No swap file"
msgstr "スワップファイルがありません"
@@ -1908,6 +1936,15 @@ msgstr "
msgid "Vim: Received \"die\" request from session manager\n"
msgstr "Vim: セッションマネージャから \"die\" 要求を受け取りました\n"
+msgid "Close"
+msgstr "閉じる"
+
+msgid "New tab"
+msgstr "新規タブページ"
+
+msgid "Open Tab..."
+msgstr "タブページを開く..."
+
msgid "Vim: Main window unexpectedly destroyed\n"
msgstr "Vim: メインウィンドウが不意に破壊されました\n"
@@ -1979,6 +2016,12 @@ msgstr "E243:
msgid "E672: Unable to open window inside MDI application"
msgstr "E672: MDIアプリの中ではウィンドウを開けません"
+msgid "Close tab"
+msgstr "タブページを閉じる"
+
+msgid "Open tab..."
+msgstr "タブページを開く"
+
msgid "Find string (use '\\\\' to find a '\\')"
msgstr "検索文字列 ('\\' を検索するには '\\\\')"
@@ -2055,10 +2098,6 @@ msgstr "
msgid "Show size in Points"
msgstr "サイズをポイントで表\示する"
-# msgid " BLOCK"
-# msgstr " ブロック"
-# msgid " LINE"
-# msgstr " 行"
msgid "Encoding:"
msgstr "エンコード:"
@@ -2658,8 +2697,6 @@ msgstr "
msgid "Attempt to open script file again: \""
msgstr "スクリプトファイルを再び開いてみます: \""
-# msgid "\"\n"
-# msgstr "\"\n"
msgid "Cannot open for reading: \""
msgstr "読込用として開けません"
@@ -2835,6 +2872,9 @@ msgstr "-U <gvimrc>\t\t.gvimrc
msgid "--noplugin\t\tDon't load plugin scripts"
msgstr "--noplugin\t\tプラグインスクリプトをロードしない"
+msgid "-p[N]\t\tOpen N tab pages (default: one for each file)"
+msgstr "-p[N]\t\tN 個タブページを開く(省略値: ファイルにつき1個)"
+
msgid "-o[N]\t\tOpen N windows (default: one for each file)"
msgstr "-o[N]\t\tN 個ウィンドウを開く(省略値: ファイルにつき1個)"
@@ -2888,6 +2928,9 @@ msgid ""
"--remote-wait-silent <files> Same, don't complain if there is no server"
msgstr "--remote-wait-silent <files> 同上, サーバが無くても警告文を出力しない"
+msgid "--remote-tab <files> As --remote but open tab page for each file"
+msgstr "--remote-tab <files> --remoteでファイル1つにつき1つのタブページを開く"
+
msgid "--remote-send <keys>\tSend <keys> to a Vim server and exit"
msgstr "--remote-send <keys>\tVimサーバに <keys> を送信して終了する"
@@ -3011,8 +3054,6 @@ msgstr "--socketid <xid>\t
msgid "-P <parent title>\tOpen Vim inside parent application"
msgstr "-P <親のタイトル>\tVimを親アプリケーションの中で起動する"
-# msgid "--help\t\tShow Gnome arguments"
-# msgstr "--help\t\tGNOMEの引数を見せる"
msgid "No display"
msgstr "ディスプレイが見つかりません"
@@ -4146,6 +4187,9 @@ msgstr "
msgid "...(truncated)"
msgstr "...(省略)"
+msgid "Message"
+msgstr "メッセージ"
+
msgid "'columns' is not 80, cannot execute external commands"
msgstr "'columns' が80ではないため, 外部コマンドを実行できません"
@@ -4517,10 +4561,6 @@ msgstr "
msgid " SELECT BLOCK"
msgstr " 矩形選択"
-# msgid " BLOCK"
-# msgstr " ブロック"
-# msgid " LINE"
-# msgstr " 行"
msgid "recording"
msgstr "記録中"
@@ -4562,6 +4602,10 @@ msgstr "
msgid "Scanning included file: %s"
msgstr "インクルードされたファイルをスキャン中: %s"
+#, c-format
+msgid "Searching included file %s"
+msgstr "インクルードされたファイルをスキャン中 %s"
+
msgid "E387: Match is on current line"
msgstr "E387: 現在行に該当があります"
@@ -4654,8 +4698,8 @@ msgid "FLAG after using flags in %s line %d: %s"
msgstr "%s 内の %d 行目にフラグの二重使用があります: %s"
#, c-format
-msgid "Wrong COMPOUNDMAX value in %s line %d: %s"
-msgstr "%s の %d 行目の COMPOUNDMAX の値に誤りがあります: %s"
+msgid "Wrong COMPOUNDWORDMAX value in %s line %d: %s"
+msgstr "%s の %d 行目の COMPOUNDWORDMAX の値に誤りがあります: %s"
#, c-format
msgid "Wrong COMPOUNDMIN value in %s line %d: %s"
@@ -4666,6 +4710,10 @@ msgid "Wrong COMPOUNDSYLMAX value in %s line %d: %s"
msgstr "%s の %d 行目の COMPOUNDSYLMAX の値に誤りがあります: %s"
#, c-format
+msgid "Wrong CHECKCOMPOUNDPATTERN value in %s line %d: %s"
+msgstr "%s の %d 行目の CHECKCOMPOUNDPATTERN の値に誤りがあります: %s"
+
+#, c-format
msgid "Different combining flag in continued affix block in %s line %d: %s"
msgstr ""
"%s の %d 行目の 連続 affix ブロックのフラグの組合せに違いがあります: %s"
@@ -4676,10 +4724,10 @@ msgstr "%s
#, c-format
msgid ""
-"Affix also used for BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND in %s line %d: "
-"%s"
+"Affix also used for BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST in %s "
+"line %d: %s"
msgstr ""
-"%s の %d 行目の affix は BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND "
+"%s の %d 行目の affix は BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST "
"に使用してください: %s"
#, c-format
@@ -4691,6 +4739,10 @@ msgid "Broken condition in %s line %d: %s"
msgstr "%s の %d 行目の 条件は壊れています: %s"
#, c-format
+msgid "Affix flags ignored when PFXPOSTPONE used in %s line %d: %s"
+msgstr "PFXPOSTPONEが指定されたので %s の %d 行目の affix フラグを無視しました: %s"
+
+#, c-format
msgid "Expected REP(SAL) count in %s line %d"
msgstr "%s の %d 行目には REP(SAL) の回数が必要です"
@@ -4780,7 +4832,7 @@ msgstr "%s
#, c-format
msgid "/encoding= line after word ignored in %s line %d: %s"
-msgstr "%s %s の %d 行目の 単語の後の /encoding= 行を無視しました: %s"
+msgstr "%s の %d 行目の 単語の後の /encoding= 行を無視しました: %s"
#, c-format
msgid "Duplicate /regions= line ignored in %s line %d: %s"
@@ -4859,6 +4911,14 @@ msgstr "
msgid "E765: 'spellfile' does not have %ld entries"
msgstr "E765: 'spellfile' には %ld 個のエントリはありません"
+#, c-format
+msgid "Word removed from %s"
+msgstr "%s から単語が削除されました"
+
+#, c-format
+msgid "Word added to %s"
+msgstr "%s に単語が追加されました"
+
msgid "E763: Word characters differ between spell files"
msgstr "E763: 単語の文字がスペルファイルと異なります"
@@ -5223,15 +5283,52 @@ msgstr "Vim:
msgid "No undo possible; continue anyway"
msgstr "可能\なアンドゥはありません: とりあえず続けます"
+msgid "Already at oldest change"
+msgstr "既に一番古い変更です"
+
+msgid "Already at newest change"
+msgstr "既に一番新しい変更です"
+
+#, c-format
+msgid "Undo number %ld not found"
+msgstr "アンドゥ番号 %ld がみつかりません"
+
msgid "E438: u_undo: line numbers wrong"
msgstr "E438: u_undo: 行番号が間違っています"
-msgid "1 change"
-msgstr "1 箇所変更しました"
+msgid "more line"
+msgstr "行 追加しました"
+
+msgid "行あります"
+msgstr "行 追加しました"
+
+msgid "line less"
+msgstr "行 削除しました"
+
+msgid "fewer lines"
+msgstr "行 削除しました"
+
+msgid "change"
+msgstr "箇所変更しました"
+
+msgid "changes"
+msgstr "箇所変更しました"
#, c-format
-msgid "%ld changes"
-msgstr "%ld 箇所変更しました"
+msgid "%ld %s; %s #%ld %s"
+msgstr "%ld %s; %s #%ld %s"
+
+msgid "before"
+msgstr "前方"
+
+msgid "after"
+msgstr "後方"
+
+msgid "Nothing to undo"
+msgstr "アンドゥ対象がありません"
+
+msgid "number changes time"
+msgstr "番号 変更 時刻"
msgid "E439: undo list corrupt"
msgstr "E439: アンドゥリストが壊れています"
@@ -5564,6 +5661,33 @@ msgstr "E446:
msgid "E447: Can't find file \"%s\" in path"
msgstr "E447: pathには \"%s\" というファイルがありません"
+msgid "Edit with &multiple Vims"
+msgstr "複数のVimで編集する (&M)"
+
+msgid "Edit with single &Vim"
+msgstr "1つのVimで編集する (&V)"
+
+msgid "Diff with Vim"
+msgstr "Vimで差分を見る"
+
+msgid "Edit with &Vim"
+msgstr "Vimで編集する (&V)"
+
+msgid "Edit with existing Vim - "
+msgstr "既存のVimで編集する - "
+
+msgid "Edits the selected file(s) with Vim"
+msgstr "選択されたファイルをVimで編集する"
+
+msgid "Error creating process: Check if gvim is in your path!"
+msgstr "起動に失敗しました: gvim へのパスが正しく設定されているか確認してください!"
+
+msgid "gvimext.dll error"
+msgstr "gvimext.dll エラー"
+
+msgid "Path length too long!"
+msgstr "パスが長過ぎます!"
+
msgid "--No lines in buffer--"
msgstr "--バッファに行がありません--"
View
11 src/popupmnu.c
@@ -401,8 +401,11 @@ pum_set_selected(n)
}
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
- /* Show extra info in the preview window if there is something and
- * 'completeopt' contains "preview". */
+ /*
+ * Show extra info in the preview window if there is something and
+ * 'completeopt' contains "preview".
+ * NOTE: Be very careful not to sync undo!
+ */
if (pum_array[pum_selected].pum_info != NULL
&& vim_strchr(p_cot, 'p') != NULL)
{
@@ -411,7 +414,7 @@ pum_set_selected(n)
/* Open a preview window. 3 lines by default. */
g_do_tagpreview = 3;
- resized = prepare_tagpreview();
+ resized = prepare_tagpreview(FALSE);
g_do_tagpreview = 0;
if (curwin->w_p_pvw)
@@ -496,7 +499,7 @@ pum_set_selected(n)
update_screen(0);
pum_do_redraw = FALSE;
- if (win_valid(curwin_save))
+ if (!resized && win_valid(curwin_save))
win_enter(curwin_save, TRUE);