Commit Graph

594 Commits

Author SHA1 Message Date
Caleb Maclennan
98cc4a2d64
Fixup manual install instructions to be complete
Closes #506

Co-authored-by: Yuri Schaeffer <yuri@schaeffer.tk>
2022-11-09 12:45:12 +03:00
Caleb Maclennan
f575c18d05
Release 2.7.0 (for those using releases, tracking upstream master is recommended) 2022-11-05 12:34:59 +03:00
Allen Guan
fd2114b46d
Update outdated example code in readme (#504) 2022-10-29 12:40:51 +03:00
Brian Wo
fe74a1b890
Add support for Justfile (#503) 2022-10-11 10:03:52 +03:00
Brian Wo
60f3a2bc2b
Add support for Svelte (#502) 2022-10-07 10:43:59 +03:00
Giuliano
2a0a05ff98
Add support for TLA+ modeling and specification language (#497) 2022-09-12 09:15:28 +03:00
Christian Segundo
6d30ebcd42
Add support for Zig (#492) 2022-05-20 23:15:25 +03:00
Caleb Maclennan
f8671f783b
Add alternate delimiter to SILE format to ease switching to Lua 2022-02-24 23:22:41 +03:00
Chris
ec002e8f5d
Add support for Starkware cairo (#487) 2022-02-12 17:08:52 +03:00
Caleb Maclennan
f9c5f0fbda
Merge pull request #482 from tomtomjhj/insert 2022-01-15 21:13:53 +03:00
Jaehwang Jerry Jung
ac512fe158 Do not break undo sequence when moving cursor 2022-01-16 00:10:51 +09:00
Jaehwang Jerry Jung
867618364f Simplify and fix NERDCommenterInsert
* Simplify comment delimiter insertion.
* Remove the code that unnecessarily touches the leading spaces/tabs.
* Fix a bug in which `<Plug>NERDCommenterInsert` inserts the comment
  delimiters in a wrong position when `col('.')==1`.
  Example: `1|234` (cursor at `|`) → `/* */1234`.
* NOTE: Should avoid `feedkey(.., 'ni')` for inserting comment
  delimiters to ensure that `NERDCommenter_after` is called after
  inserting the delimiters. `feedkey` only adds the input to the queue,
  which will be processed after exiting the script context. On the other
  hand, `:normal` and `feedkey(.., 'x')` are eagerly processed.
2022-01-16 00:10:51 +09:00
Caleb Maclennan
97317fc319
Merge pull request #486 from phlip9/master 2022-01-15 15:51:20 +03:00
Philip Hayes
37298c471e Add support for ATS and Lean 2022-01-14 16:38:49 -08:00
Caleb Maclennan
9fffd4c022
Merge pull request #485 from ftfunjth/master 2021-12-28 13:31:54 +03:00
ftfunjth
2e7a775dd2 Add SetUp call in IsLineCommented function definition 2021-12-28 18:13:13 +08:00
Caleb Maclennan
eddd535bdf
Release 2.6.0 (for those using releases, tracking upstream master is recommended) 2021-11-27 07:22:42 +03:00
Caleb Maclennan
13d00954a6
Merge pull request #481 from dsirov/fasm+json5-syntax 2021-11-24 20:38:07 +03:00
David Sirovsky
ab67976bea autoload/nerdcommenter.vim: json5 support 2021-11-24 12:20:12 +02:00
David Sirovsky
fa9b74ff69 autoload/nerdcommenter.vim: fasm support 2021-11-24 12:19:56 +02:00
Caleb Maclennan
a65465d321
Merge pull request #479 from jiaobuzuji/master 2021-09-02 22:33:20 +03:00
Jiaobuzuji
9d5c12e126
fix 'g:NERDAllowAnyVisualDelims' action
fix 'g:NERDAllowAnyVisualDelims' action.

                                                    *'NERDAllowAnyVisualDelims'*
Values: 0 or 1.
Default: 1.

If set to 1 then, when doing a visual or visual-block comment (but not a
visual-line comment), the script will choose the right delimiters to use for
the comment. This means either using the current delimiters if they are
multipart or using the alternative delimiters if THEY are multipart.  For
example if we are editing the following java code: >
    float foo = 1221;
    float bar = 324;
    System.out.println(foo * bar);
<
If we are using // comments and select the "foo" and "bar" in visual-block
mode, as shown left below (where '|'s are used to represent the visual-block
boundary), and comment it then the script will use the alternative delimiters
as shown on the right: >

    float |foo| = 1221;                   float /*foo*/ = 1221;
    float |bar| = 324;                    float /*bar*/ = 324;
    System.out.println(foo * bar);        System.out.println(foo * bar);
<
2021-09-02 22:27:38 +08:00
Caleb Maclennan
2c87cae76e
Merge pull request #475 from tomtomjhj/refactor 2021-07-31 20:24:00 +03:00
Jaehwang Jerry Jung
f7333809b6 Prefer single quoted strings 2021-08-01 00:57:34 +09:00
Jaehwang Jerry Jung
576bd64482 {Save,Restore}ScreenState → win{save,rest}view 2021-08-01 00:45:16 +09:00
Jaehwang Jerry Jung
ed591cb2a2 substitute(.., '..\(pat\)..', '\1') → matchstr() 2021-08-01 00:33:13 +09:00
Jaehwang Jerry Jung
d398a0278c [ \t] → \s, [^ \t] → \S 2021-08-01 00:33:13 +09:00
Caleb Maclennan
85364c56c4
Merge pull request #473 from preservim/shim-functions 2021-07-29 17:41:36 +03:00
Caleb Maclennan
b1bb758f14
Fix vimscript lint warnings 2021-07-29 17:26:06 +03:00
Caleb Maclennan
eeabded555
Pass range data through, error on case we can't shim 2021-07-29 17:20:35 +03:00
Caleb Maclennan
918592cdc6
Add warning messages to deprecated function calls 2021-07-29 16:49:12 +03:00
Caleb Maclennan
8e935a6367
Restore use to IsCharCommented function after autoload refactor goof 2021-07-29 16:48:31 +03:00
Caleb Maclennan
f21b0f8fab
Add shim functions to pass through to autoload namespace 2021-07-29 16:23:49 +03:00
Caleb Maclennan
c526e3957f
Move docs to proper namespace matching autoload 2021-07-29 15:42:53 +03:00
Caleb Maclennan
47ab32444d
Merge pull request #470 from tomtomjhj/setup 2021-07-29 13:02:07 +03:00
Jaehwang Jerry Jung
8e8d74faaf fix and refactor SetUpForNewFiletype
* fix: variables are not set for a new buffer with filetype = s:last_filetype
* remove unused parameter and simplify name
2021-07-29 18:07:13 +09:00
Caleb Maclennan
dbc631adf9
Merge pull request #376 from Houl/autoload
Refactor using VIM's autoload plugin system
2021-07-27 17:04:53 +03:00
Caleb Maclennan
ea11ba5a79
Use the abort attribute for functions in autoload 2021-07-27 16:58:12 +03:00
antonk52
3768b28aa4 expose delimeter map via nerdcommenter#delimiterMap 2021-07-24 22:05:07 +01:00
antonk52
f12042b675 setup global variables and keymaps in plugin/nerdcommenter.vim 2021-07-24 21:55:50 +01:00
Caleb Maclennan
dec06b1fb9
Merge branch 'master' into autoload 2021-07-20 12:46:30 +03:00
Jaehwang Jerry Jung
a5d1663185
Fix multibyte character bug in block comment (#469)
<Plug>NERDCommenterComment using block comment on visual block whose
last char is unicode breaks up the unicode char. Example:

    a가 → /* a<ea> */<b0><80>

To fix this, add the character's byte length to the index used for
chopping the right part of the text block to be commented.
2021-05-29 14:00:30 +03:00
Caleb Maclennan
ab475e1325
Add filetype for exim configs 2021-04-30 12:31:25 +03:00
Caleb Maclennan
d9366fc27c
Add filetype for bind-named (similar to named, used by some plugins) 2021-04-30 12:31:10 +03:00
Caleb Maclennan
1b53686d5f
Merge pull request #466 from natesire/master 2021-04-13 08:23:21 +03:00
Nate Sire
b2642c8ed9
Add Directions for Vim 8+ Packages 2021-04-13 08:21:08 +03:00
Nate Sire
d4855b233e
Wrap installation blurbs in expandable summary/detail blocks 2021-04-13 08:20:25 +03:00
Gabriel Nagy
6d0ab7dec9
Add hocon filetype (#465)
Add support for commenting hocon files.

[1] https://github.com/lightbend/config/blob/main/HOCON.md#comments
2021-04-06 09:57:40 +03:00
Adrien Lemaire
16ecc429ec
Add neo4j cypher filetype (#464)
Let nerdcommenter properly comment cypher files.

* [extension recommendation](https://neo4j.com/docs/cypher-manual/current/styleguide/#cypher-styleguide-general-recommendations)
* [comments syntax](https://neo4j.com/docs/cypher-manual/current/syntax/comments/)
2021-02-27 12:25:37 +03:00
Bertold Sedlak
1c7b57608e
Add UC4 Filetype (#462)
Add Support for UC4 Scripts as used by Automic Automation Engine
See docs for details:
https://docs.automic.com/documentation/webhelp/english/AWA/11.2/AE/11.2/All%20Guides/Content/ucabqx.htm
2021-02-18 06:44:26 +03:00