Commit Graph

24 Commits

Author SHA1 Message Date
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
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
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
8e935a6367 Restore use to IsCharCommented function after autoload refactor goof 2021-07-29 16:48:31 +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
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
Caleb Maclennan
19f677513c Fix lint errors intoduced during autoload refactor 2020-06-08 18:26:34 +03:00
Caleb Maclennan
7caf7b58a1 Merge branch 'master' into autoload 2020-06-08 18:16:18 +03:00
Andy Wokula
1f4a238e73 Merge remote-tracking branch 'upstream/master'
Ignored changes in other README!
2020-06-08 18:16:01 +03:00
Andy Wokula
2e50bcbb8d Add one more menu mode 2020-06-08 18:16:00 +03:00
Andy Wokula
a5772187fa Use more cautious init check 2020-06-08 18:15:55 +03:00
Andy Wokula
592d5767e0 Use string() 2020-06-08 18:15:55 +03:00
Andy Wokula
5a5bad0ece Merge remote-tracking branch 'upstream/master' 2020-06-08 18:15:55 +03:00
Andy Wokula
656f6b5beb Normalize case in keycodes 2020-06-08 18:15:43 +03:00
Andy Wokula
cb5fb95a81 Remove loading guards not needed in autoload scripts 2020-06-08 16:16:52 +03:00
Andy Wokula
f9a87bf68f Rename functions, add plug function 2020-06-08 16:16:52 +03:00
Andy Wokula
f62c4ca1d4 Move plugin file to autoload 2020-06-08 15:59:21 +03:00