# HG changeset patch # User Bram Moolenaar # Date 1545951608 -3600 # Node ID 97b40b4c6911ab800ffaf8fe1aca86639d91fab3 # Parent ef18fc59ecd5d7df8d703dda81dc0ec5e3dbef75 Update runtime files. commit https://github.com/vim/vim/commit/c8c8849267503b2d2d6d821047ee8619c7821728 Author: Bram Moolenaar Date: Thu Dec 27 23:59:26 2018 +0100 Update runtime files. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2018 Dec 24 +*eval.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2323,7 +2323,7 @@ prop_clear({lnum} [, {lnum-end} [, {prop prop_find({props} [, {direction}]) Dict search for a text property prop_list({lnum} [, {props}) List text properties in {lnum} -prop_remove({props} [, {lnum} [, {lnum_end}]]) +prop_remove({props} [, {lnum} [, {lnum-end}]]) Number remove a text property prop_type_add({name}, {props}) none define a new property type prop_type_change({name}, {props}) @@ -6695,17 +6695,17 @@ prop_add({lnum}, {col}, {props}) If {col} is invalid an error is given. *E964* {props} is a dictionary with these fields: - "length" - length of text in characters, can only be - used for a property that does not - continue in another line - "end_lnum" - line number for end of text - "end_col" - last column of the text; not used when - "length" is present - "bufnr" - buffer to add the property to; when - omitted the current buffer is used - "id" - user defined ID for the property; when - omitted zero is used - "type" - name of the text property type + length length of text in characters, can only be used + for a property that does not continue in + another line + end_lnum line number for end of text + end_col last column of the text; not used when + "length" is present + bufnr buffer to add the property to; when omitted + the current buffer is used + id user defined ID for the property; when omitted + zero is used + type name of the text property type All fields except "type" are optional. It is an error when both "length" and "end_lnum" or "end_col" @@ -6740,19 +6740,19 @@ prop_clear({lnum} [, {lnum-end} [, {prop prop_find({props} [, {direction}]) NOT IMPLEMENTED YET Search for a text property as specified with {props}: - "id" property with this ID - "type" property with this type name - "bufnr buffer to search in; when present a - start position with "lnum" and "col" - must be given; when omitted the - current buffer is used - "lnum" start in this line (when omitted start - at the cursor) - "col" start at this column (when omitted - and "lnum" is given: use column 1, - otherwise start at the cursor) - "skipstart" do not look for a match at the start - position + id property with this ID + type property with this type name + bufnr buffer to search in; when present a + start position with "lnum" and "col" + must be given; when omitted the + current buffer is used + lnum" start in this line (when omitted start + at the cursor) + col start at this column (when omitted + and "lnum" is given: use column 1, + otherwise start at the cursor) + skipstart do not look for a match at the start + position {direction} can be "f" for forward and "b" for backward. When omitted forward search is performed. @@ -6772,13 +6772,13 @@ prop_list({lnum} [, {props}]) *prop_ The properties are ordered by starting column and priority. Each property is a Dict with these entries: - "col" starting column - "length" length in bytes - "id" property ID - "type" name of the property type, omitted if - the type was deleted - "start" when TRUE property starts in this line - "end" when TRUE property ends in this line + col starting column + length length in bytes + id property ID + type name of the property type, omitted if + the type was deleted + start when TRUE property starts in this line + end when TRUE property ends in this line When "start" is zero the property started in a previous line, the current one is a continuation. @@ -6789,19 +6789,19 @@ prop_list({lnum} [, {props}]) *prop_ *prop_remove()* *E968* -prop_remove({props} [, {lnum} [, {lnum_end}]]) +prop_remove({props} [, {lnum} [, {lnum-end}]]) Remove a matching text property from line {lnum}. When - {lnum_end} is given, remove matching text properties from line - {lnum} to {lnum_end} (inclusive). + {lnum-end} is given, remove matching text properties from line + {lnum} to {lnum-end} (inclusive). When {lnum} is omitted remove matching text properties from all lines. {props} is a dictionary with these fields: - "id" - remove text properties with this ID - "type" - remove text properties with this type name - "bufnr" - use this buffer instead of the current one - "all" - when TRUE remove all matching text - properties, not just the first one + id remove text properties with this ID + type remove text properties with this type name + bufnr use this buffer instead of the current one + all when TRUE remove all matching text properties, + not just the first one A property matches when either "id" or "type" matches. Returns the number of properties that were removed. @@ -6813,22 +6813,19 @@ prop_type_add({name}, {props}) *prop_ty Add a text property type {name}. If a property type with this name already exists an error is given. {props} is a dictionary with these optional fields: - "bufnr" - define the property only for this - buffer; this avoids name collisions and - automatically clears the property types - when the buffer is deleted. - "highlight" - name of highlight group to use - "priority" - when a character has multiple text - properties the one with the highest - priority will be used; negative values - can be used, the default priority is - zero - "start_incl" - when TRUE inserts at the start - position will be included in the text - property - "end_incl" - when TRUE inserts at the end - position will be included in the text - property + bufnr define the property only for this buffer; this + avoids name collisions and automatically + clears the property types when the buffer is + deleted. + highlight name of highlight group to use + priority when a character has multiple text + properties the one with the highest priority + will be used; negative values can be used, the + default priority is zero + start_incl when TRUE inserts at the start position will + be included in the text property + end_incl when TRUE inserts at the end position will be + included in the text property See |text-properties| for information about text properties. @@ -7885,12 +7882,12 @@ sign_define({name} [, {dict}]) *sign_ The {name} can be a String or a Number. The optional {dict} argument specifies the sign attributes. The following values are supported: - icon full path to the bitmap file for the sign. - linehl highlight group used for the whole line the + icon full path to the bitmap file for the sign. + linehl highlight group used for the whole line the sign is placed in. - text text that is displayed when there is no icon + text text that is displayed when there is no icon or the GUI is not being used. - texthl highlight group used for the text item + texthl highlight group used for the text item For an existing sign, the attributes are updated. Returns 0 on success and -1 on failure. @@ -7909,13 +7906,13 @@ sign_getdefined([{name}]) *sign_getde Each list item in the returned value is a dictionary with the following entries: - icon full path to the bitmap file of the sign - linehl highlight group used for the whole line the + icon full path to the bitmap file of the sign + linehl highlight group used for the whole line the sign is placed in. - name name of the sign - text text that is displayed when there is no icon + name name of the sign + text text that is displayed when there is no icon or the GUI is not being used. - texthl highlight group used for the text item + texthl highlight group used for the text item Returns an empty List if there are no signs and when {name} is not found. @@ -7935,9 +7932,9 @@ sign_getplaced([{expr} [, {dict}]]) *s list of signs placed in that buffer is returned. For the use of {expr}, see |bufname()|. The optional {dict} can contain the following entries: - group select only signs in this group - id select sign with this identifier - lnum select signs placed in this line. For the use + group select only signs in this group + id select sign with this identifier + lnum select signs placed in this line. For the use of {lnum}, see |line()|. If {group} is '*', then signs in all the groups including the global group are returned. If {group} is not supplied or is an @@ -7973,11 +7970,11 @@ sign_getplaced([{expr} [, {dict}]]) *s echo sign_getplaced("eval.c", {'lnum' : 10}) " Get sign with identifier 10 placed in a.py - echo sign_getplaced("a.py", {'id' : 10'}) + echo sign_getplaced("a.py", {'id' : 10}) " Get sign with id 20 in group 'g1' placed in a.py echo sign_getplaced("a.py", {'group' : 'g1', - \ 'id' : 20'}) + \ 'id' : 20}) " Get a List of all the placed signs echo sign_getplaced() @@ -7993,7 +7990,7 @@ sign_place({id}, {group}, {name}, {expr} the sign group name. To use the global sign group, use an empty string. {group} functions as a namespace for {id}, thus two groups can use the same IDs. - + {name} refers to a defined sign. {expr} refers to a buffer name or number. For the accepted values, see |bufname()|. @@ -8046,7 +8043,7 @@ sign_undefine([{name}]) *sign_undefi < sign_unplace({group} [, {dict}]) *sign_unplace()* Remove a previously placed sign in one or more buffers. This - is similar to the |:sign-unplace()| command. + is similar to the |:sign-unplace| command. {group} is the sign group name. To use the global sign group, use an empty string. If {group} is set to '*', then all the diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt --- a/runtime/doc/motion.txt +++ b/runtime/doc/motion.txt @@ -1,4 +1,4 @@ -*motion.txt* For Vim version 8.1. Last change: 2017 Oct 15 +*motion.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -113,7 +113,7 @@ This cannot be repeated: > endif Note that when using ":" any motion becomes characterwise exclusive. - + *forced-motion* FORCING A MOTION TO BE LINEWISE, CHARACTERWISE OR BLOCKWISE When a motion is not of the type you would like to use, you can force another diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 8.1. Last change: 2018 Dec 18 +*options.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -4137,7 +4137,7 @@ A jump table for the options with a shor W:WildMenu,f:Folded,F:FoldColumn, A:DiffAdd,C:DiffChange,D:DiffDelete, T:DiffText,>:SignColumn,-:Conceal, - B:SpellBad,P:SpellCap,R:SpellRare, + B:SpellBad,P:SpellCap,R:SpellRare, L:SpellLocal,+:Pmenu,=:PmenuSel, x:PmenuSbar,X:PmenuThumb,*:TabLine, #:TabLineSel,_:TabLineFill,!:CursorColumn, diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1,4 +1,4 @@ -*pattern.txt* For Vim version 8.1. Last change: 2018 Mar 13 +*pattern.txt* For Vim version 8.1. Last change: 2018 Dec 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -398,11 +398,11 @@ Use of "\m" makes the pattern after it b ignoring the actual value of the 'magic' option. Use of "\M" makes the pattern after it be interpreted as if 'nomagic' is used. */\v* */\V* -Use of "\v" means that in the pattern after it all ASCII characters except -'0'-'9', 'a'-'z', 'A'-'Z' and '_' have a special meaning. "very magic" +Use of "\v" means that after it, all ASCII characters except '0'-'9', 'a'-'z', +'A'-'Z' and '_' have special meaning: "very magic" -Use of "\V" means that in the pattern after it only the backslash and the -terminating character (/ or ?) has a special meaning. "very nomagic" +Use of "\V" means that after it, only a backslash and terminating character +(usually / or ?) have special meaning: "very nomagic" Examples: after: \v \m \M \V matches ~ diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1,4 +1,4 @@ -*quickfix.txt* For Vim version 8.1. Last change: 2018 May 01 +*quickfix.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1551,7 +1551,7 @@ The backslashes before the pipe characte recognized as a command separator. The backslash before each space is required for the set command. - *cfilter-plugin* *Cfilter* *Lfilter* + *cfilter-plugin* *:Cfilter* *:Lfilter* If you have too many matching messages, you can use the cfilter plugin to reduce the number of entries. Load the plugin with: > packadd cfilter diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt --- a/runtime/doc/sign.txt +++ b/runtime/doc/sign.txt @@ -1,4 +1,4 @@ -*sign.txt* For Vim version 8.1. Last change: 2018 Dec 21 +*sign.txt* For Vim version 8.1. Last change: 2018 Dec 26 VIM REFERENCE MANUAL by Gordon Prieur @@ -279,8 +279,11 @@ See |sign_getplaced()| for the equivalen :sign place List placed signs in all files. +:sign place group=* + List placed signs in all sign groups in all files. + :sign place group={group} - List placed signs in all sign groups in all the files. + List placed signs with sign group {group} in all files. JUMPING TO A SIGN *:sign-jump* *E157* 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 8.1. Last change: 2018 Dec 14 +*syntax.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -29,7 +29,7 @@ 6. Defining a syntax |:syn-define| 7. :syntax arguments |:syn-arguments| 8. Syntax patterns |:syn-pattern| 9. Syntax clusters |:syn-cluster| -10. Including syntax files |:syn-include| +10. Including syntax files |:syn-include| 11. Synchronizing |:syn-sync| 12. Listing syntax items |:syntax| 13. Highlight command |:highlight| diff --git a/runtime/doc/tags b/runtime/doc/tags --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -1949,6 +1949,7 @@ 90.5 usr_90.txt /*90.5* :AdaTypes ft_ada.txt /*:AdaTypes* :Arguments terminal.txt /*:Arguments* :Break terminal.txt /*:Break* +:Cfilter quickfix.txt /*:Cfilter* :Clear terminal.txt /*:Clear* :CompilerSet usr_41.txt /*:CompilerSet* :Continue terminal.txt /*:Continue* @@ -1968,6 +1969,7 @@ 90.5 usr_90.txt /*90.5* :LPE pi_logipat.txt /*:LPE* :LPF pi_logipat.txt /*:LPF* :Lexplore pi_netrw.txt /*:Lexplore* +:Lfilter quickfix.txt /*:Lfilter* :LogiPat pi_logipat.txt /*:LogiPat* :Man filetype.txt /*:Man* :MkVimball pi_vimball.txt /*:MkVimball* @@ -3717,7 +3719,6 @@ CTRL-\_CTRL-N intro.txt /*CTRL-\\_CTRL-N CTRL-] tagsrch.txt /*CTRL-]* CTRL-^ editing.txt /*CTRL-^* CTRL-{char} intro.txt /*CTRL-{char}* -Cfilter quickfix.txt /*Cfilter* Channel eval.txt /*Channel* Channels eval.txt /*Channels* Chinese mbyte.txt /*Chinese* @@ -4738,7 +4739,6 @@ KVim gui_x11.txt /*KVim* Kibaale uganda.txt /*Kibaale* Korean mbyte.txt /*Korean* L motion.txt /*L* -Lfilter quickfix.txt /*Lfilter* Linux-backspace options.txt /*Linux-backspace* List eval.txt /*List* Lists eval.txt /*Lists* @@ -6192,6 +6192,7 @@ foldtext() eval.txt /*foldtext()* foldtextresult() eval.txt /*foldtextresult()* font-sizes gui_x11.txt /*font-sizes* fontset mbyte.txt /*fontset* +forced-motion motion.txt /*forced-motion* foreground() eval.txt /*foreground()* fork os_unix.txt /*fork* form.vim syntax.txt /*form.vim* @@ -8481,9 +8482,18 @@ shiftwidth() eval.txt /*shiftwidth()* short-name-changed version4.txt /*short-name-changed* showing-menus gui.txt /*showing-menus* sign-commands sign.txt /*sign-commands* +sign-functions usr_41.txt /*sign-functions* +sign-group sign.txt /*sign-group* sign-intro sign.txt /*sign-intro* +sign-priority sign.txt /*sign-priority* sign-support sign.txt /*sign-support* sign.txt sign.txt /*sign.txt* +sign_define() eval.txt /*sign_define()* +sign_getdefined() eval.txt /*sign_getdefined()* +sign_getplaced() eval.txt /*sign_getplaced()* +sign_place() eval.txt /*sign_place()* +sign_undefine() eval.txt /*sign_undefine()* +sign_unplace() eval.txt /*sign_unplace()* signs sign.txt /*signs* simple-change change.txt /*simple-change* simplify() eval.txt /*simplify()* diff --git a/runtime/doc/textprop.txt b/runtime/doc/textprop.txt --- a/runtime/doc/textprop.txt +++ b/runtime/doc/textprop.txt @@ -1,4 +1,4 @@ -*textprop.txt* For Vim version 8.1. Last change: 2018 Dec 14 +*textprop.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -103,11 +103,11 @@ prop_type_list([{props}]) get list of p Manipulating text properties: prop_add({lnum}, {col}, {props}) add a text property -prop_clear({lnum} [, {lnum_end} [, {bufnr}]]) +prop_clear({lnum} [, {lnum-end} [, {bufnr}]]) remove all text properties prop_find({props} [, {direction}]) search for a text property prop_list({lnum} [, {props}) text properties in {lnum} -prop_remove({props} [, {lnum} [, {lnum_end}]]) +prop_remove({props} [, {lnum} [, {lnum-end}]]) remove a text property 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 8.1. Last change: 2018 Dec 17 +*todo.txt* For Vim version 8.1. Last change: 2018 Dec 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -38,6 +38,10 @@ browser use: https://github.com/vim/vim/ *known-bugs* -------------------- Known bugs and current work ----------------------- +Possible errors reported from fuzzer. Shadowblade #3716 +a) using get_regline() without checking for NULL +b) using getcell() in libvterm without checking for NULL + 'incsearch' with :s: (#3321) - :s/foo using CTRL-G moves to another line, should not happen, or use the correct line (it uses the last but one line) (Lifepillar, Aug 18, #3345) @@ -107,40 +111,33 @@ Update for German spell files: https://g Problem with Visual yank when 'linebreak' and 'showbreak' are set. Patch with tests, but it's not clear how it is supposed to work. (tommm, 2018 -Nov 17) +Nov 17) Asked about this, Dec 22. Christian will have a look. Key mapping times out when using a timer in Gvim. (Michael Henry, 2018 Sep 9, #3417) +Add v:motion_force. (Kana Natsuno, 2008 Dec 6) +Maybe call it v:motiontype. Update in #3490. +Alternative: add the force flag to mode(), after "no". +Patch ready to include? + Does not build with MinGW out of the box: - _stat64 is not defined, need to use "struct stat" in vim.h - WINVER conflict, should use 0x0600 by default? Signs: -- Patch to define and manipulate signs with functions. Adds sign groups and - priority. (Yegappan Lakshmanan, #3652) +- Use a sign group in the Termdebug plugin. - Avoid that "sign unplace id" does a redraw right away, esp. when there is a sequence of these commands. (Andy Stewart, 2018 Mar 16) - Patch to right-align signs. (James Kolb (email james), 2013 Sep 23) - Patch from Christian Brabandt to make the "buffer" argument for ":sign place" optional. (2013 Jul 12) -Rename get_tv_ functions to tv_get_. - -Crash in terminal with long multi-byte sequence. (2018 Nov 17, #3619) -Dominique cannot reproduce. Update Nov 18. -Suggested solution by Yasuhiro Matsumoto, 2018 Nov 18. - Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May 13, #2910) Can't reproduce? -Patch to simplify nsis installer. (Ken Takata, 2018 Sep 24, was #3479) -Now included in #3501, using MUI2. Use the zip file to get the binary files: -https://github.com/vim/vim/files/2475621/nsis-icons.zip -Ready to include now. - Patch to add blob type support. (Yasuhiro Matsumoto, 2018 Nov 26, #3638) -Not done yet. +Should be ready to include. Errors found with random data: heap-buffer-overflow in alist_add (#2472) @@ -148,9 +145,6 @@ Errors found with random data: Win32 key codes are messy. Mike Williams tried to fix that, but now old mappings no longer work. Create a new terminal for the better solution? -Patch to fix that appending makes items to be "recognized". -(Yegappan, 2018 Nov 23, #3683). Reported by Daniel Hahler, #3633. - Improve fallback for menu translations, to avoid having to create lots of files that source the actual file. E.g. menu_da_de -> menu_da Include part of #3242? @@ -158,10 +152,6 @@ Include part of #3242? When a terminal exit_cb closes the window, a following typed key is lost, if it's in a mapping. (2018 Oct 6, #2302, #3522) -Patch to add FOR_ALL_FRAMES. (Yegappan, 2018 Nov 18) - -Patch to resize to fit parent position when using ---windowid. ( Agorgianitis -Loukas, 2018 Nov 17, #3616) Completion mixes results from the current buffer with tags and other files. Happens when typing CTRL-N while still search for results. E.g., type "b_" in terminal.c and then CTRL-N twice. @@ -176,14 +166,9 @@ Problem with :tlmenu: Detach item added C syntax: {} inside () causes following {} to be highlighted as error. (Michalis Giannakidis, 2006 Jun 1) -Patch to fix function object in Python3. (Ozaki Kiichi, #3681) - Patch on #3690 to fix that "wincmd p" does not always behave properly. (Christian Brabandt, 2018 Dec 17) -"gn" selects two matches instead of one when the pattern contains "\zs" and -spans more than one line. (#3695) - Patch: When using %v in 'errorformat', assume the number is the screen column not bytes, also handle multi-byte charactes. (Yegappan Lakshmanan, #3700) @@ -202,8 +187,14 @@ 7 Make 'scrolloff' a global-local opti Patch for ConPTY support, #3474: What is the status? +Issue #3649: Retrying the X server connection once may be insufficient. +Since patch 8.1.0615 we try reconnecting five times. Does it work? + nvo-mode mapping works on Windows, not on Linux. (#3678) +Patch to be able to separately map CTRL-H and BS on Windows. +(Linwei, 2017 Jul 11, #1833) + Pasting foo} causes Vim to behave weird. (John Little, 2018 Jun 17) Related to bracketed paste. I cannot reproduce it. @@ -228,6 +219,10 @@ Not ready to include yet. Problem with two buffers with the same name a/b, if it didn't exist before and is created outside of Vim. (dskloetg, 2018 Jul 16, #3219) +When 'sidescrolloff' is set, using "zl" to go to the end of the line, suddenly +scrolls back. Should allow for this scrolling, like 'scrolloff' does when +using CTRL-E. (Yee Cheng Chin, #3721) + Invalid memory access with old regexp engine. (Dominique Pelle, 2018 Sep 3, #3405) Introduced by 8.0.1517, which was fixing another memory access error. (Sep 8) @@ -240,6 +235,9 @@ Patch to implement 'diffref' option. (#3 Patch to fix that bracketed paste remains after Vim exits. (2018 Oct 30, #3579) +Patch to add support for changing the current quickfix/location list indes. +(Yegappan Lakshmanan, 2018 Dec 18, #3701) + Make ":interactive !cmd" stop termcap mode, also when used in an autocommand. (#3692) @@ -382,11 +380,6 @@ Should also be possible to add highlight balloonexpr() on MS-Windows GUI doesn't handle accented chars? (nivaemail, 2018 Sep 14) -Add v:motion_force. (Kana Natsuno, 2008 Dec 6) -Maybe call it v:motiontype. Update in #3490. -Alternative: add the force flag to mode(), after "no". -Patch ready to include? - Try out background make plugin: https://github.com/AndrewVos/vim-make-background or asyncmake: @@ -917,9 +910,6 @@ Does this also fix #1408 ? Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30) -Patch to be able to separately map CTRL-H and BS on Windows. -(Linwei, 2017 Jul 11, #1833) - When 'completeopt' has "noselect" does not insert a newline. (Lifepillar, 2017 Apr 23, #1653) diff --git a/runtime/ftplugin/cfg.vim b/runtime/ftplugin/cfg.vim new file mode 100644 --- /dev/null +++ b/runtime/ftplugin/cfg.vim @@ -0,0 +1,19 @@ +" Vim filetype plugin file +" Language: Configuration File +" Maintainer: Christian Brabandt +" Latest Revision: 2018-12-24 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +let b:undo_ftplugin = "setl cms< fo<" + +setlocal commentstring=#\ %s formatoptions-=t formatoptions+=croql + +let &cpo = s:cpo_save +unlet s:cpo_save