# HG changeset patch # User vimboss # Date 1139092667 0 # Node ID 7566e1cda7bf3903879ae7cb75b6bdf63f99a3e8 # Parent 441f938ea9e90e07a05e55fef17ab22d2607f5f3 updated for version 7.0193 diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1069,6 +1069,7 @@ The commands are sorted on the non-optio |:cNfile| :cNf[ile] go to last error in previous file |:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode |:cabclear| :cabc[lear] clear all abbreviations for Command-line mode +|:caddbuffer| :caddb[uffer] add errors from buffer |:caddexpr| :cad[dexpr] add errors from expr |:caddfile| :caddf[ile] add error message to current quickfix list |:call| :cal[l] call a function @@ -1217,6 +1218,7 @@ The commands are sorted on the non-optio |:lNfile| :lNf[ile] go to last entry in previous file |:list| :l[ist] print lines |:laddexpr| :lad[dexpr] add locations from expr +|:laddbuffer| :laddb[uffer] add locations from buffer |:laddfile| :laddf[ile] add locations to current location list |:last| :la[st] go to the last file in the argument list |:language| :lan[guage] set the language (locale) @@ -1231,9 +1233,13 @@ The commands are sorted on the non-optio |:lfile| :lf[ile] read file with locations and jump to first |:lfirst| :lfir[st] go to the specified location, default first one |:lgetfile| :lg[etfile] read file with locations +|:lgrep| :lgr[ep] run 'grepprg' and jump to first match +|:lgrepadd| :lgrepa[dd] like :grep, but append to current list |:ll| :ll go to specific location |:llast| :lla[st] go to the specified location, default last one |:llist| :lli[st] list all locations +|:lmake| :lmak[e] execute external command 'makeprg' and parse + error messages |:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode |:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode |:lnext| :lne[xt] go to next location @@ -1253,6 +1259,8 @@ The commands are sorted on the non-optio |:ltag| :lt[ag] jump to tag and add matching tags to the location list |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode +|:lvimgrep| :lv[imgrep] search for pattern in files +|:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list |:lwindow| :lw[indow] open or close location window |:move| :m[ove] move lines |:mark| :ma[rk] set a mark diff --git a/src/ex_docmd.c b/src/ex_docmd.c --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -4001,8 +4001,10 @@ skip_grep_pat(eap) { char_u *p = eap->arg; - if (*p != NUL && (eap->cmdidx == CMD_vimgrep - || eap->cmdidx == CMD_vimgrepadd || grep_internal(eap->cmdidx))) + if (*p != NUL && (eap->cmdidx == CMD_vimgrep || eap->cmdidx == CMD_lvimgrep + || eap->cmdidx == CMD_vimgrepadd + || eap->cmdidx == CMD_lvimgrepadd + || grep_internal(eap->cmdidx))) { p = skip_vimgrep_pat(p, NULL, NULL); if (p == NULL) @@ -4031,11 +4033,14 @@ replace_makeprg(eap, p, cmdlinep) /* * Don't do it when ":vimgrep" is used for ":grep". */ - if ((eap->cmdidx == CMD_make - || eap->cmdidx == CMD_grep || eap->cmdidx == CMD_grepadd) + if ((eap->cmdidx == CMD_make || eap->cmdidx == CMD_lmake + || eap->cmdidx == CMD_grep || eap->cmdidx == CMD_lgrep + || eap->cmdidx == CMD_grepadd + || eap->cmdidx == CMD_lgrepadd) && !grep_internal(eap->cmdidx)) { - if (eap->cmdidx == CMD_grep || eap->cmdidx == CMD_grepadd) + if (eap->cmdidx == CMD_grep || eap->cmdidx == CMD_lgrep + || eap->cmdidx == CMD_grepadd || eap->cmdidx == CMD_lgrepadd) { if (*curbuf->b_p_gp == NUL) program = p_gp; @@ -4174,8 +4179,11 @@ expand_filename(eap, cmdlinep, errormsgp if (!eap->usefilter && eap->cmdidx != CMD_bang && eap->cmdidx != CMD_make + && eap->cmdidx != CMD_lmake && eap->cmdidx != CMD_grep + && eap->cmdidx != CMD_lgrep && eap->cmdidx != CMD_grepadd + && eap->cmdidx != CMD_lgrepadd #ifndef UNIX && !(eap->argt & NOSPC) #endif