# HG changeset patch # User vimboss # Date 1140127862 0 # Node ID 83a006f81bac04bf9b975347bf8d6bddc7996eb6 # Parent f892bda292a89e7592ccee5fc0e296659066d7c5 updated for version 7.0199 diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 7.0aa. Last change: 2006 Jan 23 +*syntax.txt* For Vim version 7.0aa. Last change: 2006 Feb 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -4257,9 +4257,8 @@ But for using 16 colors in an rxvt these < *colortest.vim* To test your color setup, a file has been included in the Vim distribution. -To use it, execute these commands: > - :e $VIMRUNTIME/syntax/colortest.vim - :so % +To use it, execute this command: > + :runtime syntax/colortest.vim Some versions of xterm (and other terminals, like the Linux console) can output lighter foreground colors, even though the number of colors is defined diff --git a/runtime/doc/tips.txt b/runtime/doc/tips.txt --- a/runtime/doc/tips.txt +++ b/runtime/doc/tips.txt @@ -1,4 +1,4 @@ -*tips.txt* For Vim version 7.0aa. Last change: 2006 Feb 13 +*tips.txt* For Vim version 7.0aa. Last change: 2006 Feb 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -494,7 +494,7 @@ Note that it doesn't recognize strings o endif endfunction - autocmd CursorMoved * call s:Highlight_Matching_Paren() + autocmd CursorMoved,CursorMovedI * call s:Highlight_Matching_Paren() autocmd InsertEnter * match none < diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.0aa. Last change: 2006 Feb 15 +*todo.txt* For Vim version 7.0aa. Last change: 2006 Feb 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -32,20 +32,23 @@ be worked on, but only if you sponsor Vi Support WINDOW TABS. Works like several pages, each with their own split windows. Let's call them "tab pages". - - Mouse click in tab name should select that tab. - - line at top of frame with tabs. - for the name ignore the help window, unless it's the only one). - Add a number for the window count? - Add a '+' if one of the windows is modified? - Add 'tabtext' option, like 'statusline'. - Add an "X" to close the current tab (like firefox). - - When deleting a buffer also close windows in other tab pages. - - check all places where firstwin and lastwin are used + - check all places where lastwin is used + - check all places where win_valid() is used + - check all places where last_window() is used + - ":tabclose N" close tab N + - Add ":tabonly" - close all other tabs. - check all places wheren only_one_window() is used. - Add tabpage(): returns current tab page number. + - ":tabsplit" makes a copy of the current tab page. + - Add TabLeavePre and TabEnterPost autocommands + - line at top of frame with tabs. + Add 'tabtext' option, like 'statusline'. + - make a diff for each tab page separately. - E999 - - ":tabclose N" close tab N - docs: + General remark: commands that work on windows only work on the windows + in the current tab page. Including :windo. + Session file only contains the current tab page. :tabedit :tabfind :tab N @@ -57,6 +60,12 @@ windows. Let's call them "tab pages". next one. Hint in docs: To mess with another buffer, without changing the window layout, do this in another tab. 'tabline' values 0/1/2 + mouse click in tabline: + select a tab page + X closes current tab page + :argall and :ball only opens window for buffers that are not in any + window in any tab page + :diffoff only in the current tab page - add GUI Tabs for some systems. Patch for GTK 1.2 passed on by Christian Michon, 2004 Jan 6. Simple patch for GTK by Luis M (nov 7). @@ -65,11 +74,15 @@ windows. Let's call them "tab pages". Crash with X command server (Ciaran McCreesh). -Ctags still hasn't included the patch... +Ctags still hasn't included the patch. Darren is looking for someone to do +maintanance. "fsutil hardlink" can create a hard link on an NTFS file system. (Daniel Einspanjer) What library function can detect that? +Win32: use GetFileInformationByHandle() to detect hard links on NTFS? +(George Reilly) + spelling: - Also use the spelling dictionary for dictionary completion. When 'dictionary' is empty and/or when "kspell" is in 'complete'. diff --git a/runtime/doc/usr_06.txt b/runtime/doc/usr_06.txt --- a/runtime/doc/usr_06.txt +++ b/runtime/doc/usr_06.txt @@ -1,4 +1,4 @@ -*usr_06.txt* For Vim version 7.0aa. Last change: 2002 Jul 14 +*usr_06.txt* For Vim version 7.0aa. Last change: 2006 Feb 16 VIM USER MANUAL - by Bram Moolenaar @@ -179,10 +179,9 @@ 3. Tell Vim to always use your color sch colorscheme mine If you want to see what the most often used color combinations look like, use -these commands: > +this command: > - :edit $VIMRUNTIME/syntax/colortest.vim - :source % + :runtime syntax/colortest.vim You will see text in various color combinations. You can check which ones are readable and look nice. diff --git a/runtime/doc/version7.txt b/runtime/doc/version7.txt --- a/runtime/doc/version7.txt +++ b/runtime/doc/version7.txt @@ -1,4 +1,4 @@ -*version7.txt* For Vim version 7.0aa. Last change: 2006 Feb 14 +*version7.txt* For Vim version 7.0aa. Last change: 2006 Feb 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1010,6 +1010,9 @@ asdf.c" when it sets the filename for th Insert mode completion for whole lines now also searches unloaded buffers. +The colortest.vim script can now be invoked directly with ":source" or +":runtime". + ============================================================================== COMPILE TIME CHANGES *compile-changes-7* @@ -1696,4 +1699,6 @@ event that removed the balloon again. I 'titleold' was included in ":mkexrc" and ":mksession" files. +":set background&" didn't use the same logic as was used when starting up. + vim:tw=78:ts=8:ft=help:norl: diff --git a/runtime/ftplugin/vhdl.vim b/runtime/ftplugin/vhdl.vim --- a/runtime/ftplugin/vhdl.vim +++ b/runtime/ftplugin/vhdl.vim @@ -1,8 +1,8 @@ -" Vim filetype plugin file -" Language: VHDL -" Maintainer: R.Shankar (shankar at txc.stpn.soft.net) -" Last Change: Tue Oct 8 - +" VHDL filetype plugin +" Language: VHDL +" Maintainer: R.Shankar +" Modified By: Gerald Lai +" Last Change: 2006 Feb 16 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -20,7 +20,7 @@ let b:did_ftplugin = 1 "setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// " Format comments to be up to 78 characters long -setlocal tw=75 +"setlocal tw=75 set cpo-=C @@ -34,8 +34,51 @@ set cpo-=C if ! exists("b:match_words") && exists("loaded_matchit") let b:match_ignorecase=1 let s:notend = '\%(\:\:\:\\s\+\,' . - \ s:notend . '\:\:\\s\+\,' . - \ s:notend . '\:\\s\+\' + let b:match_words = + \ s:notend.'\:\:\:\,'. + \ s:notend.'\:\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\,'. + \ s:notend.'\:\' endif + +" count repeat +function! CountWrapper(cmd) + let i = v:count1 + if a:cmd[0] == ":" + while i > 0 + execute a:cmd + let i = i - 1 + endwhile + else + execute "normal! gv\" + execute "normal ".i.a:cmd + let curcol = col(".") + let curline = line(".") + normal! gv + call cursor(curline, curcol) + endif +endfunction + +" explore motion +" keywords: "architecture", "block", "configuration", "component", "entity", "function", "package", "procedure", "process", "record", "units" +let b:vhdl_explore = '\%(architecture\|block\|configuration\|component\|entity\|function\|package\|procedure\|process\|record\|units\)' +noremap [[ :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%^","bW")') +noremap ]] :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%$","W")') +noremap [] :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%^","bW")') +noremap ][ :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%$","W")') +vnoremap [[ :cal CountWrapper('[[') +vnoremap ]] :cal CountWrapper(']]') +vnoremap [] :cal CountWrapper('[]') +vnoremap ][ :cal CountWrapper('][') diff --git a/runtime/syntax/colortest.vim b/runtime/syntax/colortest.vim --- a/runtime/syntax/colortest.vim +++ b/runtime/syntax/colortest.vim @@ -1,7 +1,7 @@ " Vim script for testing colors " Maintainer: Bram Moolenaar " Contributors: Rafael Garcia-Suarez, Charles Campbell -" Last Change: 2001 Jul 28 +" Last Change: 2006 Feb 16 " edit this file, then do ":source %", and check if the colors match @@ -52,6 +52,15 @@ " lightcyan lightcyan_on_white white_on_lightcyan " lightcyan_on_black black_on_lightcyan +" Open this file in a window if it isn't edited yet. +" Use the current window if it's empty. +if &mod || line('$') != 1 || getline(1) != '' + new +endif +if expand('%:p') != expand(':p') + exe "edit " . expand('') +endif + syn clear 8 while search("_on_", "W") < 55 @@ -60,6 +69,5 @@ while search("_on_", "W") < 55 exec 'hi col_'.col1.'_'.col2.' ctermfg='.col1.' guifg='.col1.' ctermbg='.col2.' guibg='.col2 exec 'syn keyword col_'.col1.'_'.col2.' '.col1.'_on_'.col2 endwhile -8,55g/^" \a/exec 'hi col_'.expand("").' ctermfg='.expand("").' guifg='.expand("")| - \ exec 'syn keyword col_'.expand("")." ".expand("") +8,54g/^" \a/exec 'hi col_'.expand("").' ctermfg='.expand("").' guifg='.expand("")| exec 'syn keyword col_'.expand("")." ".expand("") nohlsearch diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -1,8 +1,8 @@ " Vim syntax file " Language: Vim 7.0 script " Maintainer: Dr. Charles E. Campbell, Jr. -" Last Change: February 07, 2006 -" Version: 7.0-25 +" Last Change: February 15, 2006 +" Version: 7.0-26 " Automatically generated keyword lists: {{{1 " Quit when a syntax file was already loaded {{{2 @@ -16,11 +16,11 @@ syn keyword vimTodo contained COMBAK NOT syn cluster vimCommentGroup contains=vimTodo,@Spell " 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] caddb[uffer] cad[dexpr] caddf[ile] cal[l] cat[ch] cb[uffer] cc ccl[ose] cd ce[nter] cex[pr] 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[arks] diffg[et] diffoff diffpatch diffpu[t] diffsplit diffthis diffu[pdate] 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* endfo[r] endf[unction] en[dif] endt[ry] endw[hile] ene[w] ex exi[t] Explore exu[sage] f[ile] files filetype fina[lly] fin[d] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] folddoc[losed] foldd[oopen] foldo[pen] for fu[nction] g[lobal] go[to] gr[ep] grepa[dd] ha[rdcopy] h[elp] helpf[ind] helpg[rep] helpt[ags] Hexplore 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 keepalt keepj[umps] kee[pmarks] laddb[uffer] lad[dexpr] laddf[ile] lan[guage] la[st] lb[uffer] lc[d] lch[dir] lcl[ose] le[ft] lefta[bove] lex[pr] lf[ile] lfir[st] lg[etfile] lgr[ep] lgrepa[dd] l[ist] ll lla[st] lli[st] lmak[e] lm[ap] lmapc[lear] lnew[er] lne[xt] lN[ext] lnf[ile] lNf[ile] ln[oremap] lo[adview] loc[kmarks] lockv[ar] lol[der] lop[en] lpf[ile] lp[revious] lr[ewind] ls lt[ag] lu[nmap] lv[imgrep] lvimgrepa[dd] lw[indow] mak[e] ma[rk] marks mat[ch] menut[ranslate] mk[exrc] mks[ession] mksp[ell] mkvie[w] mkv[imrc] mod[e] m[ove] mzf[ile] mz[scheme] nbkey NetrwSettings new n[ext] N[ext] nmapc[lear] noh[lsearch] norea[bbrev] 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] profd[el] prof[ile] 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] san[dbox] 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] Sexplore 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] sor[t] so[urce] spelld[ump] spe[llgood] spellr[epall] spellw[rong] sp[lit] spr[evious] sre[wind] sta[g] startg[replace] 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] unlo[ckvar] unm[ap] up[date] verb[ose] ve[rsion] vert[ical] Vexplore v[global] vie[w] vim[grep] vimgrepa[dd] vi[sual] viu[sage] vmapc[lear] vne[w] vs[plit] vu[nmap] wa[ll] wh[ile] winc[md] windo winp[os] win[size] wn[ext] wN[ext] wp[revious] wq wqa[ll] w[rite] ws[verb] wv[iminfo] X xa[ll] x[it] XMLent XMLns 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] caddb[uffer] cad[dexpr] caddf[ile] cal[l] cat[ch] cb[uffer] cc ccl[ose] cd ce[nter] cex[pr] 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[arks] diffg[et] diffoff diffpatch diffpu[t] diffsplit diffthis diffu[pdate] 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* endfo[r] endf[unction] en[dif] endt[ry] endw[hile] ene[w] ex exi[t] Explore exu[sage] f[ile] files filetype fina[lly] fin[d] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] folddoc[losed] foldd[oopen] foldo[pen] for fu[nction] g[lobal] go[to] gr[ep] grepa[dd] ha[rdcopy] h[elp] helpf[ind] helpg[rep] helpt[ags] Hexplore 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 keepalt keepj[umps] kee[pmarks] laddb[uffer] lad[dexpr] laddf[ile] lan[guage] la[st] lb[uffer] lc[d] lch[dir] lcl[ose] le[ft] lefta[bove] lex[pr] lf[ile] lfir[st] lg[etfile] lgr[ep] lgrepa[dd] lh[elpgrep] l[ist] ll lla[st] lli[st] lmak[e] lm[ap] lmapc[lear] lnew[er] lne[xt] lN[ext] lnf[ile] lNf[ile] ln[oremap] lo[adview] loc[kmarks] lockv[ar] lol[der] lop[en] lpf[ile] lp[revious] lr[ewind] ls lt[ag] lu[nmap] lv[imgrep] lvimgrepa[dd] lw[indow] mak[e] ma[rk] marks mat[ch] menut[ranslate] mk[exrc] mks[ession] mksp[ell] mkvie[w] mkv[imrc] mod[e] m[ove] mzf[ile] mz[scheme] nbkey NetrwSettings new n[ext] N[ext] nmapc[lear] noh[lsearch] norea[bbrev] 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] profd[el] prof[ile] 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] san[dbox] 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] Sexplore 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] sor[t] so[urce] spelld[ump] spe[llgood] spellr[epall] spellw[rong] sp[lit] spr[evious] sre[wind] sta[g] startg[replace] 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] unlo[ckvar] unm[ap] up[date] verb[ose] ve[rsion] vert[ical] Vexplore v[global] vie[w] vim[grep] vimgrepa[dd] vi[sual] viu[sage] vmapc[lear] vne[w] vs[plit] vu[nmap] wa[ll] wh[ile] winc[md] windo winp[os] win[size] wn[ext] wN[ext] wp[revious] wq wqa[ll] w[rite] ws[verb] wv[iminfo] X xa[ll] x[it] XMLent XMLns y[ank] syn match vimCommand contained "\