]> granicus.if.org Git - vim/commitdiff
updated for version 7.0193
authorBram Moolenaar <Bram@vim.org>
Sat, 4 Feb 2006 22:37:47 +0000 (22:37 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Feb 2006 22:37:47 +0000 (22:37 +0000)
runtime/doc/index.txt
src/ex_docmd.c

index 5cc2f411a0e072ea1460ecf1b7517cb32277a80b..567758669b9a969921a032b6d7848463fbf81c6f 100644 (file)
@@ -1069,6 +1069,7 @@ The commands are sorted on the non-optional part of their name.
 |: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-optional part of their name.
 |: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-optional part of their name.
 |: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-optional part of their name.
 |: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
index ec84844caf389779e55dc6b4d94184cdae5f16f5..098f42ca897d315d2251a21106ebf1416495a9fc 100644 (file)
@@ -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