summaryrefslogtreecommitdiffstats
path: root/runtime/autoload
AgeCommit message (Collapse)Author
2023-10-27runtime(netrw): don't echo empty lines (#13431)nwounkn
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-23patch 9.0.2062: Janet files are not recognisedv9.0.2062Doug Kearns
Problem: Janet files are not recognised Solution: Add filename and shebang detection (without adding an extra filetype plugin) Those are used by the Janet language: http://www.janet-lang.org closes: #13400 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-10-16runtime: Fix more typos (#13354)Viktor Szépe
* Fix more typos * Fix typos in ignored runtime/ directory Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-05runtime(netrw): diff (`df`) may open the wrong window (#13275)KSR-Yasuda
closes: #11359 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-05runtime(netrw): Update `.netrwbook` immediately on bookmark change (#13276)KSR-Yasuda
closes: #9738 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-04runtime(netrw): error when trying to :bd unloaded bufferyasuda
closes: #13215 closes: #13082 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-17runtime(netrw): fix filetype detection for remote editing filesChristian Brabandt
closes: #12990 closes: #12992 this partially reverses commit 71badf9 by commenting out the line that intentionally sets the filetype to an empty string. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-16runtime(man): Man plugin does not respect 'gdefault'Yee Cheng Chin
Fix the issue introduced by #12557. `:substitute` commands in plugins need to take into account whether `gdefault` is set or not because that depends on the user. closes: #13097 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-12runtime(rust): sync rust runtime files with upstream (#13075)Gregory Anders
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-08runtime(tohtml): Update TOhtml to version 9.0v2 (#13050)fritzophrenic
Modified behavior: - Change default value of g:html_use_input_for_pc from "fallback" to "none". This means with default settings, only the standards-based method to make special text unselectable is used. The old method relying on unspecified browser behavior for <input> tags is now only used if a user specifically enables it. - Officially deprecate g:use_xhtml option (in favor of g:html_use_xhtml) by issuing a warning message when used. Bugfixes: - Fix issue #8547: LineNr and other special highlight groups did not get proper style rules defined when using "hi link". - Fix that diff filler was not properly added for deleted lines at the end of a buffer. Other: - Refactored function definitions from long lists of strings to use :let-heredoc variable assignment instead. - Corrected deprecated "." string concatenation operator to ".." operator in more places. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-05runtime(ftplugin): allow to exec if curdir is in PATHAnton Sharonov
In case the current directory is present as valid $PATH entry, it is OK to call the program from it, even if vim curdir is in that same directory. (Without that patch, for instance, you will not be able to open .zip files while your current directory is /bin) closes: #13027 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-31patch 9.0.1833: [security] runtime file fixesv9.0.1833Christian Brabandt
Problem: runtime files may execute code in current dir Solution: only execute, if not run from current directory The perl, zig and ruby filetype plugins and the zip and gzip autoload plugins may try to load malicious executable files from the current working directory. This is especially a problem on windows, where the current directory is implicitly in your $PATH and windows may even run a file with the extension `.bat` because of $PATHEXT. So make sure that we are not trying to execute a file from the current directory. If this would be the case, error out (for the zip and gzip) plugins or silently do not run those commands (for the ftplugins). This assumes, that only the current working directory is bad. For all other directories, it is assumed that those directories were intentionally set to the $PATH by the user. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-29patch 9.0.1820: Rexx files may not be recognisedv9.0.1820Doug Kearns
Problem: Rexx files may not be recognised Solution: Add shebang detection and improve disambiguation of *.cls files closes: #12951 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-08-27patch 9.0.1807: runtime: crystal scripts not recognisedv9.0.1807Doug Kearns
Problem: runtime: crystal scripts not recognised Solution: Filetype detect Crystal scripts by shebang line closes: #12935 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-08-27patch 9.0.1797: Vimball/Visual Basic filetype detection conflictv9.0.1797Doug Kearns
Problem: Vimball/Visual Basic filetype detection conflict Solution: runtime(vb): Improve Vimball and Visual Basic detection logic Only run Vimball Archiver's BufEnter autocommand on Vimball archives. Fixes #2694. closes: #12899 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-08-20Runtime(javascript): add new document properties to completion fileJay Sitter
closes: #6536 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-20patch 9.0.1773: cannot distinguish Forth and Fortran *.f filesv9.0.1773Doug Kearns
Problem: cannot distinguish Forth and Fortran *.f files Solution: Add Filetype detection Code Also add *.4th as a Forth filetype closes: #12251 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-08-20runtime(man): remove backslashes in man pages using Vim script (#12557)lifecrisis
Closes: vim/vim#12301 Co-authored-by: Jason Franklin <jason@oneway.dev>
2023-08-17man.vim: Recognise hyphenated-at-eol cross-references (#12609)goweol
Manual pages requested for output may undergo formatting arranged by some roff-descendant program. Lines longer than MANWIDTH or COLUMNS or real-estate width of a device (with support for horizontal scrolling considered) can be divided at either blank characters and/or at groups of word characters (syllables) according to supported hyphenation rules (although page authors are free to disable hyphenation or prevent particular words from being hyphenated). Groff‘s manual describes it as follows: 5.1.2 Hyphenation Since the odds are not great for finding a set of words, for every output line, which fit nicely on a line without inserting excessive amounts of space between words, gtroff hyphenates words so that it can justify lines without inserting too much space between words. It uses an internal hyphenation algorithm (a simplified version of the algorithm used within TeX) to indicate which words can be hyphenated and how to do so. When a word is hyphenated, the first part of the word is added to the current filled line being output (with an attached hyphen), and the other portion is added to the next line to be filled. It would be expedient for autoload/dist/man.vim (along with syntax/man.vim‘s highlighting and ftplugin/man.vim‘s Ctrl-], \K mappings) to allow for hyphenation of cross-references to manual pages. For example, # Launch Vim [v9.0; patched: 1-1378, 1499] as follows: MANWIDTH=80 vim --not-a-term +MANPAGER '+Man man' '+/conv(1)' '+norm B' # Press Ctrl-] with cursor on _m_: "... use man‐ # conv(1) directly."_______________________[^] # # (Man v2.11.2) # Launch Vim as follows: MANWIDTH=80 vim --not-a-term +MANPAGER '+Man git' '+/config(1)' '+norm B' # Press Ctrl-] with cursor on _g_: "... in git- # config(1) for a more ..."_______________[^] # # (Git v2.39.2) Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
2023-08-17man.vim: Uniformly place cursor at the same column with `Ctrl-t` (#12608)goweol
Functions col and cursor count each tab (0x9) as a byte, and are complementary. On the other hand, the | command motion takes into consideration how many screen columns a tab does occupy and may move cursor to a column closer to the start of line than col would report at that position. The provided changes prefer the cursor function to the | command. Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
2023-08-13Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)Christian Brabandt
* Dedicate upcoming Vim 9.1 to Bram Also replace in a few more places Brams email address and mention new maintainers. * Remove Bram from any Maintainer role * runtime: Align Header * it's mailing list not mailinglist
2023-08-11Update my name and email in runtime files (#12763)Lily Ballard
2023-08-10Updated runtime filesv9.0.1683Christian Brabandt
This is a collection of various PRs from github that all require a minor patch number: 1) https://github.com/vim/vim/pull/12612 Do not conflate dictionary key with end of block 2) https://github.com/vim/vim/pull/12729: When saving and restoring 'undolevels', the constructs `&undolevels` and `:set undolevels` are problematic. The construct `&undolevels` reads an unpredictable value; it will be the local option value (if one has been set), or the global option value (otherwise), making it unsuitable for saving a value for later restoration. Similarly, if a local option value has been set for 'undolevels', temporarily modifying the option via `:set undolevels` changes the local value as well as the global value, requiring extra work to restore both values. Saving and restoring the option value in one step via the construct `:let &undolevels = &undolevels` appears to make no changes to the 'undolevels' option, but if a local option has been set to a different value than the global option, it has the unintended effect of changing the global 'undolevels' value to the local value. Update the documentation to explain these issues and recommend explicit use of global and local option values when saving and restoring. Update some unit tests to use `g:undolevels`. 3) https://github.com/vim/vim/pull/12702: Problem: Pip requirements files are not recognized. Solution: Add a pattern to match pip requirements files. 4) https://github.com/vim/vim/pull/12688: Add indent file and tests for ABB Rapid 5) https://github.com/vim/vim/pull/12668: Use Lua 5.1 numeric escapes in tests and add to CI Only Lua 5.2+ and LuaJIT understand hexadecimal escapes in strings. Lua 5.1 only supports decimal escapes: > A character in a string can also be specified by its numerical value > using the escape sequence \ddd, where ddd is a sequence of up to three > decimal digits. (Note that if a numerical escape is to be followed by a > digit, it must be expressed using exactly three digits.) Strings in Lua > can contain any 8-bit value, including embedded zeros, which can be > specified as '\0'. To make sure this works with Lua 5.4 and Lua 5.1 change the Vim CI to run with Lua 5.1 as well as Lua 5.4 6) https://github.com/vim/vim/pull/12631: Add hurl filetype detection 7) https://github.com/vim/vim/pull/12573: Problem: Files for haskell persistent library are not recognized Solution: Add pattern persistentmodels for haskell persistent library closes: #12612 closes: #12729 closes: #12702 closes: #12688 closes: #12668 closes: #12631 closes: #12573 Co-authored-by: lacygoill <lacygoill@lacygoill.me> Co-authored-by: Michael Henry <drmikehenry@drmikehenry.com> Co-authored-by: ObserverOfTime <chronobserver@disroot.org> Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de> Co-authored-by: James McCoy <jamessan@jamessan.com> Co-authored-by: Jacob Pfeifer <jacob@pfeifer.dev> Co-authored-by: Borys Lykah <lykahb@fastmail.com>
2023-06-09patch 9.0.1623: the program to filetype translation is not exportedv9.0.1623Bram Moolenaar
Problem: The program to filetype translation is not exported. Solution: Export Exe2filetype().
2023-06-08patch 9.0.1620: Nix files are not recognized from the hashbang linev9.0.1620Bram Moolenaar
Problem: Nix files are not recognized from the hashbang line. Solution: Add a hashbang check. (issue #12507)
2023-05-29patch 9.0.1591: some "gomod" files are not recognizedv9.0.1591Omar El Halabi
Problem: Some "gomod" files are not recognized. Solution: Check for "go.mod" file name before checking out the contents. (Omar El Halabi, closes #12462)
2023-05-14Update runtime filesBram Moolenaar
2023-05-10patch 9.0.1539: typst filetype is not recognizedv9.0.1539Gaetan Lepage
Problem: Typst filetype is not recognized. Solution: Distinguish between sql and typst. (Gaetan Lepage, closes #12363)
2023-05-06patch 9.0.1519: global 'filetype' is set when detected from file contentv9.0.1519Bram Moolenaar
Problem: Global 'filetype' is set when it is detected from the file content. Solution: Set the local 'filetype' option value.
2023-04-22Update runtime filesBram Moolenaar
2023-04-22patch 9.0.1478: filetypes for *.v files not detected properlyv9.0.1478Turiiya
Problem: Filetypes for *.v files not detected properly. Solution: Use the file contents to detect the filetype. (Turiiya, closes #12281)
2023-04-17patch 9.0.1464: strace filetype detection is expensivev9.0.1464Federico Mengozzi
Problem: Strace filetype detection is expensive. Solution: Match with a cheap pattern first. (Federico Mengozzi, closes #12220)
2023-04-02patch 9.0.1438: .fs files are falsely recognized as forth filesv9.0.1438Johan Kotlinski
Problem: .fs files are falsely recognized as forth files. Solution: Check 100 lines for something that looks like forth. (Johan Kotlinski, closes #12219, closes #11988)
2023-02-27Update runtime filesBram Moolenaar
2023-02-02Update runtime files.Bram Moolenaar
2023-01-09Update runtime filesBram Moolenaar
2022-12-31Update runtime filesBram Moolenaar
2022-12-14patch 9.0.1057: conflict between supercollider and scala filetype detectionv9.0.1057Chris Kipp
Problem: Conflict between supercollider and scala filetype detection. Solution: Do not check for "Class : Method", it can appear in both filetypes. (Chris Kipp, closes #11699)
2022-12-11Update runtime filesBram Moolenaar
2022-12-06Update runtime filesBram Moolenaar
2022-11-24patch 9.0.0935: when using dash it may not be recognize as filetype "sh"v9.0.0935Eisuke Kawashima
Problem: When using dash it may not be recognize as filetype "sh". Solution: Add checks for "dash". (Eisuke Kawashima,closes #11600)
2022-10-28Update runtime filesBram Moolenaar
2022-10-17patch 9.0.0779: lsl and lm3 file extensions are not recognizedv9.0.0779Doug Kearns
Problem: lsl and lm3 file extensions are not recognized. Solution: Add *.lsl and *.lm3 patterns. (Doug Kearns, closes #11384)
2022-10-16Update runtime filesBram Moolenaar
2022-10-16patch 9.0.0771: cannot always tell the difference beween tex and rexx filesv9.0.0771Martin Tournoij
Problem: Cannot always tell the difference beween tex and rexx files. Solution: Recognize tex by a leading backslash. (Martin Tournoij, closes #11380)
2022-10-03Update runtime filesBram Moolenaar
2022-09-27Update runtime filesBram Moolenaar
2022-09-01patch 9.0.0349: filetype of *.sil files not well detectedv9.0.0349Bram Moolenaar
Problem: Filetype of *.sil files not well detected. Solution: Inspect the file contents to guess the filetype.
2022-08-24Update runtime filesBram Moolenaar
2022-08-19Update runtime filesBram Moolenaar