Mirror of the Vim source from https://github.com/vim/vim
Revision | 165c628aa9fc3cca34ccf63dc8ab953745d4e228 (tree) |
---|---|
Zeit | 2005-07-13 07:50:18 |
Autor | vimboss |
Commiter | vimboss |
updated for version 7.0108
@@ -14,27 +14,34 @@ | ||
14 | 14 | vim-X.X-extra.tar.gz extra source files |
15 | 15 | |
16 | 16 | Compilation is recommended, in order to make sure that the correct |
17 | -libraries are used for your specific system. However, you might not be | |
18 | -able to compile Vim, read more from src/INSTALLvms.txt. | |
17 | +libraries are used for your specific system. Read about compiling in | |
18 | +src/INSTALLvms.txt. | |
19 | 19 | |
20 | 20 | To use the binary version, you need one of these archives: |
21 | 21 | |
22 | - vim-XX-exe-alpha-gui.zip Alpha GUI/Motif executables | |
23 | - vim-XX-exe-alpha-gtk.zip Alpha GUI/GTK executables | |
24 | - vim-XX-exe-alpha-term.zip Alpha console executables | |
22 | + vim-XX-exe-ia64-gui.zip IA64 GUI/Motif executables | |
23 | + vim-XX-exe-ia64-gtk.zip IA64 GUI/GTK executables | |
24 | + vim-XX-exe-ia64-term.zip IA64 console executables | |
25 | + vim-XX-exe-axp-gui.zip Alpha GUI/Motif executables | |
26 | + vim-XX-exe-axp-gtk.zip Alpha GUI/GTK executables | |
27 | + vim-XX-exe-axp-term.zip Alpha console executables | |
25 | 28 | vim-XX-exe-vax-gui.zip VAX GUI executables |
26 | - vim-XX-exe-vax-term.zip VAX console executables | |
29 | + vim-XX-exe-vax-term.zip VAX console executables | |
27 | 30 | |
28 | 31 | and of course |
29 | 32 | vim-XX-runtime.zip runtime files |
30 | 33 | |
31 | -The binary archives contain: vim.exe, ctags.exe, xxd.exe, mms_vim.exe files, | |
34 | +The binary archives contain: vim.exe, ctags.exe, xxd.exe files, | |
32 | 35 | but there are also prepared "deploy ready" archives: |
33 | 36 | |
34 | -vim-XX-alpha.zip GUI and console executables with runtime and | |
35 | - help files for Alpha systems | |
36 | -vim-XX-vax.zip GUI and console executables with runtime and | |
37 | - help files for VAX systems | |
37 | +vim-XX-ia64.zip GUI and console executables with runtime and | |
38 | + help files for IA64 systems | |
39 | +vim-XX-axp.zip GUI and console executables with runtime and | |
40 | + help files for Alpha systems | |
41 | +vim-XX-vax.zip GUI and console executables with runtime and | |
42 | + help files for VAX systems | |
43 | + | |
44 | +GTK builds need LIBGTK library installed. | |
38 | 45 | |
39 | 46 | These executables and up to date patches for OpenVMS system are downloadable |
40 | 47 | from http://www.polarhome.com/vim/ or ftp://ftp.polarhome.com/pub/vim/ |
@@ -1,4 +1,4 @@ | ||
1 | -*tagsrch.txt* For Vim version 7.0aa. Last change: 2005 Apr 01 | |
1 | +*tagsrch.txt* For Vim version 7.0aa. Last change: 2005 Jul 12 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -352,6 +352,8 @@ | ||
352 | 352 | When the argument both exists literally, and match when used as a regexp, a |
353 | 353 | literal match has a higher priority. For example, ":tag /open" matches "open" |
354 | 354 | before "open_file" and "file_open". |
355 | +When using a pattern case is ignored. If you want to match case use "\C" in | |
356 | +the pattern. | |
355 | 357 | |
356 | 358 | *tag-!* |
357 | 359 | If the tag is in the current file this will always work. Otherwise the |
@@ -1,4 +1,4 @@ | ||
1 | -*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 11 | |
1 | +*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 13 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -30,6 +30,10 @@ | ||
30 | 30 | *known-bugs* |
31 | 31 | -------------------- Known bugs and current work ----------------------- |
32 | 32 | |
33 | +Use vim_strncpy() in more places. | |
34 | + | |
35 | +When going over 'synmaxcol' don't highlight anything, stop regions. | |
36 | + | |
33 | 37 | Add extra list of file locations. Can be used with: |
34 | 38 | :ltag list of matching tags, like :tselect |
35 | 39 |
@@ -1,4 +1,4 @@ | ||
1 | -*version7.txt* For Vim version 7.0aa. Last change: 2005 Jul 11 | |
1 | +*version7.txt* For Vim version 7.0aa. Last change: 2005 Jul 12 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1180,4 +1180,7 @@ | ||
1180 | 1180 | When opening a new buffer the local value of 'bomb' was not initialized from |
1181 | 1181 | the global value. |
1182 | 1182 | |
1183 | +Win32: When using the "Edit with Vim" entry the file name was limited to about | |
1184 | +200 characters. | |
1185 | + | |
1183 | 1186 | vim:tw=78:ts=8:ft=help:norl: |
@@ -2,7 +2,7 @@ | ||
2 | 2 | " This is a GENERATED FILE. Please always refer to source file at the URI below. |
3 | 3 | " Language: XF86Config (XFree86 configuration file) |
4 | 4 | " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> |
5 | -" Last Change: 2003-05-01 | |
5 | +" Last Change: 2005 Jul 12 | |
6 | 6 | " URL: http://trific.ath.cx/Ftp/vim/syntax/xf86conf.vim |
7 | 7 | " Required Vim Version: 6.0 |
8 | 8 | " |
@@ -63,7 +63,7 @@ | ||
63 | 63 | |
64 | 64 | " Sections and subsections |
65 | 65 | if b:xf86conf_xfree86_version >= 4 |
66 | - syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Vendor\|Keyboard\|Pointer\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,xf86confSectionError | |
66 | + syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,xf86confSectionError | |
67 | 67 | syn region xf86confSectionModule matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Module\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionAny,xf86confComment,xf86confOption,xf86confKeyword |
68 | 68 | syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword |
69 | 69 | syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment |
@@ -165,7 +165,7 @@ | ||
165 | 165 | |
166 | 166 | " Synchronization |
167 | 167 | if b:xf86conf_xfree86_version >= 4 |
168 | - syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Vendor\|Keyboard\|Pointer\)\"" | |
168 | + syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\)\"" | |
169 | 169 | syn sync match xf86confSyncSectionModule grouphere xf86confSectionModule "^\s*Section\s\+\"Module\"" |
170 | 170 | syn sync match xf86confSyncSectionModes groupthere xf86confSectionModes "^\s*Section\s\+\"Modes\"" |
171 | 171 | else |
@@ -38,10 +38,14 @@ | ||
38 | 38 | HRESULT hres = 0; |
39 | 39 | UINT cbFiles = 0; |
40 | 40 | |
41 | +/* The buffers size used to be MAX_PATH (256 bytes), but that's not always | |
42 | + * enough */ | |
43 | +#define BUFSIZE 1100 | |
44 | + | |
41 | 45 | // |
42 | 46 | // Get the name of the Gvim executable to use, with the path. |
43 | 47 | // When "runtime" is non-zero, we were called to find the runtime directory. |
44 | -// Returns the path in name[MAX_PATH]. It's empty when it fails. | |
48 | +// Returns the path in name[BUFSIZE]. It's empty when it fails. | |
45 | 49 | // |
46 | 50 | static void |
47 | 51 | getGvimName(char *name, int runtime) |
@@ -54,7 +58,7 @@ | ||
54 | 58 | if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0, |
55 | 59 | KEY_READ, &keyhandle) == ERROR_SUCCESS) |
56 | 60 | { |
57 | - hlen = MAX_PATH; | |
61 | + hlen = BUFSIZE; | |
58 | 62 | if (RegQueryValueEx(keyhandle, "path", 0, NULL, (BYTE *)name, &hlen) |
59 | 63 | != ERROR_SUCCESS) |
60 | 64 | name[0] = 0; |
@@ -82,7 +86,7 @@ | ||
82 | 86 | } |
83 | 87 | |
84 | 88 | // |
85 | -// Get the Vim runtime directory into buf[MAX_PATH]. | |
89 | +// Get the Vim runtime directory into buf[BUFSIZE]. | |
86 | 90 | // The result is empty when it failed. |
87 | 91 | // When it works, the path ends in a slash or backslash. |
88 | 92 | // |
@@ -218,8 +222,8 @@ | ||
218 | 222 | static void |
219 | 223 | dyn_gettext_load(void) |
220 | 224 | { |
221 | - char szBuff[MAX_PATH]; | |
222 | - char szLang[MAX_PATH]; | |
225 | + char szBuff[BUFSIZE]; | |
226 | + char szLang[BUFSIZE]; | |
223 | 227 | DWORD len; |
224 | 228 | HKEY keyhandle; |
225 | 229 | int gotlang = 0; |
@@ -231,7 +235,7 @@ | ||
231 | 235 | if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0, |
232 | 236 | KEY_READ, &keyhandle) == ERROR_SUCCESS) |
233 | 237 | { |
234 | - len = MAX_PATH; | |
238 | + len = BUFSIZE; | |
235 | 239 | if (RegQueryValueEx(keyhandle, "lang", 0, NULL, (BYTE*)szBuff, &len) |
236 | 240 | == ERROR_SUCCESS) |
237 | 241 | { |
@@ -249,7 +253,7 @@ | ||
249 | 253 | // LOCALE_SABBREVLANGNAME gives us three letters, like "enu", we use |
250 | 254 | // only the first two. |
251 | 255 | len = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SABBREVLANGNAME, |
252 | - (LPTSTR)szBuff, MAX_PATH); | |
256 | + (LPTSTR)szBuff, BUFSIZE); | |
253 | 257 | if (len >= 2 && _strnicmp(szBuff, "en", 2) != 0) |
254 | 258 | { |
255 | 259 | // There are a few exceptions (probably more) |
@@ -615,11 +619,11 @@ | ||
615 | 619 | // Now display all the vim instances |
616 | 620 | for (int i = 0; i < m_cntOfHWnd; i++) |
617 | 621 | { |
618 | - char title[MAX_PATH]; | |
619 | - char temp[MAX_PATH]; | |
622 | + char title[BUFSIZE]; | |
623 | + char temp[BUFSIZE]; | |
620 | 624 | |
621 | 625 | // Obtain window title, continue if can not |
622 | - if (GetWindowText(m_hWnd[i], title, MAX_PATH - 1) == 0) | |
626 | + if (GetWindowText(m_hWnd[i], title, BUFSIZE - 1) == 0) | |
623 | 627 | continue; |
624 | 628 | // Truncate the title before the path, keep the file name |
625 | 629 | char *pos = strchr(title, '('); |
@@ -630,8 +634,8 @@ | ||
630 | 634 | *pos = 0; |
631 | 635 | } |
632 | 636 | // Now concatenate |
633 | - strncpy(temp, _("Edit with existing Vim - "), MAX_PATH - 1); | |
634 | - strncat(temp, title, MAX_PATH - 1); | |
637 | + strncpy(temp, _("Edit with existing Vim - "), BUFSIZE - 1); | |
638 | + strncat(temp, title, BUFSIZE - 1); | |
635 | 639 | InsertMenu(hMenu, |
636 | 640 | indexMenu++, |
637 | 641 | MF_STRING|MF_BYPOSITION, |
@@ -750,7 +754,7 @@ | ||
750 | 754 | |
751 | 755 | BOOL CALLBACK CShellExt::EnumWindowsProc(HWND hWnd, LPARAM lParam) |
752 | 756 | { |
753 | - char temp[MAX_PATH]; | |
757 | + char temp[BUFSIZE]; | |
754 | 758 | |
755 | 759 | // First do a bunch of check |
756 | 760 | // No invisible window |
@@ -807,8 +811,8 @@ | ||
807 | 811 | static char * |
808 | 812 | searchpath(char *name) |
809 | 813 | { |
810 | - static char widename[2 * MAX_PATH]; | |
811 | - static char location[2 * MAX_PATH + 2]; | |
814 | + static char widename[2 * BUFSIZE]; | |
815 | + static char location[2 * BUFSIZE + 2]; | |
812 | 816 | |
813 | 817 | // There appears to be a bug in FindExecutableA() on Windows NT. |
814 | 818 | // Use FindExecutableW() instead... |
@@ -816,12 +820,12 @@ | ||
816 | 820 | if (g_PlatformId == VER_PLATFORM_WIN32_NT) |
817 | 821 | { |
818 | 822 | MultiByteToWideChar(CP_ACP, 0, (LPCTSTR)name, -1, |
819 | - (LPWSTR)widename, MAX_PATH); | |
823 | + (LPWSTR)widename, BUFSIZE); | |
820 | 824 | if (FindExecutableW((LPCWSTR)widename, (LPCWSTR)"", |
821 | 825 | (LPWSTR)location) > (HINSTANCE)32) |
822 | 826 | { |
823 | 827 | WideCharToMultiByte(CP_ACP, 0, (LPWSTR)location, -1, |
824 | - (LPSTR)widename, 2 * MAX_PATH, NULL, NULL); | |
828 | + (LPSTR)widename, 2 * BUFSIZE, NULL, NULL); | |
825 | 829 | return widename; |
826 | 830 | } |
827 | 831 | } |
@@ -842,8 +846,8 @@ | ||
842 | 846 | LPCSTR pszParam, |
843 | 847 | int iShowCmd) |
844 | 848 | { |
845 | - char m_szFileUserClickedOn[MAX_PATH]; | |
846 | - char cmdStr[MAX_PATH]; | |
849 | + char m_szFileUserClickedOn[BUFSIZE]; | |
850 | + char cmdStr[BUFSIZE]; | |
847 | 851 | UINT i; |
848 | 852 | |
849 | 853 | for (i = 0; i < cbFiles; i++) |
@@ -856,7 +860,7 @@ | ||
856 | 860 | getGvimName(cmdStr, 0); |
857 | 861 | strcat(cmdStr, " \""); |
858 | 862 | |
859 | - if ((strlen(cmdStr) + strlen(m_szFileUserClickedOn) + 2) < MAX_PATH) | |
863 | + if ((strlen(cmdStr) + strlen(m_szFileUserClickedOn) + 2) < BUFSIZE) | |
860 | 864 | { |
861 | 865 | strcat(cmdStr, m_szFileUserClickedOn); |
862 | 866 | strcat(cmdStr, "\""); |
@@ -913,13 +917,13 @@ | ||
913 | 917 | int iShowCmd, |
914 | 918 | int useDiff) |
915 | 919 | { |
916 | - char m_szFileUserClickedOn[MAX_PATH]; | |
920 | + char m_szFileUserClickedOn[BUFSIZE]; | |
917 | 921 | char *cmdStr; |
918 | 922 | size_t cmdlen; |
919 | 923 | size_t len; |
920 | 924 | UINT i; |
921 | 925 | |
922 | - cmdlen = MAX_PATH; | |
926 | + cmdlen = BUFSIZE; | |
923 | 927 | cmdStr = (char *)malloc(cmdlen); |
924 | 928 | getGvimName(cmdStr, 0); |
925 | 929 | if (useDiff) |
@@ -934,7 +938,7 @@ | ||
934 | 938 | len = strlen(cmdStr) + strlen(m_szFileUserClickedOn) + 4; |
935 | 939 | if (len > cmdlen) |
936 | 940 | { |
937 | - cmdlen = len + MAX_PATH; | |
941 | + cmdlen = len + BUFSIZE; | |
938 | 942 | cmdStr = (char *)realloc(cmdStr, cmdlen); |
939 | 943 | } |
940 | 944 | strcat(cmdStr, " \""); |
@@ -3,10 +3,12 @@ | ||
3 | 3 | STARTTEST |
4 | 4 | :so small.vim |
5 | 5 | :" |
6 | -:" First generate a .spl file from a .dic and a .aff file. | |
6 | +:" Don't want to depend on the locale from the environment | |
7 | 7 | :set enc=latin1 |
8 | -:/^affstart1/+1,/affend1/-1w Xtest.aff | |
9 | -:/^dicstart/+1,/dicend/-1w Xtest.dic | |
8 | +:e! | |
9 | +:" First generate a .spl file from a .dic and a .aff file. | |
10 | +gg:/^affstart1/+1,/^affend1/-1w Xtest.aff | |
11 | +gg:/^dicstart/+1,/^dicend/-1w Xtest.dic | |
10 | 12 | :mkspell Xtest Xtest |
11 | 13 | :" |
12 | 14 | :" use that spell file |
@@ -184,10 +184,12 @@ | ||
184 | 184 | # endif |
185 | 185 | { |
186 | 186 | if (wtime == -1 || wtime > 100L) |
187 | - (void)handle_signal(SIGNAL_UNBLOCK); /* allow signals to kill us */ | |
187 | + /* allow signals to kill us */ | |
188 | + (void)vim_handle_signal(SIGNAL_UNBLOCK); | |
188 | 189 | retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt); |
189 | 190 | if (wtime == -1 || wtime > 100L) |
190 | - (void)handle_signal(SIGNAL_BLOCK); /* block SIGHUP et al. */ | |
191 | + /* block SIGHUP et al. */ | |
192 | + (void)vim_handle_signal(SIGNAL_BLOCK); | |
191 | 193 | } |
192 | 194 | #endif |
193 | 195 |