forked from aniani/vim
updated for version 7.0008
This commit is contained in:
parent
8299df966a
commit
2df6dcc596
@ -1,4 +1,4 @@
|
||||
*diff.txt* For Vim version 7.0aa. Last change: 2004 May 01
|
||||
*diff.txt* For Vim version 7.0aa. Last change: 2004 Jul 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -83,7 +83,7 @@ While already in Vim you can start diff mode in three ways.
|
||||
|
||||
*:difft* *:diffthis*
|
||||
:diffthis Make the current window part of the diff windows. This sets
|
||||
the option like for "vimdiff".
|
||||
the options like for "vimdiff".
|
||||
|
||||
:diffpatch {patchfile} *:diffp* *:diffpatch*
|
||||
Use the current buffer, patch it with the diff found in
|
||||
@ -109,10 +109,22 @@ There can be up to four buffers with 'diff' set.
|
||||
|
||||
Since the option values are remembered with the buffer, you can edit another
|
||||
file for a moment and come back to the same file and be in diff mode again.
|
||||
If you don't want diff mode, reset the 'diff' option. And you probably want
|
||||
to get rid of the fold column: >
|
||||
|
||||
:set nodiff foldcolumn=0
|
||||
*:diffo* *:diffoff*
|
||||
:diffoff Switch off diff mode for the current window.
|
||||
|
||||
:diffoff! Switch off diff mode for all windows.
|
||||
|
||||
The ":diffoff" command resets the relevant options to their default value.
|
||||
This may be different from what the values were before diff mode was started,
|
||||
the old values are not remembered.
|
||||
|
||||
'diff' off
|
||||
'scrollbind' off
|
||||
'scrollopt' without "hor"
|
||||
'wrap' on
|
||||
'foldmethod' "manual"
|
||||
'foldcolumn' 0
|
||||
|
||||
==============================================================================
|
||||
2. Viewing diffs *view-diffs*
|
||||
|
@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 7.0aa. Last change: 2004 Jul 07
|
||||
*index.txt* For Vim version 7.0aa. Last change: 2004 Jul 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1109,6 +1109,7 @@ The commands are sorted on the non-optional part of their name.
|
||||
|:delfunction| :delf[unction] delete a user function
|
||||
|:diffupdate| :dif[fupdate] update 'diff' buffers
|
||||
|:diffget| :diffg[et] remove differences in current buffer
|
||||
|:diffoff| :diffo[ff] switch off diff mode
|
||||
|:diffpatch| :diffp[atch] apply a patch and show differences
|
||||
|:diffput| :diffpu[t] remove differences in other buffer
|
||||
|:diffsplit| :diffs[plit] show differences with another file
|
||||
|
@ -1,4 +1,4 @@
|
||||
*quickref.txt* For Vim version 7.0aa. Last change: 2004 Jul 05
|
||||
*quickref.txt* For Vim version 7.0aa. Last change: 2004 Jul 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -18,10 +18,10 @@
|
||||
|Q_sc| Scrolling |Q_ce| Ex: Command-line editing
|
||||
|Q_in| insert: Inserting text |Q_ra| Ex: Ranges
|
||||
|Q_ai| insert: Keys |Q_ex| Ex: Special characters
|
||||
|Q_ss| insert: Special keys |Q_ed| Editing a file
|
||||
|Q_di| insert: Digraphs |Q_fl| Using the argument list
|
||||
|Q_si| insert: Special inserts |Q_wq| Writing and quitting
|
||||
|Q_de| change: Deleting text |Q_st| Starting VIM
|
||||
|Q_ss| insert: Special keys |Q_st| Starting VIM
|
||||
|Q_di| insert: Digraphs |Q_ed| Editing a file
|
||||
|Q_si| insert: Special inserts |Q_fl| Using the argument list
|
||||
|Q_de| change: Deleting text |Q_wq| Writing and quitting
|
||||
|Q_cm| change: Copying and moving |Q_ac| Automatic commands
|
||||
|Q_ch| change: Changing text |Q_wi| Multi-window commands
|
||||
|Q_co| change: Complex |Q_bu| Buffer list commands
|
||||
@ -1046,6 +1046,55 @@ Context-sensitive completion on the command-line:
|
||||
|::e| :e extension
|
||||
|::s| :s/{pat}/{repl}/ substitute {pat} with {repl}
|
||||
------------------------------------------------------------------------------
|
||||
*Q_st* Starting VIM
|
||||
|
||||
|-vim| vim [options] start editing with an empty buffer
|
||||
|-file| vim [options] {file} .. start editing one or more files
|
||||
|--| vim [options] - read file from stdin
|
||||
|-tag| vim [options] -t {tag} edit the file associated with {tag}
|
||||
|-qf| vim [options] -q [fname] start editing in QuickFix mode,
|
||||
display the first error
|
||||
|
||||
Most useful Vim arguments (for full list see |startup-options|)
|
||||
|
||||
|-gui| -g start GUI (also allows other options)
|
||||
|
||||
|-+| +[num] put the cursor at line [num] (default: last line)
|
||||
|-+c| +{command} execute {command} after loading the file
|
||||
|-+/| +/{pat} {file} .. put the cursor at the first occurrence of {pat}
|
||||
|-v| -v Vi mode, start ex in Normal mode
|
||||
|-e| -e Ex mode, start vim in Ex mode
|
||||
|-R| -R Read-only mode, implies -n
|
||||
|-m| -m modifications not allowed (resets 'write' option)
|
||||
|-d| -d diff mode |diff|
|
||||
|-b| -b binary mode
|
||||
|-l| -l lisp mode
|
||||
|-A| -A Arabic mode ('arabic' is set)
|
||||
|-F| -F Farsi mode ('fkmap' and 'rightleft' are set)
|
||||
|-H| -H Hebrew mode ('hkmap' and 'rightleft' are set)
|
||||
|-V| -V Verbose, give informative messages
|
||||
|-C| -C Compatible, set the 'compatible' option
|
||||
|-N| -N Nocompatible, reset the 'compatible' option
|
||||
|-r| -r give list of swap files
|
||||
|-r| -r {file} .. recover aborted edit session
|
||||
|-n| -n do not create a swap file
|
||||
|-o| -o [num] open [num] windows (default: one for each file)
|
||||
|-f| -f GUI: foreground process, don't fork
|
||||
Amiga: do not restart VIM to open a window (for
|
||||
e.g., mail)
|
||||
|-s| -s {scriptin} first read commands from the file {scriptin}
|
||||
|-w| -w {scriptout} write typed chars to file {scriptout} (append)
|
||||
|-W| -W {scriptout} write typed chars to file {scriptout} (overwrite)
|
||||
|-T| -T {terminal} set terminal name
|
||||
|-d| -d {device} Amiga: open {device} to be used as a console
|
||||
|-u| -u {vimrc} read inits from {vimrc} instead of other inits
|
||||
|-U| -U {gvimrc} idem, for when starting the GUI
|
||||
|-i| -i {viminfo} read info from {viminfo} instead of other files
|
||||
|---| -- end of options, other arguments are file names
|
||||
|--help| --help show list of arguments and exit
|
||||
|--version| --version show version info and exit
|
||||
|--| - Read file from stdin.
|
||||
------------------------------------------------------------------------------
|
||||
*Q_ed* Editing a file
|
||||
|
||||
Without !: Fail if changes has been made to the current buffer.
|
||||
@ -1122,54 +1171,6 @@ Context-sensitive completion on the command-line:
|
||||
is set and [!] not given write the buffer.
|
||||
|CTRL-Z| CTRL-Z Same as ":stop"
|
||||
------------------------------------------------------------------------------
|
||||
*Q_st* Starting VIM
|
||||
|
||||
|-vim| vim [options] start editing with an empty buffer
|
||||
|-file| vim [options] {file} .. start editing one or more files
|
||||
|--| vim [options] - read file from stdin
|
||||
|-tag| vim [options] -t {tag} edit the file associated with {tag}
|
||||
|-qf| vim [options] -q [fname] start editing in QuickFix mode,
|
||||
display the first error
|
||||
|
||||
Vim arguments:
|
||||
|
||||
|-gui| -g start GUI (also allows other options)
|
||||
|
||||
|-+| +[num] put the cursor at line [num] (default: last line)
|
||||
|-+c| +{command} execute {command} after loading the file
|
||||
|-+/| +/{pat} {file} .. put the cursor at the first occurrence of {pat}
|
||||
|-v| -v Vi mode, start ex in Normal mode
|
||||
|-e| -e Ex mode, start vim in Ex mode
|
||||
|-R| -R Read-only mode, implies -n
|
||||
|-m| -m modifications not allowed (resets 'write' option)
|
||||
|-b| -b binary mode
|
||||
|-l| -l lisp mode
|
||||
|-A| -A Arabic mode ('arabic' is set)
|
||||
|-F| -F Farsi mode ('fkmap' and 'rightleft' are set)
|
||||
|-H| -H Hebrew mode ('hkmap' and 'rightleft' are set)
|
||||
|-V| -V Verbose, give informative messages
|
||||
|-C| -C Compatible, set the 'compatible' option
|
||||
|-N| -N Nocompatible, reset the 'compatible' option
|
||||
|-r| -r give list of swap files
|
||||
|-r| -r {file} .. recover aborted edit session
|
||||
|-n| -n do not create a swap file
|
||||
|-o| -o [num] open [num] windows (default: one for each file)
|
||||
|-f| -f GUI: foreground process, don't fork
|
||||
Amiga: do not restart VIM to open a window (for
|
||||
e.g., mail)
|
||||
|-s| -s {scriptin} first read commands from the file {scriptin}
|
||||
|-w| -w {scriptout} write typed chars to file {scriptout} (append)
|
||||
|-W| -W {scriptout} write typed chars to file {scriptout} (overwrite)
|
||||
|-T| -T {terminal} set terminal name
|
||||
|-d| -d {device} Amiga: open {device} to be used as a console
|
||||
|-u| -u {vimrc} read inits from {vimrc} instead of other inits
|
||||
|-U| -U {gvimrc} idem, for when starting the GUI
|
||||
|-i| -i {viminfo} read info from {viminfo} instead of other files
|
||||
|---| -- end of options, other arguments are file names
|
||||
|--help| --help show list of arguments and exit
|
||||
|--version| --version show version info and exit
|
||||
|--| - Read file from stdin.
|
||||
------------------------------------------------------------------------------
|
||||
*Q_ac* Automatic Commands
|
||||
|
||||
|viminfo-file| Read registers, marks, history at startup, save when exiting.
|
||||
|
@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2004 Jul 09
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2004 Jul 12
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -30,17 +30,13 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
:syn sync ccomment asdf gives a warning without a line number.
|
||||
|
||||
@: doesn't work if cmdline has a ^M, requires using ^V. (Tim Chase)
|
||||
Make aap build script work again. Also with mzscheme
|
||||
|
||||
Mac: Compiling --enable-gui=athena doesn't work. Try to fix without disabling
|
||||
Carbon. Otherwise adjust configure to disable darwin. (raf)
|
||||
|
||||
Mac: "make install" doesn't install.
|
||||
|
||||
Make aap build script work again.
|
||||
|
||||
|
||||
For version 7.0:
|
||||
- Include many PATCHES:
|
||||
@ -79,10 +75,11 @@ For version 7.0:
|
||||
Lakshmanan, 2003 Jan 21)
|
||||
winnr("$") Get number of windows. (patch from Nikolai
|
||||
Weibull 2003 Jan 13) (another patch from
|
||||
Yegappan Lakshmanan, 2003 Aug 31)
|
||||
Yegappan Lakshmanan, 2004 Jul 11)
|
||||
search() Add optional offset argument.
|
||||
Add 'n' flag. (patch from Nikolai Weibull
|
||||
2003 Jan 13)
|
||||
filter() Patch from Yegappan Lakshmanan, 2004 Jul 11
|
||||
8 Make it possible to delete marks. Charles Campbell has a patch that
|
||||
does this with the markclear() function (2004 Jan 9).
|
||||
And the ":delmark" command (2004 Feb 9)
|
||||
@ -93,7 +90,16 @@ For version 7.0:
|
||||
When "lnum" is zero delete the mark.
|
||||
When "filename" has no wildcards and there is no matching buffer, add
|
||||
the buffer (unlisted).
|
||||
Patch for \xnn (Ciaran McCreesh) 2004 Jul 7
|
||||
Patch for \xnn (Ciaran McCreesh) 2004 Jul 10
|
||||
7 Add 'taglistfiles' option, show file name and type when listing matching
|
||||
tags name with CTRL-D completion. Patch from Yegappan Lakshmanan.
|
||||
2004 Jul 11
|
||||
7 For Visual mode: Command to do a search for the string in the marked
|
||||
area. Only when fewer than two lines. Use "g/" and "gb". Patch from
|
||||
Yegappan Lakshmanan. 2004 Jul 11
|
||||
8 Make 'statusline' local, so that each window can have a different
|
||||
value. But should it also be local to a buffer? (Yegappan Lakshmanan
|
||||
has a patch, 2004 Jul 11)
|
||||
--- awaiting updated patch ---
|
||||
7 Add patch from Wall for this one ( ~/Mail/oldmail/wall/in.00019 ):
|
||||
'flipcase' variable: upper/lowercase pairs.
|
||||
@ -163,23 +169,15 @@ For version 7.0:
|
||||
Tcl implementation ~/vim/HierAssist/ )
|
||||
7 Add patch from Benoit Cerrina to integrate Vim and Perl functions
|
||||
better. Now also works for Ruby (2001 Nov 10)
|
||||
7 Add 'taglistfiles' option, show file name and type when listing matching
|
||||
tags name with CTRL-D completion. Patch from Yegappan Lakshmanan.
|
||||
7 Motif: use the menu font consistently. Patch from Martin Dalecki 2002
|
||||
Jan 11.
|
||||
- Motif: add 3D shading for the menu entries? Patch from Martin Dalecki.
|
||||
7 For Visual mode: Command to do a search for the string in the marked
|
||||
area. Only when fewer than two lines. Use "g/" and "gb". Patch from
|
||||
Yegappan Lakshmanan.
|
||||
7 When 'rightleft' is set, the search pattern should be displayed right
|
||||
to left as well? See patch of Dec 26. (Nadim Shaikli)
|
||||
8 Lock all used memory so that it doesn't get swapped to disk (uncrypted).
|
||||
Patch by Jason Holt, 2003 May 23.
|
||||
7 Support a stronger encryption. Jason Holt implemented AES (May 6 2003).
|
||||
7 Add ! register, for shell commands. (patch from Grenie)
|
||||
8 Make 'statusline' local, so that each window can have a different
|
||||
value. But should it also be local to a buffer? (Yegappan Lakshmanan
|
||||
has a patch, 2002 feb 15)
|
||||
8 In the gzip plugin, also recognize *.gz.orig, *.gz.bak, etc. Like it's
|
||||
done for filetype detection. Patch from Walter Briscoe, 2003 Jul 1.
|
||||
7 Add a "-@ filelist" argument: read file names from a file. (David
|
||||
@ -267,6 +265,10 @@ For version 7.0:
|
||||
"foldcolumn". (Benji Fisher, 2004 Jun 21)
|
||||
- FileChangedShellPost autocommand event: after (not) reloading a changed
|
||||
file. Can be used to update statusline oslt.
|
||||
8 When a file is change outside of Vim and unmodified in Vim there is no
|
||||
simple way to automatically reload the file. Either add an option for
|
||||
this or make it simple to have the FileChangedShell invoke the normal
|
||||
action, telling it what to do.
|
||||
- Displaying size of Visual area: use 24-33 column display.
|
||||
- Mac: Unicode input and display (Eckehard Berns, June 27)
|
||||
8 Add patch from Muraoka Taro (Mar 16) to support input method on Mac?
|
||||
@ -729,7 +731,7 @@ Macintosh:
|
||||
8 When an ":edit" is inside a try command and the ATTENTION prompt is used,
|
||||
the :catch commands are always executed, also when the file is edited
|
||||
normally. Should reset did_emsg and undo side effects. Also make sure
|
||||
the ATTENTION message shows up.
|
||||
the ATTENTION message shows up. Servatius Brandt works on this.
|
||||
9 When using ":e ++enc=foo file" and the file is already loaded with
|
||||
'fileencoding' set to "bar", then do_ecmd() uses that buffer, even though
|
||||
the fileencoding differs. Reload the buffer in this situation? Need to
|
||||
@ -772,8 +774,6 @@ Macintosh:
|
||||
":buf foo<Tab>" doesn't find the second one. (George V. Reilly)
|
||||
7 Output for ":scriptnames" and ":breaklist" should shorten the file names:
|
||||
use "~/" when possible.
|
||||
8 After using diff mode, ":set nodiff" doesn't restore the old foldmethod.
|
||||
(Thomas S. Urban)
|
||||
7 mb_off2cells() doesn't work correctly on the tail byte of a double-byte
|
||||
character. (Yasuhiro Matsumoto) It should return 1 when used on a tail
|
||||
byte, like for utf-8. Store second byte of double-byte in ScreenLines2[]
|
||||
@ -1173,7 +1173,6 @@ User Friendlier:
|
||||
|
||||
|
||||
Diff mode:
|
||||
8 Add a command to stop diff mode: ":set nodiff fdc = 0 noscrollbind"
|
||||
8 Use diff mode to show the changes made in a buffer (compared to the file).
|
||||
Use an unnamed buffer, like doing:
|
||||
new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
|
||||
|
@ -1,4 +1,4 @@
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 05
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -117,6 +117,9 @@ Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
|
||||
|
||||
|:0file| Removes the name of the buffer. (Charles Campbell)
|
||||
|
||||
|:diffoff| Switch off diff mode in the current window or in all
|
||||
windows.
|
||||
|
||||
|
||||
New functions: ~
|
||||
|
||||
@ -232,4 +235,10 @@ Michele)
|
||||
Printing with PostScript may keep the printer waiting for more. Append a
|
||||
CTRL-D to the printer output. (Mike Williams)
|
||||
|
||||
When converting a string with a hex or octal number the leading '-' was
|
||||
ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
|
||||
|
||||
Using "@:" to repeat a command line didn't work when it contains control
|
||||
characters.
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: IDL (Interface Description Language)
|
||||
" Maintainer: Jody Goldberg <jgoldberg@home.com>
|
||||
" Last Change: 2001 May 09
|
||||
" Maintainer: Jody Goldberg <jgoldberg@home.com> or <jody@gnome.org>
|
||||
" Last Change: 2004 Jul 12
|
||||
|
||||
" This is an experiment. IDL's structure is simple enough to permit a full
|
||||
" grammar based approach to rather than using a few heuristics. The result
|
||||
|
@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 6.3 script
|
||||
" Language: Vim 7.0 script
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Jul 09, 2004
|
||||
" Version: 6.3-07
|
||||
" Last Change: July 12, 2004
|
||||
" Version: 7.0-01 NOT RELEASED
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@ -13,23 +13,23 @@ endif
|
||||
" vimTodo: contains common special-notices for comments {{{2
|
||||
" Use the vimCommentGroup cluster to add your own.
|
||||
syn keyword vimTodo contained COMBAK NOT RELEASED TODO WIP
|
||||
syn cluster vimCommentGroup contains=vimTodo,@Spell
|
||||
syn cluster vimCommentGroup contains=vimTodo
|
||||
|
||||
" regular vim commands {{{2
|
||||
syn keyword vimCommand contained ab[breviate] abc[lear] abo[veleft] al[l] arga[dd] argd[elete] argdo arge[dit] argg[lobal] argl[ocal] ar[gs] argu[ment] as[cii] bad[d] ba[ll] bd[elete] be bel[owright] bf[irst] bl[ast] bm[odified] bn[ext] bN[ext] bo[tright] bp[revious] brea[k] breaka[dd] breakd[el] breakl[ist] br[ewind] bro[wse] bufdo b[uffer] buffers bun[load] bw[ipeout] ca[bbrev] cabc[lear] cal[l] cat[ch] cc ccl[ose] cd ce[nter] cf[ile] cfir[st] cg[etfile] c[hange] changes chd[ir] che[ckpath] checkt[ime] cla[st] cl[ist] clo[se] cmapc[lear] cnew[er] cn[ext] cN[ext] cnf[ile] cNf[ile] cnorea[bbrev] col[der] colo[rscheme] comc[lear] comp[iler] conf[irm] con[tinue] cope[n] co[py] cpf[ile] cp[revious] cq[uit] cr[ewind] cuna[bbrev] cu[nmap] cw[indow] debugg[reedy] delc[ommand] d[elete] DeleteFirst delf[unction] delm[ark] diffg[et] diffpatch diffpu[t] diffsplit diffthis dig[raphs] di[splay] dj[ump] dl[ist] dr[op] ds[earch] dsp[lit] echoe[rr] echom[sg] echon e[dit] el[se] elsei[f] em[enu] emenu* endf[unction] en[dif] endt[ry] endw[hile] ene[w] ex exi[t] f[ile] files filetype fina[lly] fin[d] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] folddoc[losed] foldd[oopen] foldo[pen] fu[nction] g[lobal] go[to] gr[ep] grepa[dd] ha[rdcopy] h[elp] helpf[ind] helpg[rep] helpt[ags] hid[e] his[tory] I ia[bbrev] iabc[lear] if ij[ump] il[ist] imapc[lear] inorea[bbrev] is[earch] isp[lit] iuna[bbrev] iu[nmap] j[oin] ju[mps] k keepj[umps] kee[pmarks] lan[guage] la[st] lc[d] lch[dir] le[ft] lefta[bove] l[ist] lm[ap] lmapc[lear] ln[oremap] lo[adview] loc[kmarks] ls lu[nmap] mak[e] ma[rk] marks mat[ch] menut[ranslate] mk[exrc] mks[ession] mkvie[w] mkv[imrc] mod[e] m[ove] new n[ext] N[ext] nmapc[lear] noh[lsearch] norea[bbrev] norm[al] Nread nu[mber] nun[map] Nw omapc[lear] on[ly] o[pen] opt[ions] ou[nmap] pc[lose] ped[it] pe[rl] perld[o] po[p] popu popu[p] pp[op] pre[serve] prev[ious] p[rint] P[rint] prompt promptf[ind] promptr[epl] ps[earch] pta[g] ptf[irst] ptj[ump] ptl[ast] ptn[ext] ptN[ext] ptp[revious] ptr[ewind] pts[elect] pu[t] pw[d] pyf[ile] py[thon] qa[ll] q[uit] quita[ll] r[ead] rec[over] redi[r] red[o] redr[aw] redraws[tatus] reg[isters] res[ize] ret[ab] retu[rn] rew[ind] ri[ght] rightb[elow] rub[y] rubyd[o] rubyf[ile] ru[ntime] rv[iminfo] sal[l] sa[rgument] sav[eas] sba[ll] sbf[irst] sbl[ast] sbm[odified] sbn[ext] sbN[ext] sbp[revious] sbr[ewind] sb[uffer] scripte[ncoding] scrip[tnames] se[t] setf[iletype] setg[lobal] setl[ocal] sf[ind] sfir[st sh[ell] sign sil[ent] sim[alt] sla[st] sl[eep] sm[agic] sn[ext] sN[ext] sni[ff] sno[magic] so[urce] sp[lit] spr[evious] sre[wind] sta[g] star[tinsert] startr[eplace] stj[ump] st[op] stopi[nsert] sts[elect] sun[hide] sus[pend] sv[iew] syncbind t ta[g] tags tc[l] tcld[o] tclf[ile] te[aroff] tf[irst] the th[row] tj[ump] tl[ast] tm tm[enu] tn[ext] tN[ext] to[pleft] tp[revious] tr[ewind] try ts[elect] tu tu[nmenu] una[bbreviate] u[ndo] unh[ide] unm[ap] up[date] verb[ose] ve[rsion] vert[ical] v[global] vie[w] vi[sual] vmapc[lear] vne[w] vs[plit] vu[nmap] wa[ll] wh[ile] winc[md] windo winp[os] winpos* win[size] wn[ext] wN[ext] wp[revous] wq wqa[ll] w[rite] ws[verb] wv[iminfo] X xa[ll] x[it] y[ank]
|
||||
syn keyword vimCommand contained ab[breviate] abc[lear] abo[veleft] al[l] arga[dd] argd[elete] argdo arge[dit] argg[lobal] argl[ocal] ar[gs] argu[ment] as[cii] bad[d] ba[ll] bd[elete] be bel[owright] bf[irst] bl[ast] bm[odified] bn[ext] bN[ext] bo[tright] bp[revious] brea[k] breaka[dd] breakd[el] breakl[ist] br[ewind] bro[wse] bufdo b[uffer] buffers bun[load] bw[ipeout] ca[bbrev] cabc[lear] cal[l] cat[ch] cc ccl[ose] cd ce[nter] cf[ile] cfir[st] cg[etfile] c[hange] changes chd[ir] che[ckpath] checkt[ime] cla[st] cl[ist] clo[se] cmapc[lear] cnew[er] cn[ext] cN[ext] cnf[ile] cNf[ile] cnorea[bbrev] col[der] colo[rscheme] comc[lear] comp[iler] conf[irm] con[tinue] cope[n] co[py] cpf[ile] cp[revious] cq[uit] cr[ewind] cuna[bbrev] cu[nmap] cw[indow] debugg[reedy] delc[ommand] d[elete] DeleteFirst delf[unction] diffg[et] diffpatch diffpu[t] diffsplit diffthis dig[raphs] di[splay] dj[ump] dl[ist] dr[op] ds[earch] dsp[lit] echoe[rr] echom[sg] echon e[dit] el[se] elsei[f] em[enu] emenu* endf[unction] en[dif] endt[ry] endw[hile] ene[w] ex exi[t] f[ile] files filetype fina[lly] fin[d] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] folddoc[losed] foldd[oopen] foldo[pen] fu[nction] g[lobal] go[to] gr[ep] grepa[dd] ha[rdcopy] h[elp] helpf[ind] helpg[rep] helpt[ags] hid[e] his[tory] I ia[bbrev] iabc[lear] if ij[ump] il[ist] imapc[lear] inorea[bbrev] is[earch] isp[lit] iuna[bbrev] iu[nmap] j[oin] ju[mps] k keepj[umps] kee[pmarks] lan[guage] la[st] lc[d] lch[dir] le[ft] lefta[bove] l[ist] lm[ap] lmapc[lear] ln[oremap] lo[adview] loc[kmarks] ls lu[nmap] mak[e] ma[rk] marks mat[ch] menut[ranslate] mk[exrc] mks[ession] mkvie[w] mkv[imrc] mod[e] m[ove] mzf[ile] mz[scheme] new n[ext] N[ext] nmapc[lear] noh[lsearch] norea[bbrev] norm[al] Nread nu[mber] nun[map] Nw omapc[lear] on[ly] o[pen] opt[ions] ou[nmap] pc[lose] ped[it] pe[rl] perld[o] po[p] popu popu[p] pp[op] pre[serve] prev[ious] p[rint] P[rint] prompt promptf[ind] promptr[epl] ps[earch] pta[g] ptf[irst] ptj[ump] ptl[ast] ptn[ext] ptN[ext] ptp[revious] ptr[ewind] pts[elect] pu[t] pw[d] pyf[ile] py[thon] qa[ll] q[uit] quita[ll] r[ead] rec[over] redi[r] red[o] redr[aw] redraws[tatus] reg[isters] res[ize] ret[ab] retu[rn] rew[ind] ri[ght] rightb[elow] rub[y] rubyd[o] rubyf[ile] ru[ntime] rv[iminfo] sal[l] sa[rgument] sav[eas] sba[ll] sbf[irst] sbl[ast] sbm[odified] sbn[ext] sbN[ext] sbp[revious] sbr[ewind] sb[uffer] scripte[ncoding] scrip[tnames] se[t] setf[iletype] setg[lobal] setl[ocal] sf[ind] sfir[st sh[ell] sign sil[ent] sim[alt] sla[st] sl[eep] sm[agic] sn[ext] sN[ext] sni[ff] sno[magic] so[urce] sp[lit] spr[evious] sre[wind] sta[g] star[tinsert] startr[eplace] stj[ump] st[op] stopi[nsert] sts[elect] sun[hide] sus[pend] sv[iew] syn syncbind t ta[g] tags tc[l] tcld[o] tclf[ile] te[aroff] tf[irst] the th[row] tj[ump] tl[ast] tm tm[enu] tn[ext] tN[ext] to[pleft] tp[revious] tr[ewind] try ts[elect] tu tu[nmenu] una[bbreviate] u[ndo] unh[ide] unm[ap] up[date] verb[ose] ve[rsion] vert[ical] v[global] vie[w] vi[sual] vmapc[lear] vne[w] vs[plit] vu[nmap] wa[ll] wh[ile] winc[md] windo winp[os] winpos* win[size] wn[ext] wN[ext] wp[revous] wq wqa[ll] w[rite] ws[verb] wv[iminfo] X xa[ll] x[it] y[ank]
|
||||
syn match vimCommand contained "\<z[-+^.=]"
|
||||
|
||||
" vimOptions are caught only when contained in a vimSet {{{2
|
||||
syn keyword vimOption contained : acd ai akm al aleph allowrevins altkeymap ambiwidth ambw anti antialias ar arab arabic arabicshape ari arshape autochdir autoindent autoread autowrite autowriteall aw awa background backspace backup backupcopy backupdir backupext backupskip balloondelay ballooneval bdir bdlay beval bex bg bh bin binary biosk bioskey bk bkc bl bomb breakat brk browsedir bs bsdir bsk bt bufhidden buflisted buftype casemap cb ccv cd cdpath cedit cf ch charconvert ci cin cindent cink cinkeys cino cinoptions cinw cinwords clipboard cmdheight cmdwinheight cmp cms co columns com comments commentstring compatible complete conc conceallevel confirm consk conskey copyindent cp cpo cpoptions cpt crb cscopepathcomp cscopeprg cscopequickfix cscopetag cscopetagorder cscopeverbose cspc csprg csqf cst csto csverb cursorbind cwh debug deco def define delcombine dex dg dict dictionary diff diffexpr diffopt digraph dip dir directory display dy ea ead eadirection eb ed edcompatible ef efm ei ek enc encoding endofline eol ep equalalways equalprg errorbells errorfile errorformat esckeys et eventignore ex expandtab exrc fcl fcs fdc fde fdi fdl fdls fdm fdn fdo fdt fen fenc fencs ff ffs fileencoding fileencodings fileformat fileformats filetype fillchars fk fkmap fml fmr fo foldclose foldcolumn foldenable foldexpr foldignore foldlevel foldlevelstart foldmarker foldmethod foldminlines foldnestmax foldopen foldtext formatoptions formatprg fp ft gcr gd gdefault gfm gfn gfs gfw ghr go gp grepformat grepprg guicursor guifont guifontset guifontwide guiheadroom guioptions guipty helpfile helpheight helplang hf hh hi hid hidden highlight history hk hkmap hkmapp hkp hl hlg hls hlsearch ic icon iconstring ignorecase im imactivatekey imak imc imcmdline imd imdisable imi iminsert ims imsearch inc include includeexpr incsearch inde indentexpr indentkeys indk inex inf infercase insertmode is isf isfname isi isident isk iskeyword isp isprint joinspaces js key keymap keymodel keywordprg km kmp kp langmap langmenu laststatus lazyredraw lbr lcs linebreak lines linespace lisp lispwords list listchars lm lmap loadplugins lpl ls lsp lw lz ma magic makeef makeprg mat matchpairs matchtime maxfuncdepth maxmapdepth maxmem maxmemtot mef menuitems mfd mh mis ml mls mm mmd mmt mod modeline modelines modifiable modified more mouse mousef mousefocus mousehide mousem mousemodel mouses mouseshape mouset mousetime mp mps nf nrformats nu number oft osfiletype pa para paragraphs paste pastetoggle patchexpr patchmode path pdev penc pex pexpr pfn pheader pi pm popt preserveindent previewheight previewwindow printdevice printencoding printexpr printfont printheader printoptions pt pvh pvw readonly remap report restorescreen revins ri rightleft rightleftcmd rl rlc ro rs rtp ru ruf ruler rulerformat runtimepath sb sbo sbr sc scb scr scroll scrollbind scrolljump scrolloff scrollopt scs sect sections secure sel selection selectmode sessionoptions sft sh shcf shell shellcmdflag shellpipe shellquote shellredir shellslash shelltype shellxquote shiftround shiftwidth shm shortmess shortname showbreak showcmd showfulltag showmatch showmode shq si sidescroll sidescrolloff siso sj slm sm smartcase smartindent smarttab smd sn so softtabstop sol sp splitbelow splitright spr sr srr ss ssl ssop st sta startofline statusline stl sts su sua suffixes suffixesadd sw swapfile swapsync swb swf switchbuf sws sxq syn syntax ta tabstop tag tagbsearch taglength tagrelative tags tagstack tb tbi tbidi tbis tbs tenc term termbidi termencoding terse textauto textmode textwidth tf tgst thesaurus tildeop timeout timeoutlen title titlelen titleold titlestring tl tm to toolbar toolbariconsize top tr ts tsl tsr ttimeout ttimeoutlen ttm tty ttybuiltin ttyfast ttym ttymouse ttyscroll ttytype tw tx uc ul undolevels updatecount updatetime ut vb vbs vdir ve verbose vi viewdir viewoptions viminfo virtualedit visualbell vop wa wak warn wb wc wcm wd weirdinvert wfh wh whichwrap wig wildchar wildcharm wildignore wildmenu wildmode wim winaltkeys winfixheight winheight winminheight winminwidth winwidth wiv wiw wm wmh wmnu wmw wrap wrapmargin wrapscan write writeany writebackup writedelay ws ww
|
||||
syn keyword vimOption contained : acd ai akm al aleph allowrevins altkeymap ambiwidth ambw anti antialias ar arab arabic arabicshape ari arshape autochdir autoindent autoread autowrite autowriteall aw awa background backspace backup backupcopy backupdir backupext backupskip balloondelay ballooneval bdir bdlay beval bex bg bh bin binary biosk bioskey bk bkc bl bomb breakat brk browsedir bs bsdir bsk bt bufhidden buflisted buftype casemap cb ccv cd cdpath cedit cf cfu ch charconvert ci cin cindent cink cinkeys cino cinoptions cinw cinwords clipboard cmdheight cmdwinheight cmp cms co columns com comments commentstring compatible complete completefunc confirm consk conskey copyindent cp cpo cpoptions cpt cscopepathcomp cscopeprg cscopequickfix cscopetag cscopetagorder cscopeverbose cspc csprg csqf cst csto csverb cwh debug deco def define delcombine dex dg dict dictionary diff diffexpr diffopt digraph dip dir directory display dy ea ead eadirection eb ed edcompatible ef efm ei ek enc encoding endofline eol ep equalalways equalprg errorbells errorfile errorformat esckeys et eventignore ex expandtab exrc fcl fcs fdc fde fdi fdl fdls fdm fdn fdo fdt fen fenc fencs ff ffs fileencoding fileencodings fileformat fileformats filetype fillchars fk fkmap fml fmr fo foldclose foldcolumn foldenable foldexpr foldignore foldlevel foldlevelstart foldmarker foldmethod foldminlines foldnestmax foldopen foldtext formatoptions formatprg fp ft gcr gd gdefault gfm gfn gfs gfw ghr go gp grepformat grepprg guicursor guifont guifontset guifontwide guiheadroom guioptions guipty helpfile helpheight helplang hf hh hi hid hidden highlight history hk hkmap hkmapp hkp hl hlg hls hlsearch ic icon iconstring ignorecase im imactivatekey imak imc imcmdline imd imdisable imi iminsert ims imsearch inc include includeexpr incsearch inde indentexpr indentkeys indk inex inf infercase insertmode is isf isfname isi isident isk iskeyword isp isprint joinspaces js key keymap keymodel keywordprg km kmp kp langmap langmenu laststatus lazyredraw lbr lcs linebreak lines linespace lisp lispwords list listchars lm lmap loadplugins lpl ls lsp lw lz ma magic makeef makeprg mat matchpairs matchtime maxfuncdepth maxmapdepth maxmem maxmemtot mef menuitems mfd mh mis ml mls mm mmd mmt mod modeline modelines modifiable modified more mouse mousef mousefocus mousehide mousem mousemodel mouses mouseshape mouset mousetime mp mps mzq mzquantum nf nrformats nu number numberwidth nuw oft osfiletype pa para paragraphs paste pastetoggle patchexpr patchmode path pdev penc pex pexpr pfn pheader pi pm pmbcs pmbfn popt preserveindent previewheight previewwindow printdevice printencoding printexpr printfont printheader printmbcharset printmbfont printoptions pt pvh pvw qe quoteescape readonly remap report restorescreen revins ri rightleft rightleftcmd rl rlc ro rs rtp ru ruf ruler rulerformat runtimepath sb sbo sbr sc scb scr scroll scrollbind scrolljump scrolloff scrollopt scs sect sections secure sel selection selectmode sessionoptions sft sh shcf shell shellcmdflag shellpipe shellquote shellredir shellslash shelltype shellxquote shiftround shiftwidth shm shortmess shortname showbreak showcmd showfulltag showmatch showmode shq si sidescroll sidescrolloff siso sj slm sm smartcase smartindent smarttab smd sn so softtabstop sol sp splitbelow splitright spr sr srr ss ssl ssop st sta startofline statusline stl sts su sua suffixes suffixesadd sw swapfile swapsync swb swf switchbuf sws sxq syn syntax ta tabstop tag tagbsearch taglength tagrelative tags tagstack tb tbi tbidi tbis tbs tenc term termbidi termencoding terse textauto textmode textwidth tf tgst thesaurus tildeop timeout timeoutlen title titlelen titleold titlestring tl tm to toolbar toolbariconsize top tr ts tsl tsr ttimeout ttimeoutlen ttm tty ttybuiltin ttyfast ttym ttymouse ttyscroll ttytype tw tx uc ul undolevels updatecount updatetime ut vb vbs vdir ve verbose vi viewdir viewoptions viminfo virtualedit visualbell vop wa wak warn wb wc wcm wd weirdinvert wfh wh whichwrap wig wildchar wildcharm wildignore wildmenu wildmode wim winaltkeys winfixheight winheight winminheight winminwidth winwidth wiv wiw wm wmh wmnu wmw wrap wrapmargin wrapscan write writeany writebackup writedelay ws ww
|
||||
|
||||
" vimOptions: These are the turn-off setting variants {{{2
|
||||
syn keyword vimOption contained noacd noai noakm noallowrevins noaltkeymap noanti noantialias noar noarab noarabic noarabicshape noari noarshape noautochdir noautoindent noautoread noautowrite noautowriteall noaw noawa nobackup noballooneval nobeval nobin nobinary nobiosk nobioskey nobk nobl nobomb nobuflisted nocf noci nocin nocindent nocompatible noconfirm noconsk noconskey nocopyindent nocp nocrb nocscopetag nocscopeverbose nocst nocsverb nocursorbind nodeco nodelcombine nodg nodiff nodigraph nodisable noea noeb noed noedcompatible noek noendofline noeol noequalalways noerrorbells noesckeys noet noex noexpandtab noexrc nofen nofk nofkmap nofoldenable nogd nogdefault noguipty nohid nohidden nohk nohkmap nohkmapp nohkp nohls nohlsearch noic noicon noignorecase noim noimc noimcmdline noimd noincsearch noinf noinfercase noinsertmode nois nojoinspaces nojs nolazyredraw nolbr nolinebreak nolisp nolist noloadplugins nolpl nolz noma nomagic nomh noml nomod nomodeline nomodifiable nomodified nomore nomousef nomousefocus nomousehide nonu nonumber nopaste nopi nopreserveindent nopreviewwindow nopvw noreadonly noremap norestorescreen norevins nori norightleft norightleftcmd norl norlc noro nors noru noruler nosb nosc noscb noscrollbind noscs nosecure nosft noshellslash noshiftround noshortname noshowcmd noshowfulltag noshowmatch noshowmode nosi nosm nosmartcase nosmartindent nosmarttab nosmd nosn nosol nosplitbelow nosplitright nospr nosr nossl nosta nostartofline noswapfile noswf nota notagbsearch notagrelative notagstack notbi notbidi notbs notermbidi noterse notextauto notextmode notf notgst notildeop notimeout notitle noto notop notr nottimeout nottybuiltin nottyfast notx novb novisualbell nowa nowarn nowb noweirdinvert nowfh nowildmenu nowinfixheight nowiv nowmnu nowrap nowrapscan nowrite nowriteany nowritebackup nows
|
||||
syn keyword vimOption contained noacd noai noakm noallowrevins noaltkeymap noanti noantialias noar noarab noarabic noarabicshape noari noarshape noautochdir noautoindent noautoread noautowrite noautowriteall noaw noawa nobackup noballooneval nobeval nobin nobinary nobiosk nobioskey nobk nobl nobomb nobuflisted nocf noci nocin nocindent nocompatible noconfirm noconsk noconskey nocopyindent nocp nocscopetag nocscopeverbose nocst nocsverb nodeco nodelcombine nodg nodiff nodigraph nodisable noea noeb noed noedcompatible noek noendofline noeol noequalalways noerrorbells noesckeys noet noex noexpandtab noexrc nofen nofk nofkmap nofoldenable nogd nogdefault noguipty nohid nohidden nohk nohkmap nohkmapp nohkp nohls nohlsearch noic noicon noignorecase noim noimc noimcmdline noimd noincsearch noinf noinfercase noinsertmode nois nojoinspaces nojs nolazyredraw nolbr nolinebreak nolisp nolist noloadplugins nolpl nolz noma nomagic nomh noml nomod nomodeline nomodifiable nomodified nomore nomousef nomousefocus nomousehide nonu nonumber nopaste nopi nopreserveindent nopreviewwindow nopvw noreadonly noremap norestorescreen norevins nori norightleft norightleftcmd norl norlc noro nors noru noruler nosb nosc noscb noscrollbind noscs nosecure nosft noshellslash noshiftround noshortname noshowcmd noshowfulltag noshowmatch noshowmode nosi nosm nosmartcase nosmartindent nosmarttab nosmd nosn nosol nosplitbelow nosplitright nospr nosr nossl nosta nostartofline noswapfile noswf nota notagbsearch notagrelative notagstack notbi notbidi notbs notermbidi noterse notextauto notextmode notf notgst notildeop notimeout notitle noto notop notr nottimeout nottybuiltin nottyfast notx novb novisualbell nowa nowarn nowb noweirdinvert nowfh nowildmenu nowinfixheight nowiv nowmnu nowrap nowrapscan nowrite nowriteany nowritebackup nows
|
||||
|
||||
" vimOptions: These are the invertible variants {{{2
|
||||
syn keyword vimOption contained invacd invai invakm invallowrevins invaltkeymap invanti invantialias invar invarab invarabic invarabicshape invari invarshape invautochdir invautoindent invautoread invautowrite invautowriteall invaw invawa invbackup invballooneval invbeval invbin invbinary invbiosk invbioskey invbk invbl invbomb invbuflisted invcf invci invcin invcindent invcompatible invconfirm invconsk invconskey invcopyindent invcp invcrb invcscopetag invcscopeverbose invcst invcsverb invcursorbind invdeco invdelcombine invdg invdiff invdigraph invdisable invea inveb inved invedcompatible invek invendofline inveol invequalalways inverrorbells invesckeys invet invex invexpandtab invexrc invfen invfk invfkmap invfoldenable invgd invgdefault invguipty invhid invhidden invhk invhkmap invhkmapp invhkp invhls invhlsearch invic invicon invignorecase invim invimc invimcmdline invimd invincsearch invinf invinfercase invinsertmode invis invjoinspaces invjs invlazyredraw invlbr invlinebreak invlisp invlist invloadplugins invlpl invlz invma invmagic invmh invml invmod invmodeline invmodifiable invmodified invmore invmousef invmousefocus invmousehide invnu invnumber invpaste invpi invpreserveindent invpreviewwindow invpvw invreadonly invremap invrestorescreen invrevins invri invrightleft invrightleftcmd invrl invrlc invro invrs invru invruler invsb invsc invscb invscrollbind invscs invsecure invsft invshellslash invshiftround invshortname invshowcmd invshowfulltag invshowmatch invshowmode invsi invsm invsmartcase invsmartindent invsmarttab invsmd invsn invsol invsplitbelow invsplitright invspr invsr invssl invsta invstartofline invswapfile invswf invta invtagbsearch invtagrelative invtagstack invtbi invtbidi invtbs invtermbidi invterse invtextauto invtextmode invtf invtgst invtildeop invtimeout invtitle invto invtop invtr invttimeout invttybuiltin invttyfast invtx invvb invvisualbell invwa invwarn invwb invweirdinvert invwfh invwildmenu invwinfixheight invwiv invwmnu invwrap invwrapscan invwrite invwriteany invwritebackup invws
|
||||
syn keyword vimOption contained invacd invai invakm invallowrevins invaltkeymap invanti invantialias invar invarab invarabic invarabicshape invari invarshape invautochdir invautoindent invautoread invautowrite invautowriteall invaw invawa invbackup invballooneval invbeval invbin invbinary invbiosk invbioskey invbk invbl invbomb invbuflisted invcf invci invcin invcindent invcompatible invconfirm invconsk invconskey invcopyindent invcp invcscopetag invcscopeverbose invcst invcsverb invdeco invdelcombine invdg invdiff invdigraph invdisable invea inveb inved invedcompatible invek invendofline inveol invequalalways inverrorbells invesckeys invet invex invexpandtab invexrc invfen invfk invfkmap invfoldenable invgd invgdefault invguipty invhid invhidden invhk invhkmap invhkmapp invhkp invhls invhlsearch invic invicon invignorecase invim invimc invimcmdline invimd invincsearch invinf invinfercase invinsertmode invis invjoinspaces invjs invlazyredraw invlbr invlinebreak invlisp invlist invloadplugins invlpl invlz invma invmagic invmh invml invmod invmodeline invmodifiable invmodified invmore invmousef invmousefocus invmousehide invnu invnumber invpaste invpi invpreserveindent invpreviewwindow invpvw invreadonly invremap invrestorescreen invrevins invri invrightleft invrightleftcmd invrl invrlc invro invrs invru invruler invsb invsc invscb invscrollbind invscs invsecure invsft invshellslash invshiftround invshortname invshowcmd invshowfulltag invshowmatch invshowmode invsi invsm invsmartcase invsmartindent invsmarttab invsmd invsn invsol invsplitbelow invsplitright invspr invsr invssl invsta invstartofline invswapfile invswf invta invtagbsearch invtagrelative invtagstack invtbi invtbidi invtbs invtermbidi invterse invtextauto invtextmode invtf invtgst invtildeop invtimeout invtitle invto invtop invtr invttimeout invttybuiltin invttyfast invtx invvb invvisualbell invwa invwarn invwb invweirdinvert invwfh invwildmenu invwinfixheight invwiv invwmnu invwrap invwrapscan invwrite invwriteany invwritebackup invws
|
||||
|
||||
" termcap codes (which can also be set) {{{2
|
||||
syn keyword vimOption contained t_AB t_AF t_al t_AL t_bc t_cd t_ce t_cl t_cm t_Co t_cs t_CS t_CV t_da t_db t_dl t_DL t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_so t_sr t_te t_ti t_ts t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_AB t_AF t_al t_AL t_bc t_cd t_ce t_cl t_cm t_Co t_cs t_CS t_CV t_da t_db t_dl t_DL t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_so t_sr t_te t_ti t_ts t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
|
||||
syn match vimOption contained "t_%1"
|
||||
syn match vimOption contained "t_#2"
|
||||
syn match vimOption contained "t_#4"
|
||||
@ -40,21 +40,21 @@ syn match vimOption contained "t_%i"
|
||||
syn match vimOption contained "t_k;"
|
||||
|
||||
" unsupported settings: these are supported by vi but don't do anything in vim {{{2
|
||||
syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600 wi window
|
||||
syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600 wi window
|
||||
|
||||
" AutoBuf Events {{{2
|
||||
syn case ignore
|
||||
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave CursorHold E135 E143 E200 E201 E203 E204 EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter RemoteReply StdinReadPost StdinReadPre Syntax TermChanged TermResponse User UserGettingBored VimEnter VimLeave VimLeavePre WinEnter WinLeave
|
||||
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave ColorScheme CursorHold E135 E143 E200 E201 E203 E204 EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter InsertChange InsertEnter InsertLeave RemoteReply StdinReadPost StdinReadPre Syntax TermChanged TermResponse User UserGettingBored VimEnter VimLeave VimLeavePre WinEnter WinLeave
|
||||
|
||||
" Highlight commonly used Groupnames {{{2
|
||||
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
||||
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
||||
|
||||
" Default highlighting groups {{{2
|
||||
syn keyword vimHLGroup contained Conceal Cursor CursorIM DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr Menu ModeMsg MoreMsg NonText Normal Question Scrollbar Search SignColumn SpecialKey StatusLine StatusLineNC Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
|
||||
syn keyword vimHLGroup contained Cursor CursorIM DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr Menu ModeMsg MoreMsg NonText Normal Question Scrollbar Search SignColumn SpecialKey StatusLine StatusLineNC Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
|
||||
syn case match
|
||||
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained append argc argidx argv browse bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line char2nr cindent col confirm cscope_connection cursor delete did_filetype escape eventhandler executable exists expand filereadable filewritable fnamemodify foldclosed foldclosedend foldlevel foldtext foreground function getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfsize getftime getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent input inputdialog inputrestore inputsave inputsecret isdirectory libcall libcallnr line line2byte lispindent localtime maparg mapcheck match matchend matchstr mode nextnonblank nr2char prevnonblank remote_expr remote_foreground remote_peek remote_read remote_send rename resolve search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify strftime stridx strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system tempname tolower toupper type virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth
|
||||
syn keyword vimFuncName contained append argc argidx argv browse bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line char2nr cindent col confirm cscope_connection cursor delete did_filetype escape eventhandler executable exists expand filereadable filewritable fnamemodify foldclosed foldclosedend foldlevel foldtext foreground function getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfsize getftime getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent input inputdialog inputrestore inputsave inputsecret isdirectory libcall libcallnr line line2byte lispindent localtime maparg mapcheck match matchend matchstr mode nextnonblank nr2char prevnonblank remote_expr remote_foreground remote_peek remote_read remote_send rename resolve search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify strftime stridx strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system tempname tolower toupper tr type virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth
|
||||
|
||||
"--- syntax above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
|
70
src/Makefile
70
src/Makefile
@ -851,10 +851,14 @@ TOOLS = xxd/xxd$(EXEEXT)
|
||||
### Location of man pages
|
||||
MANSUBDIR = $(MANDIR)/man1
|
||||
|
||||
### Vim version (adjusted by a script)
|
||||
VIMMAJOR = 7
|
||||
VIMMINOR = 0aa
|
||||
|
||||
### Location of Vim files (should not need to be changed, and {{{1
|
||||
### some things might not work when they are changed!)
|
||||
VIMDIR = /vim
|
||||
VIMRTDIR = /vim70aa
|
||||
VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
|
||||
HELPSUBDIR = /doc
|
||||
COLSUBDIR = /colors
|
||||
SYNSUBDIR = /syntax
|
||||
@ -1051,33 +1055,20 @@ LINKIT = @echo >/dev/null
|
||||
NONE_INSTALL = install_normal
|
||||
|
||||
### KDE GUI interface.
|
||||
KDE_DIR = $(KDE_PREFIX)
|
||||
KDE_INCL = gui.h
|
||||
KDE_SRC = gui.c pty.c gui_kde.cc gui_kde_x11.cc gui_kde_widget.cc gui_kde_widget_moc.cc kvim_iface_skel.cc
|
||||
KDE_OBJ = objects/gui.o objects/pty.o objects/gui_kde.o objects/gui_kde_x11.o \
|
||||
objects/gui_kde_widget.o objects/gui_kde_widget_moc.o \
|
||||
objects/kvim_iface_skel.o
|
||||
KDE_DEFS = -DFEAT_GUI_KDE $(NARROW_PROTO)
|
||||
KDE_IPATH = $(GUI_INC_LOC)
|
||||
KDE_LIBS_DIR = $(GUI_LIB_LOC)
|
||||
KDE_LIBS_DIR = $(GUI_LIB_LOC) # Includes the libraries themselves
|
||||
KDE_DIR = $(KDE_PREFIX)
|
||||
KDE_LIBS1 =
|
||||
KDE_LIBS2 = $(KDE_LIBNAME)
|
||||
KDE_LIBS2 =
|
||||
KDE_INSTALL = install_normal
|
||||
KDE_TARGETS = installklinks installkdeicons
|
||||
KDE_MAN_TARGETS =
|
||||
KDE_TESTTARGET = gui
|
||||
|
||||
#for KDE rename files to avoid confusion with gvim for GTK
|
||||
KVIMNAME = k$(VIMNAME)
|
||||
KVIMTARGET = $(KVIMNAME)$(LNKEXT)
|
||||
KVIEWNAME = k$(VIEWNAME)
|
||||
KVIEWTARGET = $(KVIEWNAME)$(LNKEXT)
|
||||
RKVIMNAME = r$(KVIMNAME)
|
||||
RKVIMTARGET = $(RKVIMNAME)$(LNKEXT)
|
||||
RKVIEWNAME = r$(KVIEWNAME)
|
||||
RKVIEWTARGET = $(RKVIEWNAME)$(LNKEXT)
|
||||
KVIMDIFFNAME = k$(VIMDIFFNAME)
|
||||
KVIMDIFFTARGET = $(KVIMDIFFNAME)$(LNKEXT)
|
||||
KDE_TARGETS = installglinks installkdeicons
|
||||
KDE_MAN_TARGETS = installghelplinks
|
||||
KDE_TESTTARGET = gui
|
||||
|
||||
### GTK GUI
|
||||
GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
|
||||
@ -1093,7 +1084,7 @@ GTK_LIBS2 = $(GTK_LIBNAME)
|
||||
GTK_INSTALL = install_normal
|
||||
GTK_TARGETS = installglinks
|
||||
GTK_MAN_TARGETS = installghelplinks
|
||||
GTK_TESTTARGET = gui
|
||||
GTK_TESTTARGET = gui
|
||||
|
||||
### Motif GUI
|
||||
MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c
|
||||
@ -1842,9 +1833,8 @@ install-languages: languages $(DEST_LANG) $(DEST_KMAP)
|
||||
chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
|
||||
fi
|
||||
|
||||
# install the icons for KDE, if the directory exists and the icon doesn't.
|
||||
# doesn't.<=looks strange to install icons to user's directory ;), i add my
|
||||
# own install procedure, mikmak
|
||||
# Install the icons for the KDE GUI. This differs from the KDE icons for
|
||||
# other GUIs.
|
||||
installkdeicons:
|
||||
mkdir -p $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/
|
||||
mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/
|
||||
@ -1860,6 +1850,7 @@ installkdeicons:
|
||||
cp ../runtime/hi22-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/hi22-action-make.png
|
||||
cp ../runtime/kde-tips $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips && chmod 644 $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips
|
||||
|
||||
# install the icons for KDE, if the directory exists and the icon doesn't.
|
||||
ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
|
||||
ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
|
||||
ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
|
||||
@ -1908,17 +1899,8 @@ installglinks: $(DEST_BIN)/$(GVIMTARGET) \
|
||||
$(DEST_BIN)/$(EVIEWTARGET) \
|
||||
$(INSTALLGVIMDIFF)
|
||||
|
||||
installklinks: $(DEST_BIN)/$(KVIMTARGET) \
|
||||
$(DEST_BIN)/$(KVIEWTARGET) \
|
||||
$(DEST_BIN)/$(RKVIMTARGET) \
|
||||
$(DEST_BIN)/$(RKVIEWTARGET) \
|
||||
$(DEST_BIN)/$(EVIMTARGET) \
|
||||
$(DEST_BIN)/$(EVIEWTARGET) \
|
||||
installkvimdiff
|
||||
|
||||
installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
|
||||
installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
|
||||
installkvimdiff: $(DEST_BIN)/$(KVIMDIFFTARGET)
|
||||
|
||||
$(DEST_BIN)/$(EXTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
|
||||
@ -1932,12 +1914,6 @@ $(DEST_BIN)/$(GVIMTARGET):
|
||||
$(DEST_BIN)/$(GVIEWTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
|
||||
|
||||
$(DEST_BIN)/$(KVIMTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(KVIMTARGET)
|
||||
|
||||
$(DEST_BIN)/$(KVIEWTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(KVIEWTARGET)
|
||||
|
||||
$(DEST_BIN)/$(RVIMTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
|
||||
|
||||
@ -1950,21 +1926,12 @@ $(DEST_BIN)/$(RGVIMTARGET):
|
||||
$(DEST_BIN)/$(RGVIEWTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
|
||||
|
||||
$(DEST_BIN)/$(RKVIMTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RKVIMTARGET)
|
||||
|
||||
$(DEST_BIN)/$(RKVIEWTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RKVIEWTARGET)
|
||||
|
||||
$(DEST_BIN)/$(VIMDIFFTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
|
||||
|
||||
$(DEST_BIN)/$(GVIMDIFFTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
|
||||
|
||||
$(DEST_BIN)/$(KVIMDIFFTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(KVIMDIFFTARGET)
|
||||
|
||||
$(DEST_BIN)/$(EVIMTARGET):
|
||||
cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
|
||||
|
||||
@ -1979,7 +1946,7 @@ installhelplinks: $(GUI_MAN_TARGETS) \
|
||||
$(DEST_MAN)/$(RVIMNAME).1 \
|
||||
$(DEST_MAN)/$(RVIEWNAME).1
|
||||
|
||||
installghelplinks installkhelplinks : $(DEST_MAN)/$(GVIMNAME).1 \
|
||||
installghelplinks: $(DEST_MAN)/$(GVIMNAME).1 \
|
||||
$(DEST_MAN)/$(GVIEWNAME).1 \
|
||||
$(DEST_MAN)/$(RGVIMNAME).1 \
|
||||
$(DEST_MAN)/$(RGVIEWNAME).1 \
|
||||
@ -2023,12 +1990,9 @@ uninstall: uninstall_runtime
|
||||
-rm -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_MAN)/xxd.1
|
||||
-rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
|
||||
-rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
|
||||
-rm -f $(DEST_BIN)/$(KVIMTARGET) $(DEST_BIN)/$(KVIEWTARGET)
|
||||
-rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
|
||||
-rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
|
||||
-rm -f $(DEST_BIN)/$(RKVIMTARGET) $(DEST_BIN)/$(RKVIEWTARGET)
|
||||
-rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
|
||||
-rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(KVIMDIFFTARGET)
|
||||
-rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
|
||||
-rm -f $(DEST_MAN)/$(EXNAME).1 $(DEST_MAN)/$(VIEWNAME).1
|
||||
-rm -f $(DEST_MAN)/$(GVIMNAME).1 $(DEST_MAN)/$(GVIEWNAME).1
|
||||
@ -2453,7 +2417,7 @@ APPDIR = $(VIMNAME).app
|
||||
RESDIR = $(APPDIR)/Contents/Resources
|
||||
# FIXME: i'm sure someone else can do something clever with grep
|
||||
# sed and version.h here
|
||||
VERSION = 7.0aa
|
||||
VERSION = $(VIMMAJOR).$(VIMMINOR)
|
||||
|
||||
### Common flags
|
||||
M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
|
||||
|
863
src/auto/configure
vendored
863
src/auto/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1546,7 +1546,7 @@ vim_isblankline(lbuf)
|
||||
|
||||
/*
|
||||
* Convert a string into a long and/or unsigned long, taking care of
|
||||
* hexadecimal and octal numbers.
|
||||
* hexadecimal and octal numbers. Accepts a '-' sign.
|
||||
* If "hexp" is not NULL, returns a flag to indicate the type of the number:
|
||||
* 0 decimal
|
||||
* '0' octal
|
||||
@ -1570,7 +1570,6 @@ vim_str2nr(start, hexp, len, dooct, dohex, nptr, unptr)
|
||||
char_u *ptr = start;
|
||||
int hex = 0; /* default is decimal */
|
||||
int negative = FALSE;
|
||||
long n = 0;
|
||||
unsigned long un = 0;
|
||||
|
||||
if (ptr[0] == '-')
|
||||
@ -1603,7 +1602,6 @@ vim_str2nr(start, hexp, len, dooct, dohex, nptr, unptr)
|
||||
/* octal */
|
||||
while ('0' <= *ptr && *ptr <= '7')
|
||||
{
|
||||
n = 8 * n + (long)(*ptr - '0');
|
||||
un = 8 * un + (unsigned long)(*ptr - '0');
|
||||
++ptr;
|
||||
}
|
||||
@ -1613,7 +1611,6 @@ vim_str2nr(start, hexp, len, dooct, dohex, nptr, unptr)
|
||||
/* hex */
|
||||
while (vim_isxdigit(*ptr))
|
||||
{
|
||||
n = 16 * n + (long)hex2nr(*ptr);
|
||||
un = 16 * un + (unsigned long)hex2nr(*ptr);
|
||||
++ptr;
|
||||
}
|
||||
@ -1624,21 +1621,22 @@ vim_str2nr(start, hexp, len, dooct, dohex, nptr, unptr)
|
||||
/* decimal */
|
||||
while (VIM_ISDIGIT(*ptr))
|
||||
{
|
||||
n = 10 * n + (long)(*ptr - '0');
|
||||
un = 10 * un + (unsigned long)(*ptr - '0');
|
||||
++ptr;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hex && negative) /* account for leading '-' for decimal numbers */
|
||||
n = -n;
|
||||
|
||||
if (hexp != NULL)
|
||||
*hexp = hex;
|
||||
if (len != NULL)
|
||||
*len = (int)(ptr - start);
|
||||
if (nptr != NULL)
|
||||
*nptr = n;
|
||||
{
|
||||
if (negative) /* account for leading '-' for decimal numbers */
|
||||
*nptr = -(long)un;
|
||||
else
|
||||
*nptr = (long)un;
|
||||
}
|
||||
if (unptr != NULL)
|
||||
*unptr = un;
|
||||
}
|
||||
|
@ -22,6 +22,12 @@ X_PRE_LIBS = @X_PRE_LIBS@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_LIBS = @X_LIB@
|
||||
|
||||
MZSCHEME_LIBS = @MZSCHEME_LIBS@
|
||||
MZSCHEME_SRC = @MZSCHEME_SRC@
|
||||
MZSCHEME_OBJ = @MZSCHEME_OBJ@
|
||||
MZSCHEME_CFLAGS = @MZSCHEME_CFLAGS@
|
||||
MZSCHEME_PRO = @MZSCHEME_PRO@
|
||||
|
||||
PERL = @vi_cv_path_perl@
|
||||
PERLLIB = @vi_cv_perllib@
|
||||
PERL_LIBS = @PERL_LIBS@
|
||||
@ -102,6 +108,8 @@ MOTIF_LIBNAME = @MOTIF_LIBNAME@
|
||||
GUI_INC_LOC = @GUI_INC_LOC@
|
||||
GUI_LIB_LOC = @GUI_LIB_LOC@
|
||||
GUI_X_LIBS = @GUI_X_LIBS@
|
||||
KDE_PREFIX = @KDE_PREFIX@
|
||||
MOC = @MOC@
|
||||
|
||||
### Any OS dependent extra source and object file
|
||||
OS_EXTRA_SRC = @OS_EXTRA_SRC@
|
||||
|
@ -360,6 +360,11 @@ if test "$enable_mzschemeinterp" = "yes"; then
|
||||
MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
|
||||
else
|
||||
MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
|
||||
if test "$GCC" = yes; then
|
||||
dnl Make Vim remember the path to the library. For when it's not in
|
||||
dnl $LD_LIBRARY_PATH.
|
||||
MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
|
||||
fi
|
||||
fi
|
||||
MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
|
||||
-DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
|
||||
|
76
src/diff.c
76
src/diff.c
@ -116,6 +116,30 @@ diff_buf_delete(buf)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if the current buffer should be added to or removed from the list of
|
||||
* diff buffers.
|
||||
*/
|
||||
void
|
||||
diff_buf_adjust(win)
|
||||
win_T *win;
|
||||
{
|
||||
win_T *wp;
|
||||
|
||||
if (!win->w_p_diff)
|
||||
{
|
||||
/* When there is no window showing a diff for this buffer, remove
|
||||
* it from the diffs. */
|
||||
for (wp = firstwin; wp != NULL; wp = wp->w_next)
|
||||
if (wp->w_buffer == win->w_buffer && wp->w_p_diff)
|
||||
break;
|
||||
if (wp == NULL)
|
||||
diff_buf_delete(win->w_buffer);
|
||||
}
|
||||
else
|
||||
diff_buf_add(win->w_buffer);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add a buffer to make diffs for.
|
||||
*/
|
||||
@ -1030,7 +1054,8 @@ diff_win_options(wp, addbuf)
|
||||
wp->w_p_fen = TRUE;
|
||||
wp->w_p_fdl = 0;
|
||||
foldUpdateAll(wp);
|
||||
changed_window_setting(); /* make sure topline is not halfway a fold */
|
||||
/* make sure topline is not halfway a fold */
|
||||
changed_window_setting_win(wp);
|
||||
}
|
||||
# endif
|
||||
#ifdef FEAT_SCROLLBIND
|
||||
@ -1043,6 +1068,55 @@ diff_win_options(wp, addbuf)
|
||||
redraw_win_later(wp, NOT_VALID);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set options not to show diffs. For the current window or all windows.
|
||||
*/
|
||||
void
|
||||
ex_diffoff(eap)
|
||||
exarg_T *eap;
|
||||
{
|
||||
win_T *wp;
|
||||
win_T *old_curwin = curwin;
|
||||
#ifdef FEAT_SCROLLBIND
|
||||
int diffwin = FALSE;
|
||||
#endif
|
||||
|
||||
for (wp = firstwin; wp != NULL; wp = wp->w_next)
|
||||
{
|
||||
if (wp == curwin || eap->forceit)
|
||||
{
|
||||
/* Set 'diff', 'scrollbind' off and 'wrap' on. */
|
||||
wp->w_p_diff = FALSE;
|
||||
wp->w_p_scb = FALSE;
|
||||
wp->w_p_wrap = TRUE;
|
||||
#ifdef FEAT_FOLDING
|
||||
curwin = wp;
|
||||
curbuf = curwin->w_buffer;
|
||||
set_string_option_direct((char_u *)"fdm", -1,
|
||||
(char_u *)"manual", OPT_LOCAL|OPT_FREE);
|
||||
curwin = old_curwin;
|
||||
curbuf = curwin->w_buffer;
|
||||
wp->w_p_fdc = 0;
|
||||
wp->w_p_fen = FALSE;
|
||||
wp->w_p_fdl = 0;
|
||||
foldUpdateAll(wp);
|
||||
/* make sure topline is not halfway a fold */
|
||||
changed_window_setting_win(wp);
|
||||
#endif
|
||||
diff_buf_adjust(wp);
|
||||
}
|
||||
#ifdef FEAT_SCROLLBIND
|
||||
diffwin |= wp->w_p_diff;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef FEAT_SCROLLBIND
|
||||
/* Remove "hor" from from 'scrollopt' if there are no diff windows left. */
|
||||
if (!diffwin && vim_strchr(p_sbo, 'h') != NULL)
|
||||
do_cmdline_cmd((char_u *)"set sbo-=hor");
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Read the diff output and add each entry to the diff list.
|
||||
*/
|
||||
|
@ -7533,7 +7533,7 @@ error:
|
||||
}
|
||||
|
||||
ga_grow(&ga, cplen);
|
||||
mch_memmove(ga.ga_data + ga.ga_len, cpstr, (size_t)cplen);
|
||||
mch_memmove((char *)ga.ga_data + ga.ga_len, cpstr, (size_t)cplen);
|
||||
ga.ga_len += cplen;
|
||||
ga.ga_room -= cplen;
|
||||
|
||||
|
@ -290,6 +290,8 @@ EX(CMD_diffupdate, "diffupdate", ex_diffupdate,
|
||||
TRLBAR),
|
||||
EX(CMD_diffget, "diffget", ex_diffgetput,
|
||||
RANGE|EXTRA|TRLBAR|MODIFY),
|
||||
EX(CMD_diffoff, "diffoff", ex_diffoff,
|
||||
BANG|TRLBAR),
|
||||
EX(CMD_diffpatch, "diffpatch", ex_diffpatch,
|
||||
EXTRA|FILE1|TRLBAR|MODIFY),
|
||||
EX(CMD_diffput, "diffput", ex_diffgetput,
|
||||
|
@ -1002,7 +1002,10 @@ buf_write_all(buf, forceit)
|
||||
FALSE, forceit, TRUE, FALSE));
|
||||
#ifdef FEAT_AUTOCMD
|
||||
if (curbuf != old_curbuf)
|
||||
{
|
||||
msg_source(hl_attr(HLF_W));
|
||||
MSG(_("Warning: Entered other buffer unexpectedly (check autocommands)"));
|
||||
}
|
||||
#endif
|
||||
return retval;
|
||||
}
|
||||
@ -2730,7 +2733,10 @@ get_one_sourceline(sp)
|
||||
else /* lines like ":map xx yy^M" will have failed */
|
||||
{
|
||||
if (!sp->error)
|
||||
{
|
||||
msg_source(hl_attr(HLF_W));
|
||||
EMSG(_("W15: Warning: Wrong line separator, ^M may be missing"));
|
||||
}
|
||||
sp->error = TRUE;
|
||||
sp->fileformat = EOL_UNIX;
|
||||
}
|
||||
|
@ -363,6 +363,7 @@ static void ex_setfiletype __ARGS((exarg_T *eap));
|
||||
# define ex_setfiletype ex_ni
|
||||
#endif
|
||||
#ifndef FEAT_DIFF
|
||||
# define ex_diffoff ex_ni
|
||||
# define ex_diffpatch ex_ni
|
||||
# define ex_diffgetput ex_ni
|
||||
# define ex_diffsplit ex_ni
|
||||
|
@ -1081,6 +1081,12 @@
|
||||
# define CURSOR_SHAPE
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_MZSCHEME) && (defined(FEAT_GUI_W32) || defined(FEAT_GUI_GTK) \
|
||||
|| defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) \
|
||||
|| defined(FEAT_GUI_MAC) || defined(FEAT_GUI_KDE))
|
||||
# define MZSCHEME_GUI_THREADS
|
||||
#endif
|
||||
|
||||
/*
|
||||
* +ARP Amiga only. Use arp.library, DOS 2.0 is not required.
|
||||
*/
|
||||
|
@ -352,6 +352,9 @@ void VimWidget::mouseReleaseEvent(QMouseEvent *event)//{{{
|
||||
VimWidget::VimWidget( QWidget *parent, const char *name, WFlags f )//{{{
|
||||
:QWidget(parent, name, f)
|
||||
,DCOPObject("KVim")
|
||||
#ifdef FEAT_MZSCHEME
|
||||
,mzscheme_timer_id(-1)
|
||||
#endif
|
||||
{
|
||||
//to be able to show/hide the cursor when moving the mouse
|
||||
setMouseTracking(true);
|
||||
@ -881,6 +884,24 @@ void VimWidget::stop_cursor_blinking()//{{{
|
||||
blink_state = BLINK_NONE;
|
||||
}//}}}
|
||||
|
||||
#ifdef FEAT_MZSCHEME
|
||||
void VimWidget::timerEvent( QTimerEvent * evnt)//{{{
|
||||
{
|
||||
if (evnt->timerId() == mzscheme_timer_id)
|
||||
timer_proc();
|
||||
}//}}}
|
||||
|
||||
void VimWidget::enable_mzscheme_threads()//{{{
|
||||
{
|
||||
mzscheme_timer_id = startTimer(p_mzq);
|
||||
}//}}}
|
||||
|
||||
void VimWidget::disable_mzscheme_threads()//{{{
|
||||
{
|
||||
killTimer(mzscheme_timer_id);
|
||||
}//}}}
|
||||
#endif
|
||||
|
||||
void VimWidget::flash()//{{{
|
||||
{
|
||||
QPainter p(this);
|
||||
|
@ -90,6 +90,10 @@ public:
|
||||
void wait(long);
|
||||
#ifdef FEAT_CLIENTSERVER
|
||||
void serverActivate(WId id);
|
||||
#endif
|
||||
#ifdef FEAT_MZSCHEME
|
||||
void enable_mzscheme_threads();
|
||||
void disable_mzscheme_threads();
|
||||
#endif
|
||||
void flash();
|
||||
|
||||
@ -120,6 +124,9 @@ protected:
|
||||
virtual void imEndEvent ( QIMEvent * );
|
||||
virtual void imComposeEvent ( QIMEvent * );
|
||||
#endif
|
||||
#ifdef FEAT_MZSCHEME
|
||||
virtual void timerEvent( QTimerEvent * );
|
||||
#endif
|
||||
|
||||
/* cursor blinking stuff */
|
||||
QTimer blink_timer;
|
||||
@ -127,6 +134,10 @@ protected:
|
||||
|
||||
/* wait for input */
|
||||
QTimer wait_timer;
|
||||
|
||||
#ifdef FEAT_MZSCHEME
|
||||
int mzscheme_timer_id;
|
||||
#endif
|
||||
|
||||
public slots:
|
||||
void blink_cursor();
|
||||
|
@ -254,6 +254,19 @@ gui_mch_start_blink()//{{{
|
||||
gui.w->start_cursor_blinking();
|
||||
}//}}}
|
||||
|
||||
#ifdef FEAT_MZSCHEME
|
||||
void
|
||||
mzscheme_kde_start_timer()//{{{
|
||||
{
|
||||
gui.w->enable_mzscheme_threads();
|
||||
}//}}}
|
||||
void
|
||||
mzscheme_kde_stop_timer()//{{{
|
||||
{
|
||||
gui.w->disable_mzscheme_threads();
|
||||
}//}}}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Check if the GUI can be started. Called before gvimrc is sourced.
|
||||
* Return OK or FAIL.
|
||||
|
@ -208,10 +208,6 @@ static long range_end;
|
||||
|
||||
/* MzScheme threads scheduling stuff */
|
||||
static int mz_threads_allow = 0;
|
||||
#ifdef FEAT_GUI
|
||||
static void setup_timer(void);
|
||||
static void remove_timer(void);
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_GUI_W32)
|
||||
static void CALLBACK timer_proc(HWND, UINT, UINT, DWORD);
|
||||
@ -226,6 +222,8 @@ static XtIntervalId timer_id = (XtIntervalId)0;
|
||||
pascal void timer_proc(EventLoopTimerRef, void *);
|
||||
static EventLoopTimerRef timer_id = NULL;
|
||||
static EventLoopTimerUPP timerUPP;
|
||||
#elif defined(FEAT_GUI_KDE)
|
||||
static int timer_id = 0;
|
||||
#endif
|
||||
|
||||
#ifndef FEAT_GUI_W32 /* Win32 console and Unix */
|
||||
@ -248,7 +246,10 @@ mzvim_check_threads(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_GUI
|
||||
#ifdef MZSCHEME_GUI_THREADS
|
||||
static void setup_timer(void);
|
||||
static void remove_timer(void);
|
||||
|
||||
/* timers are presented in GUI only */
|
||||
# if defined(FEAT_GUI_W32)
|
||||
static void CALLBACK
|
||||
@ -264,6 +265,9 @@ timer_proc(XtPointer timed_out, XtIntervalId *interval_id)
|
||||
# elif defined(FEAT_GUI_MAC)
|
||||
pascal void
|
||||
timer_proc(EventLoopTimerRef theTimer, void *userData)
|
||||
#elif defined(FEAT_GUI_KDE)
|
||||
void
|
||||
timer_proc(void)
|
||||
# endif
|
||||
{
|
||||
scheme_check_threads();
|
||||
@ -290,6 +294,9 @@ setup_timer(void)
|
||||
timerUPP = NewEventLoopTimerUPP(timer_proc);
|
||||
InstallEventLoopTimer(GetMainEventLoop(), p_mzq * kEventDurationMillisecond,
|
||||
p_mzq * kEventDurationMillisecond, timerUPP, NULL, &timer_id);
|
||||
#elif defined(FEAT_GUI_KDE)
|
||||
mzscheme_kde_start_timer();
|
||||
timer_id = 1; /* just signal that timer was started */
|
||||
# endif
|
||||
}
|
||||
|
||||
@ -305,6 +312,8 @@ remove_timer(void)
|
||||
# elif defined(FEAT_GUI_MAC)
|
||||
RemoveEventLoopTimer(timer_id);
|
||||
DisposeEventLoopTimerUPP(timerUPP);
|
||||
#elif defined(FEAT_GUI_KDE)
|
||||
mzscheme_kde_stop_timer();
|
||||
# endif
|
||||
timer_id = 0;
|
||||
}
|
||||
@ -318,13 +327,13 @@ mzvim_reset_timer(void)
|
||||
setup_timer();
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* MZSCHEME_GUI_THREADS */
|
||||
|
||||
static void
|
||||
notify_multithread(int on)
|
||||
{
|
||||
mz_threads_allow = on;
|
||||
#ifdef FEAT_GUI
|
||||
#ifdef MZSCHEME_GUI_THREADS
|
||||
if (on && timer_id == 0 && p_mzq > 0 && gui.in_use)
|
||||
setup_timer();
|
||||
if (!on && timer_id != 0)
|
||||
|
79
src/main.aap
79
src/main.aap
@ -45,7 +45,7 @@
|
||||
|
||||
# The configure script uses the directory where it's located, use a link.
|
||||
configure.aap: {buildcheck=}
|
||||
:sys ln -s auto/configure.aap configure.aap
|
||||
:symlink {f} auto/configure.aap configure.aap
|
||||
|
||||
# Dependency: run configure.aap to update config.h and config.aap in the
|
||||
# "auto" directory.
|
||||
@ -89,8 +89,7 @@ prefix = `os.path.expanduser(prefix)`
|
||||
GTK
|
||||
GUI_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_beval.c
|
||||
gui_gtk_f.c
|
||||
GUI_OBJ $= $BDIR/gui.o $BDIR/gui_gtk.o $BDIR/gui_gtk_x11.o
|
||||
$BDIR/pty.o $BDIR/gui_gtk_f.o
|
||||
GUI_OBJ =
|
||||
GUI_DEFS = -DFEAT_GUI_GTK $NARROW_PROTO
|
||||
GUI_IPATH = $GUI_INC_LOC
|
||||
GUI_LIBS_DIR = $GUI_LIB_LOC
|
||||
@ -99,10 +98,23 @@ prefix = `os.path.expanduser(prefix)`
|
||||
GUI_TARGETS = installglinks
|
||||
GUI_MAN_TARGETS = installghelplinks
|
||||
GUI_TESTTARGET = gui
|
||||
KDE
|
||||
GUI_SRC = gui.c pty.c gui_kde.cc gui_kde_x11.cc
|
||||
gui_kde_widget_moc.cc
|
||||
kvim_iface_skel.cc
|
||||
GUI_OBJ = $BDIR/gui_kde_widget.o
|
||||
GUI_DEFS = -DFEAT_GUI_KDE $NARROW_PROTO
|
||||
GUI_IPATH = $GUI_INC_LOC
|
||||
GUI_LIBS_DIR = $GUI_LIB_LOC
|
||||
GUI_LIBS1 =
|
||||
GUI_LIBS2 =
|
||||
GUI_TARGETS = installglinks installkdeicons
|
||||
GUI_MAN_TARGETS = installghelplinks
|
||||
GUI_TESTTARGET = gui
|
||||
|
||||
MOTIF
|
||||
GUI_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c
|
||||
GUI_OBJ $= $BDIR/gui.o $BDIR/gui_motif.o $BDIR/gui_x11.o
|
||||
$BDIR/pty.o $BDIR/gui_beval.o
|
||||
GUI_OBJ =
|
||||
GUI_DEFS = -DFEAT_GUI_MOTIF $NARROW_PROTO
|
||||
GUI_IPATH = $GUI_INC_LOC
|
||||
GUI_LIBS_DIR = $GUI_LIB_LOC
|
||||
@ -116,9 +128,7 @@ prefix = `os.path.expanduser(prefix)`
|
||||
XAW_LIB ?= -lXaw
|
||||
GUI_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
|
||||
gui_at_sb.c gui_at_fs.c
|
||||
GUI_OBJ $= $BDIR/gui.o $BDIR/gui_athena.o $BDIR/gui_x11.o \
|
||||
$BDIR/pty.o $BDIR/gui_beval.o \
|
||||
$BDIR/gui_at_sb.o $BDIR/gui_at_fs.o
|
||||
GUI_OBJ =
|
||||
GUI_DEFS = -DFEAT_GUI_ATHENA $NARROW_PROTO
|
||||
GUI_IPATH = $GUI_INC_LOC
|
||||
GUI_LIBS_DIR = $GUI_LIB_LOC
|
||||
@ -132,8 +142,7 @@ prefix = `os.path.expanduser(prefix)`
|
||||
XAW_LIB ?= -lXaw
|
||||
GUI_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c
|
||||
gui_at_fs.c
|
||||
GUI_OBJ $= $BDIR/gui.o $BDIR/gui_athena.o $BDIR/gui_x11.o
|
||||
$BDIR/pty.o $BDIR/gui_beval.o $BDIR/gui_at_fs.o
|
||||
GUI_OBJ =
|
||||
GUI_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $NARROW_PROTO
|
||||
GUI_IPATH = $GUI_INC_LOC
|
||||
GUI_LIBS_DIR = $GUI_LIB_LOC
|
||||
@ -144,7 +153,7 @@ prefix = `os.path.expanduser(prefix)`
|
||||
GUI_TESTTARGET = gui
|
||||
BEOSGUI
|
||||
GUI_SRC = gui.c gui_beos.cc pty.c
|
||||
GUI_OBJ = $BDIR/gui.o $BDIR/gui_beos.o $BDIR/pty.o
|
||||
GUI_OBJ =
|
||||
GUI_DEFS = -DFEAT_GUI_BEOS
|
||||
GUI_IPATH =
|
||||
GUI_LIBS_DIR =
|
||||
@ -155,7 +164,7 @@ prefix = `os.path.expanduser(prefix)`
|
||||
GUI_TESTTARGET = gui
|
||||
PHOTONGUI
|
||||
GUI_SRC = gui.c gui_photon.c pty.c
|
||||
GUI_OBJ = $BDIR/gui.o $BDIR/gui_photon.o $BDIR/pty.o
|
||||
GUI_OBJ =
|
||||
GUI_DEFS = -DFEAT_GUI_PHOTON
|
||||
GUI_IPATH =
|
||||
GUI_LIBS_DIR =
|
||||
@ -178,13 +187,15 @@ prefix = `os.path.expanduser(prefix)`
|
||||
|
||||
|
||||
PRE_DEFS = -Iproto -I. $DEFS $GUI_DEFS $GUI_IPATH $CPPFLAGS $?(EXTRA_IPATHS)
|
||||
POST_DEFS = $X_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $?(EXTRA_DEFS)
|
||||
POST_DEFS = $X_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $?(EXTRA_DEFS)
|
||||
CFLAGS = $PRE_DEFS $CONF_CFLAGS $?(PROFILE_CFLAGS) $POST_DEFS
|
||||
CPPFLAGS =
|
||||
# Need C++ flags for KDE
|
||||
CXXFLAGS = $CFLAGS
|
||||
|
||||
ALL_LIB_DIRS = $GUI_LIBS_DIR $X_LIBS_DIR
|
||||
LDFLAGS = $ALL_LIB_DIRS $CONF_LDFLAGS
|
||||
LIBS = $GUI_LIBS1 $GUI_X_LIBS $GUI_LIBS2 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $CONF_LIBS $?(EXTRA_LIBS) $PERL_LIBS $PYTHON_LIBS $TCL_LIBS $RUBY_LIBS $?(PROFILE_LIBS)
|
||||
LIBS = $GUI_LIBS1 $GUI_X_LIBS $GUI_LIBS2 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $CONF_LIBS $?(EXTRA_LIBS) $MZSCHEME_LIBS $PERL_LIBS $PYTHON_LIBS $TCL_LIBS $RUBY_LIBS $?(PROFILE_LIBS)
|
||||
|
||||
Target = $VIMNAME
|
||||
|
||||
@ -207,6 +218,7 @@ test check:
|
||||
testclean {virtual}:
|
||||
:del {force} testdir/*.out testdir/test.log
|
||||
|
||||
CLEANFILES += gui_kde_widget_moc.cc kvim_iface_skel.cc *.kidl
|
||||
|
||||
# When no fetch target exists we are not a child of the ../main.aap recipe,
|
||||
# Use ../main.aap to do the fetching.
|
||||
@ -265,6 +277,7 @@ Source =
|
||||
$OS_EXTRA_SRC
|
||||
$GUI_SRC
|
||||
$HANGULIN_SRC
|
||||
$MZSCHEME_SRC
|
||||
$PERL_SRC
|
||||
$NETBEANS_SRC
|
||||
$PYTHON_SRC
|
||||
@ -273,6 +286,9 @@ Source =
|
||||
$SNIFF_SRC
|
||||
$WORKSHOP_SRC
|
||||
|
||||
Objects =
|
||||
$GUI_OBJ
|
||||
|
||||
# TODO: make is still used for subdirectories, need to write a recipe.
|
||||
MAKE ?= make
|
||||
|
||||
@ -294,7 +310,7 @@ SRCPATH += auto
|
||||
declare my_prog
|
||||
:attr {filetype = my_prog} $Target
|
||||
|
||||
:program $Target : $Source
|
||||
:program $Target : $Source $Objects
|
||||
|
||||
:action build my_prog object
|
||||
version_obj = `src2obj("version.c")`
|
||||
@ -340,6 +356,20 @@ auto/if_perl.c: if_perl.xs
|
||||
:sys $PERL $PERLLIB/ExtUtils/xsubpp -prototypes -typemap \
|
||||
$PERLLIB/ExtUtils/typemap if_perl.xs >> $target
|
||||
|
||||
$BDIR/gui_kde_widget.o: gui_kde_widget.cc
|
||||
:sys $MOC -o gui_kde_widget_moc.cc gui_kde_widget.h
|
||||
@try:
|
||||
:sys $KDE_PREFIX/bin/dcopidl kvim_iface.h > kvim_iface.kidl
|
||||
@except:
|
||||
:del {f} kvim_iface.kidl
|
||||
:sys $KDE_PREFIX/bin/dcopidl2cpp --c++-suffix cc --no-stub kvim_iface.kidl
|
||||
:do compile gui_kde_widget.cc
|
||||
|
||||
gui_kde_widget_moc.cc: $BDIR/gui_kde_widget.o
|
||||
|
||||
kvim_iface_skel.cc: $BDIR/gui_kde_widget.o
|
||||
|
||||
|
||||
auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
|
||||
:sys CC="$CC $CFLAGS" srcdir=$srcdir sh $srcdir/osdef.sh
|
||||
|
||||
@ -353,12 +383,15 @@ auto/pathdef.c: auto/config.aap
|
||||
:print >> $target $#include "vim.h"
|
||||
:print >> $target char_u *default_vim_dir = (char_u *)"$VIMRCLOC";
|
||||
:print >> $target char_u *default_vimruntime_dir = (char_u *)"$?VIMRUNTIMEDIR";
|
||||
:print >> $target char_u *all_cflags = (char_u *)"$CC -c -I$srcdir $CFLAGS";
|
||||
v = $CC -c -I$srcdir $CFLAGS
|
||||
@v = string.replace(v, '"', '\\"')
|
||||
:print >> $target char_u *all_cflags = (char_u *)"$v";
|
||||
linkcmd = $CC $LDFLAGS -o $VIMTARGET $LIBS
|
||||
link_sed = $BDIR/link.sed
|
||||
@if os.path.exists(link_sed):
|
||||
# filter $linkcmd through $BDIR/link.sed
|
||||
:print $linkcmd | :syseval sed -f $link_sed | :eval re.sub("\n", "", stdin) | :assign linkcmd
|
||||
@linkcmd = string.replace(linkcmd, '"', '\\"')
|
||||
:print >> $target char_u *all_lflags = (char_u *)"$linkcmd";
|
||||
@if _no.get("COMPILEDBY"):
|
||||
who = $COMPILEDBY
|
||||
@ -833,6 +866,20 @@ install-languages {virtual}{force}: languages $DEST_LANG $DEST_KMAP
|
||||
:copy $KMAPSOURCE/README.txt $KMAPSOURCE/*.vim $DEST_KMAP
|
||||
:chmod $FILEMOD $DEST_KMAP/*.vim
|
||||
|
||||
# Install the icons for the KDE GUI. This differs from the KDE icons for
|
||||
# other GUIs.
|
||||
installkdeicons:
|
||||
:copy {mkdir} ../runtime/KVim.desktop $DESTDIR$KDE_PREFIX/share/applnk/Editors/
|
||||
:chmod 644 $DESTDIR$KDE_PREFIX/share/applnk/Editors/KVim.desktop
|
||||
:copy {mkdir} ../runtime/kvim32x32.png $DESTDIR$KDE_PREFIX/share/icons/hicolor/32x32/apps/gvim.png
|
||||
:chmod 644 $DESTDIR$KDE_PREFIX/share/icons/hicolor/32x32/apps/gvim.png
|
||||
:copy {mkdir} ../runtime/kvim48x48.png $DESTDIR$KDE_PREFIX/share/icons/hicolor/48x48/apps/gvim.png
|
||||
:chmod 644 $DESTDIR$KDE_PREFIX/share/icons/hicolor/48x48/apps/gvim.png
|
||||
:copy {mkdir} ../runtime/hi16-action-make.png $DESTDIR$KDE_PREFIX/share/icons/hicolor/16x16/actions/hi16-action-make.png
|
||||
:copy {mkdir} ../runtime/hi22-action-make.png $DESTDIR$KDE_PREFIX/share/icons/hicolor/22x22/actions/hi22-action-make.png
|
||||
:copy {mkdir} ../runtime/kde-tips $DESTDIR$KDE_PREFIX/share/apps/gvim/tips
|
||||
:chmod 644 $DESTDIR$KDE_PREFIX/share/apps/kvim/tips
|
||||
|
||||
# install the icons for KDE, if the directory exists and the icon doesn't.
|
||||
ICON48PATH = $DESTDIR$DATADIR/icons/hicolor/48x48/apps
|
||||
ICON32PATH = $DESTDIR$DATADIR/icons/locolor/32x32/apps
|
||||
|
@ -3055,7 +3055,7 @@ build_drop_cmd(filec, filev, sendReply)
|
||||
mainerr_arg_missing((char_u *)filev[-1]);
|
||||
if (mch_dirname(cwd, MAXPATHL) != OK)
|
||||
return NULL;
|
||||
if ((p = vim_strsave_escaped_ext(cwd, PATH_ESC_CHARS, TRUE)) == NULL)
|
||||
if ((p = vim_strsave_escaped_ext(cwd, PATH_ESC_CHARS, '\\', TRUE)) == NULL)
|
||||
return NULL;
|
||||
ga_init2(&ga, 1, 100);
|
||||
ga_concat(&ga, (char_u *)"<C-\\><C-N>:cd ");
|
||||
|
111
src/message.c
111
src/message.c
@ -20,8 +20,9 @@
|
||||
#endif
|
||||
|
||||
static void reset_last_sourcing __ARGS((void));
|
||||
static char_u *get_emsg_source __ARGS((int other));
|
||||
static char_u *get_emsg_lnum __ARGS((int other));
|
||||
static int other_sourcing_name __ARGS((void));
|
||||
static char_u *get_emsg_source __ARGS((void));
|
||||
static char_u *get_emsg_lnum __ARGS((void));
|
||||
static void add_msg_hist __ARGS((char_u *s, int len, int attr));
|
||||
static void hit_return_msg __ARGS((void));
|
||||
static void msg_home_replace_attr __ARGS((char_u *fname, int attr));
|
||||
@ -398,18 +399,32 @@ reset_last_sourcing()
|
||||
last_sourcing_lnum = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if "sourcing_name" differs from "last_sourcing_name".
|
||||
*/
|
||||
static int
|
||||
other_sourcing_name()
|
||||
{
|
||||
if (sourcing_name != NULL)
|
||||
{
|
||||
if (last_sourcing_name != NULL)
|
||||
return STRCMP(sourcing_name, last_sourcing_name) != 0;
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the message about the source, as used for an error message.
|
||||
* Returns an allocated string with room for one more character.
|
||||
* Returns NULL when no message is to be given.
|
||||
*/
|
||||
static char_u *
|
||||
get_emsg_source(other)
|
||||
int other; /* TRUE when "sourcing_name" differs from last time */
|
||||
get_emsg_source()
|
||||
{
|
||||
char_u *Buf, *p;
|
||||
|
||||
if (sourcing_name != NULL && other)
|
||||
if (sourcing_name != NULL && other_sourcing_name())
|
||||
{
|
||||
p = (char_u *)_("Error detected while processing %s:");
|
||||
Buf = alloc((unsigned)(STRLEN(sourcing_name) + STRLEN(p)));
|
||||
@ -426,15 +441,14 @@ get_emsg_source(other)
|
||||
* Returns NULL when no message is to be given.
|
||||
*/
|
||||
static char_u *
|
||||
get_emsg_lnum(other)
|
||||
int other; /* TRUE when "sourcing_name" differs from last time */
|
||||
get_emsg_lnum()
|
||||
{
|
||||
char_u *Buf, *p;
|
||||
|
||||
/* lnum is 0 when executing a command from the command line
|
||||
* argument, we don't want a line number then */
|
||||
if (sourcing_name != NULL
|
||||
&& (other || sourcing_lnum != last_sourcing_lnum)
|
||||
&& (other_sourcing_name() || sourcing_lnum != last_sourcing_lnum)
|
||||
&& sourcing_lnum != 0)
|
||||
{
|
||||
p = (char_u *)_("line %4ld:");
|
||||
@ -446,6 +460,44 @@ get_emsg_lnum(other)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Display name and line number for the source of an error.
|
||||
* Remember the file name and line number, so that for the next error the info
|
||||
* is only displayed if it changed.
|
||||
*/
|
||||
void
|
||||
msg_source(attr)
|
||||
int attr;
|
||||
{
|
||||
char_u *p;
|
||||
|
||||
++no_wait_return;
|
||||
p = get_emsg_source();
|
||||
if (p != NULL)
|
||||
{
|
||||
msg_attr(p, attr);
|
||||
vim_free(p);
|
||||
}
|
||||
p = get_emsg_lnum();
|
||||
if (p != NULL)
|
||||
{
|
||||
msg_attr(p, hl_attr(HLF_N));
|
||||
vim_free(p);
|
||||
last_sourcing_lnum = sourcing_lnum; /* only once for each line */
|
||||
}
|
||||
|
||||
/* remember the last sourcing name printed, also when it's empty */
|
||||
if (sourcing_name == NULL || other_sourcing_name)
|
||||
{
|
||||
vim_free(last_sourcing_name);
|
||||
if (sourcing_name == NULL)
|
||||
last_sourcing_name = NULL;
|
||||
else
|
||||
last_sourcing_name = vim_strsave(sourcing_name);
|
||||
}
|
||||
--no_wait_return;
|
||||
}
|
||||
|
||||
/*
|
||||
* emsg() - display an error message
|
||||
*
|
||||
@ -459,7 +511,6 @@ emsg(s)
|
||||
char_u *s;
|
||||
{
|
||||
int attr;
|
||||
int other_sourcing_name;
|
||||
char_u *p;
|
||||
#ifdef FEAT_EVAL
|
||||
int ignore = FALSE;
|
||||
@ -489,16 +540,6 @@ emsg(s)
|
||||
)
|
||||
return TRUE;
|
||||
|
||||
if (sourcing_name != NULL)
|
||||
{
|
||||
if (last_sourcing_name != NULL)
|
||||
other_sourcing_name = STRCMP(sourcing_name, last_sourcing_name);
|
||||
else
|
||||
other_sourcing_name = TRUE;
|
||||
}
|
||||
else
|
||||
other_sourcing_name = FALSE;
|
||||
|
||||
if (!emsg_off)
|
||||
{
|
||||
#ifdef FEAT_EVAL
|
||||
@ -527,14 +568,14 @@ emsg(s)
|
||||
if (emsg_silent != 0)
|
||||
{
|
||||
msg_start();
|
||||
p = get_emsg_source(other_sourcing_name);
|
||||
p = get_emsg_source();
|
||||
if (p != NULL)
|
||||
{
|
||||
STRCAT(p, "\n");
|
||||
redir_write(p, -1);
|
||||
vim_free(p);
|
||||
}
|
||||
p = get_emsg_lnum(other_sourcing_name);
|
||||
p = get_emsg_lnum();
|
||||
if (p != NULL)
|
||||
{
|
||||
STRCAT(p, "\n");
|
||||
@ -571,36 +612,12 @@ emsg(s)
|
||||
/*
|
||||
* Display name and line number for the source of the error.
|
||||
*/
|
||||
++no_wait_return;
|
||||
p = get_emsg_source(other_sourcing_name);
|
||||
if (p != NULL)
|
||||
{
|
||||
msg_attr(p, attr);
|
||||
vim_free(p);
|
||||
}
|
||||
p = get_emsg_lnum(other_sourcing_name);
|
||||
if (p != NULL)
|
||||
{
|
||||
msg_attr(p, hl_attr(HLF_N));
|
||||
vim_free(p);
|
||||
last_sourcing_lnum = sourcing_lnum; /* only once for each line */
|
||||
}
|
||||
--no_wait_return;
|
||||
|
||||
/* remember the last sourcing name printed, also when it's empty */
|
||||
if (sourcing_name == NULL || other_sourcing_name)
|
||||
{
|
||||
vim_free(last_sourcing_name);
|
||||
if (sourcing_name == NULL)
|
||||
last_sourcing_name = NULL;
|
||||
else
|
||||
last_sourcing_name = vim_strsave(sourcing_name);
|
||||
}
|
||||
msg_nowait = FALSE; /* wait for this msg */
|
||||
msg_source(attr);
|
||||
|
||||
/*
|
||||
* Display the error message itself.
|
||||
*/
|
||||
msg_nowait = FALSE; /* wait for this msg */
|
||||
return msg_attr(s, attr);
|
||||
}
|
||||
|
||||
|
@ -2770,6 +2770,7 @@ change_warning(col)
|
||||
msg_start();
|
||||
if (msg_row == Rows - 1)
|
||||
msg_col = col;
|
||||
msg_source(hl_attr(HLF_W));
|
||||
MSG_PUTS_ATTR(_("W10: Warning: Changing a readonly file"),
|
||||
hl_attr(HLF_W) | MSG_HIST);
|
||||
msg_clr_eos();
|
||||
|
32
src/misc2.c
32
src/misc2.c
@ -959,30 +959,6 @@ vim_strnsave(string, len)
|
||||
return p;
|
||||
}
|
||||
|
||||
#if 0 /* not used */
|
||||
/*
|
||||
* like vim_strnsave(), but remove backslashes from the string.
|
||||
*/
|
||||
char_u *
|
||||
vim_strnsave_esc(string, len)
|
||||
char_u *string;
|
||||
int len;
|
||||
{
|
||||
char_u *p1, *p2;
|
||||
|
||||
p1 = alloc((unsigned) (len + 1));
|
||||
if (p1 != NULL)
|
||||
{
|
||||
STRNCPY(p1, string, len);
|
||||
p1[len] = NUL;
|
||||
for (p2 = p1; *p2; ++p2)
|
||||
if (*p2 == '\\' && *(p2 + 1) != NUL)
|
||||
STRCPY(p2, p2 + 1);
|
||||
}
|
||||
return p1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Same as vim_strsave(), but any characters found in esc_chars are preceded
|
||||
* by a backslash.
|
||||
@ -992,17 +968,19 @@ vim_strsave_escaped(string, esc_chars)
|
||||
char_u *string;
|
||||
char_u *esc_chars;
|
||||
{
|
||||
return vim_strsave_escaped_ext(string, esc_chars, FALSE);
|
||||
return vim_strsave_escaped_ext(string, esc_chars, '\\', FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Same as vim_strsave_escaped(), but when "bsl" is TRUE also escape
|
||||
* characters where rem_backslash() would remove the backslash.
|
||||
* Escape the characters with "cc".
|
||||
*/
|
||||
char_u *
|
||||
vim_strsave_escaped_ext(string, esc_chars, bsl)
|
||||
vim_strsave_escaped_ext(string, esc_chars, cc, bsl)
|
||||
char_u *string;
|
||||
char_u *esc_chars;
|
||||
int cc;
|
||||
int bsl;
|
||||
{
|
||||
char_u *p;
|
||||
@ -1048,7 +1026,7 @@ vim_strsave_escaped_ext(string, esc_chars, bsl)
|
||||
}
|
||||
#endif
|
||||
if (vim_strchr(esc_chars, *p) != NULL || (bsl && rem_backslash(p)))
|
||||
*p2++ = '\\';
|
||||
*p2++ = cc;
|
||||
*p2++ = *p;
|
||||
}
|
||||
*p2 = NUL;
|
||||
|
@ -1 +1 @@
|
||||
=auto/configure-lastupdate=1084789875.25=configure.in@md5=8f2cf9135e297094c53080c53e541a0f-@buildcheck=2c92a9e4676b2304fab9af16f1664194
|
||||
=auto/configure-lastupdate=1089626426.19-@buildcheck=2c92a9e4676b2304fab9af16f1664194=configure.in@md5=021fe2d41058c80f220721c96886b73b
|
||||
|
@ -1127,7 +1127,12 @@ do_execreg(regname, colon, addcr)
|
||||
}
|
||||
vim_free(new_last_cmdline); /* don't keep the cmdline containing @: */
|
||||
new_last_cmdline = NULL;
|
||||
retval = put_in_typebuf(last_cmdline, TRUE);
|
||||
/* Escape all control characters with a CTRL-V */
|
||||
p = vim_strsave_escaped_ext(last_cmdline,
|
||||
"\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037", Ctrl_V, FALSE);
|
||||
if (p != NULL)
|
||||
retval = put_in_typebuf(p, TRUE);
|
||||
vim_free(p);
|
||||
}
|
||||
#endif
|
||||
#ifdef FEAT_EVAL
|
||||
|
27
src/option.c
27
src/option.c
@ -5302,7 +5302,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
||||
else if (varp == &p_popt)
|
||||
errmsg = parse_list_options(p_popt, printer_opts, OPT_PRINT_NUM_OPTIONS);
|
||||
|
||||
# ifdef FEAT_MBYTE
|
||||
# if defined(FEAT_MBYTE) && defined(FEAT_POSTSCRIPT)
|
||||
else if (varp == &p_pmfn)
|
||||
errmsg = parse_list_options(p_pmfn, mbfont_opts, OPT_MBFONT_NUM_OPTIONS);
|
||||
# endif
|
||||
@ -6399,24 +6399,12 @@ set_bool_option(opt_idx, varp, value, opt_flags)
|
||||
/* 'diff' */
|
||||
else if ((int *)varp == &curwin->w_p_diff)
|
||||
{
|
||||
win_T *wp;
|
||||
|
||||
if (!curwin->w_p_diff)
|
||||
{
|
||||
/* When there is no window showing a diff for this buffer, remove
|
||||
* it from the diffs. */
|
||||
for (wp = firstwin; wp != NULL; wp = wp->w_next)
|
||||
if (wp->w_buffer == curwin->w_buffer && wp->w_p_diff)
|
||||
break;
|
||||
if (wp == NULL)
|
||||
diff_buf_delete(curwin->w_buffer);
|
||||
}
|
||||
else
|
||||
diff_buf_add(curwin->w_buffer);
|
||||
#ifdef FEAT_FOLDING
|
||||
/* May add or remove the buffer from the list of diff buffers. */
|
||||
diff_buf_adjust(curwin);
|
||||
# ifdef FEAT_FOLDING
|
||||
if (foldmethodIsDiff(curwin))
|
||||
foldUpdateAll(curwin);
|
||||
#endif
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -6521,8 +6509,11 @@ set_bool_option(opt_idx, varp, value, opt_flags)
|
||||
/* Arabic requires a utf-8 encoding, inform the user if its not
|
||||
* set. */
|
||||
if (STRCMP(p_enc, "utf-8") != 0)
|
||||
{
|
||||
msg_source(hl_attr(HLF_W));
|
||||
MSG_ATTR(_("W17: Arabic requires UTF-8, do ':set encoding=utf-8'"),
|
||||
hl_attr(HLF_W));
|
||||
}
|
||||
|
||||
# ifdef FEAT_MBYTE
|
||||
/* set 'delcombine' */
|
||||
@ -6837,7 +6828,7 @@ set_num_option(opt_idx, varp, value, errbuf, opt_flags)
|
||||
if (p_uc && !old_value)
|
||||
ml_open_files();
|
||||
}
|
||||
#if defined(FEAT_MZSCHEME) && defined(FEAT_GUI)
|
||||
#ifdef MZSCHEME_GUI_THREADS
|
||||
else if (pp == &p_mzq)
|
||||
mzvim_reset_timer();
|
||||
#endif
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* diff.c */
|
||||
void diff_new_buffer __ARGS((void));
|
||||
void diff_buf_delete __ARGS((buf_T *buf));
|
||||
void diff_buf_adjust __ARGS((win_T *win));
|
||||
void diff_buf_add __ARGS((buf_T *buf));
|
||||
void diff_invalidate __ARGS((void));
|
||||
void diff_mark_adjust __ARGS((linenr_T line1, linenr_T line2, long amount, long amount_after));
|
||||
@ -9,6 +10,7 @@ void ex_diffpatch __ARGS((exarg_T *eap));
|
||||
void ex_diffsplit __ARGS((exarg_T *eap));
|
||||
void ex_diffthis __ARGS((exarg_T *eap));
|
||||
void diff_win_options __ARGS((win_T *wp, int addbuf));
|
||||
void ex_diffoff __ARGS((exarg_T *eap));
|
||||
int diff_check __ARGS((win_T *wp, linenr_T lnum));
|
||||
int diff_check_fill __ARGS((win_T *wp, linenr_T lnum));
|
||||
void diff_set_topline __ARGS((win_T *fromwin, win_T *towin));
|
||||
|
@ -16,4 +16,9 @@ void *mzvim_eval_string __ARGS((char_u *str));
|
||||
struct Scheme_Object *mzvim_apply __ARGS((struct Scheme_Object *, int argc,
|
||||
struct Scheme_Object **));
|
||||
int mzthreads_allowed (void);
|
||||
#ifdef FEAT_GUI_KDE
|
||||
void timer_proc (void);
|
||||
void mzscheme_kde_start_timer (void);
|
||||
void mzscheme_kde_stop_timer (void);
|
||||
#endif
|
||||
/* vim: set ft=c : */
|
||||
|
@ -4,6 +4,7 @@ int msg_attr __ARGS((char_u *s, int attr));
|
||||
int msg_attr_keep __ARGS((char_u *s, int attr, int keep));
|
||||
char_u *msg_strtrunc __ARGS((char_u *s));
|
||||
void trunc_string __ARGS((char_u *s, char_u *buf, int room));
|
||||
void msg_source __ARGS((int attr));
|
||||
int emsg __ARGS((char_u *s));
|
||||
int emsg2 __ARGS((char_u *s, char_u *a1));
|
||||
int emsg3 __ARGS((char_u *s, char_u *a1, char_u *a2));
|
||||
|
@ -17,9 +17,7 @@ void check_cursor __ARGS((void));
|
||||
void adjust_cursor_col __ARGS((void));
|
||||
int leftcol_changed __ARGS((void));
|
||||
void vim_mem_profile_dump __ARGS((void));
|
||||
#ifndef __cplusplus
|
||||
char_u *alloc __ARGS((unsigned size));
|
||||
#endif
|
||||
char_u *alloc_clear __ARGS((unsigned size));
|
||||
char_u *alloc_check __ARGS((unsigned size));
|
||||
char_u *lalloc_clear __ARGS((long_u size, int message));
|
||||
@ -29,7 +27,7 @@ void do_outofmem_msg __ARGS((long_u size));
|
||||
char_u *vim_strsave __ARGS((char_u *string));
|
||||
char_u *vim_strnsave __ARGS((char_u *string, int len));
|
||||
char_u *vim_strsave_escaped __ARGS((char_u *string, char_u *esc_chars));
|
||||
char_u *vim_strsave_escaped_ext __ARGS((char_u *string, char_u *esc_chars, int bsl));
|
||||
char_u *vim_strsave_escaped_ext __ARGS((char_u *string, char_u *esc_chars, int cc, int bsl));
|
||||
char_u *vim_strsave_up __ARGS((char_u *string));
|
||||
char_u *vim_strnsave_up __ARGS((char_u *string, int len));
|
||||
void vim_strup __ARGS((char_u *p));
|
||||
|
@ -7918,6 +7918,7 @@ syn_add_group(name)
|
||||
{
|
||||
/* This is an error, but since there previously was no check only
|
||||
* give a warning. */
|
||||
msg_source(hl_attr(HLF_W));
|
||||
MSG(_("W18: Invalid character in group name"));
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user