summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0687: "export def" does not work in a nested blockv9.0.0687Bram Moolenaar2022-10-071-8/+9
| | | | | | Problem: "export def" does not work in a nested block. Solution: Do not handle "export" with a separate function but in the same command stack. (closes #11304)
* patch 9.0.0683: cannot specify a time for :echowindowv9.0.0683Bram Moolenaar2022-10-071-2/+2
| | | | | | Problem: Cannot specify a time for :echowindow. Solution: A count can be used to specify the display time. Add popup_findecho().
* patch 9.0.0370: cleaning up afterwards can make a function messyv9.0.0370Bram Moolenaar2022-09-031-0/+3
| | | | | Problem: Cleaning up afterwards can make a function messy. Solution: Add the :defer command.
* patch 9.0.0342: ":wincmd =" equalizes in two directionsv9.0.0342Bram Moolenaar2022-08-311-0/+3
| | | | | | Problem: ":wincmd =" equalizes in two directions. Solution: Make ":vertical wincmd =" equalize vertically only and ":horizontal wincmd =" equalize horizontally only.
* patch 9.0.0321: cannot use the message popup window directlyv9.0.0321Bram Moolenaar2022-08-291-0/+3
| | | | | Problem: Cannot use the message popup window directly. Solution: Add ":echowindow".
* patch 8.2.4989: cannot specify a function name for :defcompilev8.2.4989Bram Moolenaar2022-05-211-1/+1
| | | | | Problem: Cannot specify a function name for :defcompile. Solution: Implement a function name argument for :defcompile.
* patch 8.2.4617: no completion for :scriptnamesv8.2.4617Yegappan Lakshmanan2022-03-241-1/+1
| | | | | | Problem: No completion for :scriptnames. Solution: Implement :scriptnames completion. (Yegappan Lakshmanan, closes #10005)
* patch 8.2.4594: need to write script to a file to be able to source themv8.2.4594Yegappan Lakshmanan2022-03-191-2/+2
| | | | | | Problem: Need to write script to a file to be able to source them. Solution: Make ":source" use lines from the current buffer. (Yegappan Lakshmanan et al., closes #9967)
* patch 8.2.4519: Vim9: Can still use ":fini" and ":finis" for ":finish"v8.2.4519Bram Moolenaar2022-03-061-1/+1
| | | | | Problem: Vim9: Can still use ":fini" and ":finis" for ":finish". Solution: Require using ":finish".
* patch 8.2.4514: Vim9: some flow commands can be shortenedv8.2.4514Bram Moolenaar2022-03-051-5/+5
| | | | | | Problem: Vim9: some flow commands can be shortened. Solution: Also require using the full name for ":return", ":enddef", ":continue", ":export" and ":import".
* patch 8.2.4510: Vim9: shortening commands leads to confusing scriptv8.2.4510Bram Moolenaar2022-03-051-14/+15
| | | | | | | | | | Problem: Vim9: shortening commands leads to confusing script. Solution: In Vim9 script require at least ":cont" for ":continue", "const" instead of "cons", "break" instead of "brea", "catch" instead of "cat", "else" instead of "el" "elseif" instead of "elsei" "endfor" instead of "endfo" "endif" instead of "en" "endtry" instead of "endt", "finally" instead of "fina", "throw" instead of "th", "while" instead of "wh".
* patch 8.2.3888: the argument list may contain duplicatesv8.2.3888Nir Lichtman2021-12-241-0/+3
| | | | | Problem: The argument list may contain duplicates. Solution: Add the :argdedeupe command. (Nir Lichtman, closes #6235)
* patch 8.2.3835: the inline-function example does not workv8.2.3835Bram Moolenaar2021-12-171-1/+1
| | | | | Problem: The inline-function example does not work. Solution: Drop ":let". Add EX_EXPR_ARG to CMD_var. (issue #9352)
* patch 8.2.3817: Vim9: Not using NL as command end does not work for :autocmdv8.2.3817Bram Moolenaar2021-12-151-20/+21
| | | | | Problem: Vim9: Not using NL as command end does not work for :autocmd. Solution: Only ignore NL for commands with an expression argument.
* patch 8.2.3683: Vim9: cannot use in :...do commandsv8.2.3683Bram Moolenaar2021-11-271-8/+8
| | | | | Problem: Vim9: cannot use in :...do commands. Solution: Add EX_EXPAND to the commands. (closes #9232)
* patch 8.2.3584: "verbose set efm" reports location of the :compiler commandv8.2.3584Bram Moolenaar2021-11-121-0/+1
| | | | | | | Problem: "verbose set efm" reports the location of the :compiler command. (Gary Johnson) Solution: Add the "-keepscript" argument to :command and use it when defining CompilerSet.
* patch 8.2.3400: ":z!" is not supportedv8.2.3400Dominique Pelle2021-09-041-1/+1
| | | | | | Problem: ":z!" is not supported. Solution: Make ":z!" work and add tests. (Dominique Pellé, closes #8836) Use display height instead of current window height.
* patch 8.2.3279: Vim9: cannot use block in cmdline windowv8.2.3279Bram Moolenaar2021-08-021-1/+1
| | | | | Problem: Vim9: cannot use block in cmdline window. Solution: Add EX_CMDWIN to the CMD_block flags. (closes #8689)
* patch 8.2.3223: Vim: using {} block in autoloade omnifunc failsv8.2.3223Bram Moolenaar2021-07-251-1/+1
| | | | | Problem: Vim: using {} block in autoloade omnifunc fails. Solution: Allow using {} block when text is locked. (closes #8631)
* patch 8.2.3047: increment and decrement don't allow for next commandv8.2.3047Bram Moolenaar2021-06-251-2/+2
| | | | | Problem: Increment and decrement don't allow for next command. Solution: Allow for comment and next command. (closes #8442)
* patch 8.2.2982: Vim9: future commands are not reserved yetv8.2.2982Bram Moolenaar2021-06-121-0/+12
| | | | | | Problem: Vim9: future commands are not reserved yet. Solution: Add commands to be implemented later. Make "this" a reserved name.
* patch 8.2.2956: Vim9: need to plan for future additionsv8.2.2956Bram Moolenaar2021-06-061-0/+15
| | | | | Problem: Vim9: need to plan for future additions. Solution: Reserve commands for future use: :type, :class, :enum.
* patch 8.2.2806: Vim9: using "++nr" as a command might not workv8.2.2806Bram Moolenaar2021-04-241-0/+8
| | | | | | Problem: Vim9: using "++nr" as a command might not work. Solution: Do not recognize "++" and "--" in a following line as addition or subtraction.
* patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 scriptv8.2.2805Bram Moolenaar2021-04-241-0/+3
| | | | | Problem: Vim9: cannot use legacy syntax in Vim9 script. Solution: Add the :legacy command.
* patch 8.2.2638: cannot write a message to the terminal from the GUIv8.2.2638Bram Moolenaar2021-03-221-0/+3
| | | | | Problem: Cannot write a message to the terminal from the GUI. Solution: Add :echoconsole and use it in the test runner. (issue #7975)
* patch 8.2.2553: Vim9: Cannot put "|" after "{"v8.2.2553Bram Moolenaar2021-02-261-1/+1
| | | | | Problem: Vim9: Cannot put "|" after "{". Solution: Add the EX_TRLBAR flag. (issue #7904)
* patch 8.2.2552: Vim9: no reason to consider "{{{{{{{{" a commandv8.2.2552Bram Moolenaar2021-02-261-1/+1
| | | | | Problem: Vim9: no reason to consider "{{{{{{{{" a command. Solution: Just use "{". (issue #7904)
* patch 8.2.2531: Vim9: the :k command is obscurev8.2.2531Bram Moolenaar2021-02-191-1/+1
| | | | | Problem: Vim9: the :k command is obscure. Solution: Disallow using :k, can use :mark instead. (closes #7874)
* patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some placesv8.2.2511Bram Moolenaar2021-02-141-0/+3
| | | | | | Problem: Vim9: cannot use Vim9 script syntax in some places. Solution: Add the :vim9cmd command modifier. Incompatible: Makes ":vim9" mean ":vim9cmd" instead of ":vim9script".
* patch 8.2.2400: Vim9: compiled functions are not profiledv8.2.2400Bram Moolenaar2021-01-241-1/+1
| | | | | | Problem: Vim9: compiled functions are not profiled. Solution: Add initial changes to profile compiled functions. Fix that a script-local function was hard to debug.
* patch 8.2.2366: when using ":sleep" the cursor is always displayedv8.2.2366Bram Moolenaar2021-01-161-1/+1
| | | | | | Problem: When using ":sleep" the cursor is always displayed. Solution: Do not display the cursor when using ":sleep!". (Jeremy Lerner, closes #7688)
* patch 8.2.2222: Vim9: cannot keep script variables when reloadingv8.2.2222Bram Moolenaar2020-12-261-1/+1
| | | | | Problem: Vim9: cannot keep script variables when reloading. Solution: Add the "noclear" argument to :vim9script.
* patch 8.2.2182: Vim9: value of 'magic' is still relevantv8.2.2182Bram Moolenaar2020-12-211-2/+2
| | | | | Problem: Vim9: value of 'magic' is still relevant. Solution: Always behave like 'magic' is on in Vim9 script (closes #7509)
* patch 8.2.2138: Vim9: "exit_cb" causes Vim to exitv8.2.2138Bram Moolenaar2020-12-131-8/+9
| | | | | | Problem: Vim9: "exit_cb" causes Vim to exit. Solution: Require white space after a command in Vim9 script. (closes #7467) Also fix that Vim9 style heredoc was not always recognized.
* patch 8.2.1984: cannot use :vimgrep in omni completionv8.2.1984Bram Moolenaar2020-11-141-4/+4
| | | | | | Problem: Cannot use :vimgrep in omni completion, causing C completion to fail. Solution: Add the EX_LOCK_OK flag to :vimgrep. (closes #7292)
* patch 8.2.1967: the session file does not restore the alternate filev8.2.1967Bram Moolenaar2020-11-071-0/+3
| | | | | | | Problem: The session file does not restore the alternate file. Solution: Add ":balt". Works like ":badd" and also sets the buffer as the alternate file. Use it in the session file. (closes #7269, closes #6714)
* patch 8.2.1897: command modifiers are saved and set inconsistentlyv8.2.1897Bram Moolenaar2020-10-241-6/+0
| | | | | | Problem: Command modifiers are saved and set inconsistently. Solution: Separate parsing and applying command modifiers. Save values in cmdmod_T.
* patch 8.2.1826: Vim9: cannot use a {} block at script levelv8.2.1826Bram Moolenaar2020-10-101-0/+6
| | | | | Problem: Vim9: cannot use a {} block at script level. Solution: Recognize a {} block.
* patch 8.2.1744: Vim9: using ":const!" is weirdv8.2.1744Bram Moolenaar2020-09-261-0/+6
| | | | | | Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
* patch 8.2.1685: Vim9: cannot declare a constant valuev8.2.1685Bram Moolenaar2020-09-141-1/+1
| | | | | Problem: Vim9: cannot declare a constant value. Solution: Introduce ":const!".
* patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491Bram Moolenaar2020-08-201-1/+1
| | | | | | Problem: Vim9: crash when compiling heredoc lines start with comment. Solution: Skip over NULL pointers. Do not remove comment and empty lines when fetching function lines. (closes #6743)
* patch 8.2.1436: function implementing :substitute has unexpected namev8.2.1436Bram Moolenaar2020-08-121-3/+3
| | | | | Problem: Function implementing :substitute has unexpected name. Solution: Rename from do_sub() to ex_substitute().
* patch 8.2.1403: Vim9: Vim highlighting may fail in cmdline windowv8.2.1403Bram Moolenaar2020-08-091-3/+3
| | | | | | | Problem: Vim9: Vim highlighting fails in cmdline window if it uses Vim9 commands. Solution: Allow using :vim9script, :import and :export while in the cmdline window. (closes #6656)
* patch 8.2.1376: Vim9: expression mapping causes error for using :importv8.2.1376Bram Moolenaar2020-08-051-2/+2
| | | | | Problem: Vim9: expression mapping causes error for using :import. Solution: Add EX_LOCK_OK to :import and :export. (closes 3606)
* patch 8.2.1294: Vim9: error when using vim9script in TextYankPostv8.2.1294Bram Moolenaar2020-07-251-320/+321
| | | | | | Problem: Vim9: error when using vim9script in TextYankPost. Solution: Use EX_LOCKOK instead of the EX_CMDWIN flag for command that can be used when text is locked. (closes #6529)
* patch 8.2.1050: missing change in structv8.2.1050Bram Moolenaar2020-06-241-0/+3
| | | | | Problem: Missing change in struct. Solution: Add missing change.
* patch 8.2.0822: Vim9: code left over from discovery phasev8.2.0822Bram Moolenaar2020-05-251-1/+1
| | | | | Problem: Vim9: code left over from discovery phase. Solution: Remove the dead code.
* patch 8.2.0818: Vim9: using a discovery phase doesn't work wellv8.2.0818Bram Moolenaar2020-05-241-0/+3
| | | | | | Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier.
* patch 8.2.0641: Vim9: not expanded in :hardcopy and syn-includev8.2.0641Bram Moolenaar2020-04-261-1/+3
| | | | | Problem: Vim9: not expanded in :hardcopy and "syntax include". Solution: Add the EX_EXPAND flag. Expend "syntax include".
* patch 8.2.0593: finding a user command is not optimalv8.2.0593Bram Moolenaar2020-04-181-4/+6
| | | | | Problem: Finding a user command is not optimal. Solution: Start further down in the list of commands.