]> git.madduck.net Git - etc/vim.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

etc/vim.git
8 years agoRemove `mkdLineContinue` from syntax
Hiroshi Shirosaki [Wed, 20 Jan 2016 12:03:25 +0000 (21:03 +0900)]
Remove `mkdLineContinue` from syntax

`mkdLineContinue` seems to do nothing.
It may cause highlight issue.
Fix #233

8 years agoHighlight link text with newline
Hiroshi Shirosaki [Wed, 20 Jan 2016 08:08:48 +0000 (17:08 +0900)]
Highlight link text with newline

8 years agoRemove online with italic and bold syntax
Hiroshi Shirosaki [Wed, 20 Jan 2016 06:01:09 +0000 (15:01 +0900)]
Remove online with italic and bold syntax

We fixed some issues without oneline option.
Add unit tests.
Fix #172

8 years agoFix indent code block at beginning of file
Hiroshi Shirosaki [Wed, 20 Jan 2016 05:53:09 +0000 (14:53 +0900)]
Fix indent code block at beginning of file

Fix #105

8 years agoRemove spaces around = of set option
Hiroshi Shirosaki [Wed, 20 Jan 2016 00:06:49 +0000 (09:06 +0900)]
Remove spaces around = of set option

Spaces are not allowed.

8 years agoNot allow space in link
Hiroshi Shirosaki [Tue, 19 Jan 2016 13:29:22 +0000 (22:29 +0900)]
Not allow space in link

No spaces between link text and the following parenthesis.
http://spec.commonmark.org/0.24/#example-474

8 years agoMerge pull request #245 from cirosantilli/contributing-headers
Ciro Santilli 六四事件 法轮功 包卓轩 [Tue, 19 Jan 2016 12:39:18 +0000 (07:39 -0500)]
Merge pull request #245 from cirosantilli/contributing-headers

Make contributing headers h2 like README

8 years agoRemove extra blank line from README markdown
Ciro Santilli 六四事件 法轮功 包卓轩 [Tue, 19 Jan 2016 12:38:26 +0000 (07:38 -0500)]
Remove extra blank line from README markdown

8 years agoMake contributing headers h2 like README
Ciro Santilli [Tue, 19 Jan 2016 12:20:47 +0000 (07:20 -0500)]
Make contributing headers h2 like README

8 years agoChange function name to camel case as others
Hiroshi Shirosaki [Tue, 19 Jan 2016 12:02:23 +0000 (21:02 +0900)]
Change function name to camel case as others

8 years agoUpdate doc
Hiroshi Shirosaki [Tue, 19 Jan 2016 09:21:32 +0000 (18:21 +0900)]
Update doc

8 years agoConcealing links
Hiroshi Shirosaki [Tue, 19 Jan 2016 09:18:04 +0000 (18:18 +0900)]
Concealing links

Add conceal to syntax link to help readability.
Fix #244

8 years agoRestore number setting on tests
Hiroshi Shirosaki [Tue, 19 Jan 2016 09:14:47 +0000 (18:14 +0900)]
Restore number setting on tests

8 years agoFix regexp for spaces
Hiroshi Shirosaki [Tue, 19 Jan 2016 05:19:39 +0000 (14:19 +0900)]
Fix regexp for spaces

\s is not spaces in [].

8 years agoImprove regexp performance of italic
Hiroshi Shirosaki [Tue, 19 Jan 2016 04:40:05 +0000 (13:40 +0900)]
Improve regexp performance of italic

Add tests for escaped asterisks.

8 years agoDrop defined known scheme
Hiroshi Shirosaki [Tue, 19 Jan 2016 02:43:22 +0000 (11:43 +0900)]
Drop defined known scheme

Shorten the regexp because the long pattern is very slow.

8 years agoRemove ' in regexp pattern of url
Hiroshi Shirosaki [Tue, 19 Jan 2016 02:26:25 +0000 (11:26 +0900)]
Remove ' in regexp pattern of url

8 years agoSimplify the regexp of italic and bold
Hiroshi Shirosaki [Tue, 19 Jan 2016 02:19:34 +0000 (11:19 +0900)]
Simplify the regexp of italic and bold

Simplify the regexp to improve syntax performance.
Use \ze instead of \@=.

8 years agoImprove syntax regexp performance
Hiroshi Shirosaki [Tue, 19 Jan 2016 01:36:56 +0000 (10:36 +0900)]
Improve syntax regexp performance

Use \zs instead of \@<= if possible.

8 years agoFirst =, - should not be treated as header
Hiroshi Shirosaki [Tue, 19 Jan 2016 00:53:32 +0000 (09:53 +0900)]
First =, - should not be treated as header

Fix #189

8 years agoFix wrong comment
Hiroshi Shirosaki [Mon, 18 Jan 2016 09:00:26 +0000 (18:00 +0900)]
Fix wrong comment

8 years agoChange global variables to local
Hiroshi Shirosaki [Mon, 18 Jan 2016 08:41:31 +0000 (17:41 +0900)]
Change global variables to local

8 years agoChange buffer local variables to function local
Hiroshi Shirosaki [Mon, 18 Jan 2016 06:06:48 +0000 (15:06 +0900)]
Change buffer local variables to function local

8 years agoFix YAML frontmatter recognised as level-2 heading
Hiroshi Shirosaki [Mon, 18 Jan 2016 05:39:04 +0000 (14:39 +0900)]
Fix YAML frontmatter recognised as level-2 heading

Fixed front matter heading bugs of folding and `:Toc`.
Fix #160

8 years agoAdd requirement for commands #182
Hiroshi Shrirosaki [Sun, 17 Jan 2016 04:23:56 +0000 (13:23 +0900)]
Add requirement for commands #182

8 years agomake test works on Windows
Hiroshi Shrirosaki [Sun, 17 Jan 2016 02:58:02 +0000 (11:58 +0900)]
make test works on Windows

8 years agoMove `stty` to before_script in travis script
Hiroshi Shirosaki [Fri, 15 Jan 2016 09:18:11 +0000 (18:18 +0900)]
Move `stty` to before_script in travis script

8 years agoRename test/toc.vader
Hiroshi Shirosaki [Fri, 15 Jan 2016 09:09:19 +0000 (18:09 +0900)]
Rename test/toc.vader

8 years agoUse vertical resize command
Hiroshi Shirosaki [Fri, 15 Jan 2016 09:04:49 +0000 (18:04 +0900)]
Use vertical resize command

We can resize window without changing winwidth option.

8 years agoUse winwidth(0) instead of &winwidth
Hiroshi Shirosaki [Fri, 15 Jan 2016 08:59:00 +0000 (17:59 +0900)]
Use winwidth(0) instead of &winwidth

&winwidth is not real width but option value.

8 years agoUpdate doc
Hiroshi Shirosaki [Fri, 15 Jan 2016 00:06:59 +0000 (09:06 +0900)]
Update doc

8 years agoMerge pull request #243 from alexconst/feat/toc_autofit
Hiroshi Shirosaki [Fri, 15 Jan 2016 00:01:13 +0000 (09:01 +0900)]
Merge pull request #243 from alexconst/feat/toc_autofit

Implement TOC window auto-fit

8 years agoFix toc-autofit test and travis build config
Alexandre Constantino [Thu, 14 Jan 2016 21:11:07 +0000 (21:11 +0000)]
Fix toc-autofit test and travis build config

Because the toc-autofit test needs a reasonable terminal width (in our
case 80 will suffice) it sets the travis environment to use 80 columns,
as mentioned in https://github.com/travis-ci/travis-ci/issues/5407

8 years agoImplement TOC window auto-fit
Alexandre Constantino [Thu, 14 Jan 2016 14:56:00 +0000 (14:56 +0000)]
Implement TOC window auto-fit

Allow the user, to set an option, to have the TOC window shrink its size
in order to auto-fit to contents.

8 years agoRefactoring the fenced code block handling of folding
Hiroshi Shirosaki [Thu, 14 Jan 2016 11:27:46 +0000 (20:27 +0900)]
Refactoring the fenced code block handling of folding

8 years agoFix code block syntax of longer backticks, tildes
Hiroshi Shirosaki [Thu, 14 Jan 2016 08:55:13 +0000 (17:55 +0900)]
Fix code block syntax of longer backticks, tildes

8 years agoFix folding with code block and level setting
Hiroshi Shirosaki [Thu, 14 Jan 2016 08:28:38 +0000 (17:28 +0900)]
Fix folding with code block and level setting

- Add fenced code blocks tracking to pythonic folding
- Fix fenced code block check with folding
- Fix setext fold level setting grater than 2
- Add tests for g:vim_markdown_folding_level

- The behavior commented in tests would not be a bug.
  Fold level `-1` is returned against atx headers.
  `-1` means that the fold level is undefined, use the fold level
  of a line before or after this line, whichever is the lowest.
  Fold level of setext headers `=` should be 1.
  14 lines of `foldtextresult(45)` is corrent because 15th blank
  line is delimiter line of vader.

8 years agoEscape `~` in regexp with folding
Hiroshi Shirosaki [Thu, 14 Jan 2016 06:38:00 +0000 (15:38 +0900)]
Escape `~` in regexp with folding

Add tests for `~`

8 years agoUpdate doc
Hiroshi Shirosaki [Thu, 14 Jan 2016 05:03:09 +0000 (14:03 +0900)]
Update doc

8 years agoAdd `:lclose` after `:Toc` to fix test failure
Hiroshi Shirosaki [Thu, 14 Jan 2016 04:30:16 +0000 (13:30 +0900)]
Add `:lclose` after `:Toc` to fix test failure

Code block syntax test fails without `:lclose`.

8 years ago:Toc should accept single `=` and `-` as setex header
Hiroshi Shirosaki [Thu, 14 Jan 2016 04:26:00 +0000 (13:26 +0900)]
:Toc should accept single `=` and `-` as setex header

8 years agoMerge pull request #241 from alexconst/fix/hash_comments
Hiroshi Shirosaki [Thu, 14 Jan 2016 04:35:10 +0000 (13:35 +0900)]
Merge pull request #241 from alexconst/fix/hash_comments

Fix bug related to folding and hash comments

8 years agoFix test failures when the window width is small
Hiroshi Shirosaki [Thu, 14 Jan 2016 02:13:28 +0000 (11:13 +0900)]
Fix test failures when the window width is small

8 years agoAdd test for folding and :Toc
Alexandre Constantino [Wed, 13 Jan 2016 21:56:09 +0000 (21:56 +0000)]
Add test for folding and :Toc

8 years agoFix/revert folding for setext headers
Alexandre Constantino [Wed, 13 Jan 2016 20:04:31 +0000 (20:04 +0000)]
Fix/revert folding for setext headers

8 years agoFix :Toc for setext headers
Alexandre Constantino [Wed, 13 Jan 2016 11:10:27 +0000 (11:10 +0000)]
Fix :Toc for setext headers

8 years agoRename toc.vader to fix test failures
Hiroshi Shirosaki [Wed, 13 Jan 2016 16:59:00 +0000 (01:59 +0900)]
Rename toc.vader to fix test failures

Toc tests fail after calling `Markdown_refresh_syntax` in
syntax.vader for some reason. We renamed to execute Toc tests
before syntax.vader by `make test`.

8 years agoImprove code block syntax and fix test failures
Hiroshi Shirosaki [Thu, 7 Jan 2016 08:57:00 +0000 (17:57 +0900)]
Improve code block syntax and fix test failures

- Remove syntax match of mkdCodeStart and mkdCodeEnd to work syntax
  mkdCode properly without a language specifier.

- Add highlight setting of mkdCodeStart and mkdCodeEnd.

- Change the regexp pattern to use c++ language specifier.

- Add viml language.

- Add tests for code block syntax.

- Fixed `is_mkdCode(lnum)` to work with other than mkdCode, but it
  doesn't work as expected in some cases.

8 years agoMove code to ftplugin from plugin.
Hiroshi Shirosaki [Wed, 6 Jan 2016 07:55:07 +0000 (16:55 +0900)]
Move code to ftplugin from plugin.

BufWinEnter fires in ftplugin on startup.

8 years agoChange filetype markdown
Hiroshi Shirosaki [Wed, 6 Jan 2016 07:54:38 +0000 (16:54 +0900)]
Change filetype markdown

8 years agoForce syntax highlighting on buffer reload
Matt Ellis [Thu, 11 Sep 2014 16:16:22 +0000 (17:16 +0100)]
Force syntax highlighting on buffer reload

8 years agoSupport indented code fences inside lists
Matt Ellis [Tue, 8 Jul 2014 09:27:04 +0000 (10:27 +0100)]
Support indented code fences inside lists

8 years agoPrevent sub-words overriding
Matt Ellis [Tue, 8 Jul 2014 09:16:39 +0000 (10:16 +0100)]
Prevent sub-words overriding

E.g. ```vi was overriding ```vim

8 years agoOnly include syntax files once
Matt Ellis [Wed, 18 Jun 2014 09:37:51 +0000 (10:37 +0100)]
Only include syntax files once

Avoids errors when including more than once, e.g. including vim twice
causes errors

8 years agoSyntax highlighting of code blocks
Matt Ellis [Mon, 16 Jun 2014 16:02:27 +0000 (17:02 +0100)]
Syntax highlighting of code blocks

Code taken from https://github.com/xolox/vim-notes

Has to be in plugin/mkd.vim, or the initial BufReadPost event doesn’t
get fired. I don’t know why.

8 years agoImport tests to syntax.vader from test/header.md
Hiroshi Shirosaki [Wed, 13 Jan 2016 11:05:24 +0000 (20:05 +0900)]
Import tests to syntax.vader from test/header.md

8 years agoFix vim code style in README.md
Hiroshi Shirosaki [Wed, 13 Jan 2016 10:05:40 +0000 (19:05 +0900)]
Fix vim code style in README.md

8 years agoMove test/header.md to test/toc.vader
Hiroshi Shirosaki [Wed, 13 Jan 2016 07:33:16 +0000 (16:33 +0900)]
Move test/header.md to test/toc.vader

8 years agoAdd `:Toc` tests for setex and atx headers
Hiroshi Shirosaki [Wed, 13 Jan 2016 06:36:54 +0000 (15:36 +0900)]
Add `:Toc` tests for setex and atx headers

`bufname()` is not needed for `getbufline()`. `bufname()` does
not work with vader tests.
Move `:Toc` tests to test/toc.vader.

8 years agoRemove needless + from setext-style headers tests
Hiroshi Shirosaki [Wed, 13 Jan 2016 04:52:18 +0000 (13:52 +0900)]
Remove needless + from setext-style headers tests

8 years agoFix bug related to folding and hash comments
Alexandre Constantino [Tue, 12 Jan 2016 17:37:16 +0000 (17:37 +0000)]
Fix bug related to folding and hash comments

Fix bug that occurs when hash comments are used in fenced code blocks.
Fix same problem that occurs when building a TOC with the :Toc command.
Add flag that allow the user to set folding level, by default set to 1.

8 years agoFix indent code block and add tests
Hiroshi Shirosaki [Sat, 9 Jan 2016 05:08:09 +0000 (14:08 +0900)]
Fix indent code block and add tests

`mkdIndentCode` is renamed to `mkdCode` because there is no need
to distinguish them.
We fixed a bug that indent code block at the start of a file is
not highlighted.

8 years agoChange match URL in parenthesis
Hiroshi Shirosaki [Sat, 9 Jan 2016 04:53:34 +0000 (13:53 +0900)]
Change match URL in parenthesis

We change the regexp of URL in parenthesis to `http\?` pattern
because long regexp with many protocol names causes slowness.
We reorder and use `\?` for protocol names regexp.

8 years agoImprove performance of folding
Hiroshi Shirosaki [Fri, 8 Jan 2016 11:41:57 +0000 (20:41 +0900)]
Improve performance of folding

Folding is very slow for large files.
Drop `s:effective_line()` to reduce call of `s:is_mkdCode()`.

8 years agoEnable HTML highlight
Hiroshi Shirosaki [Fri, 8 Jan 2016 07:06:33 +0000 (16:06 +0900)]
Enable HTML highlight

Fix #227

8 years agoFix `&` and `>` are marked as htmlError in lists
Hiroshi Shirosaki [Fri, 8 Jan 2016 06:25:40 +0000 (15:25 +0900)]
Fix `&` and `>` are marked as htmlError in lists

Fix #214

8 years agoUse function! as with the other code
Hiroshi Shirosaki [Thu, 7 Jan 2016 13:43:20 +0000 (22:43 +0900)]
Use function! as with the other code

8 years agoAdd highlight `![image](URL)`
Hiroshi Shirosaki [Wed, 6 Jan 2016 06:14:06 +0000 (15:14 +0900)]
Add highlight `![image](URL)`

CommonMark has it.

8 years agoSyntax highlight is enabled in mkdLink
Hiroshi Shirosaki [Wed, 6 Jan 2016 06:08:39 +0000 (15:08 +0900)]
Syntax highlight is enabled in mkdLink

8 years agoRename using hyphen as with the other
Hiroshi Shirosaki [Wed, 6 Jan 2016 02:40:17 +0000 (11:40 +0900)]
Rename using hyphen as with the other

8 years agoFix link highlight in parenthesis
Hiroshi Shirosaki [Tue, 5 Jan 2016 09:36:50 +0000 (18:36 +0900)]
Fix link highlight in parenthesis

8 years agoFix substitute with `gdefault` on
Hiroshi Shirosaki [Tue, 5 Jan 2016 05:45:02 +0000 (14:45 +0900)]
Fix substitute with `gdefault` on

Do not substitute with `g` flag if `gdefault` is on.
Fix #225
We convert table format tests to varder.

8 years agoUpdate URL in README.md
Hiroshi Shirosaki [Tue, 5 Jan 2016 03:07:06 +0000 (12:07 +0900)]
Update URL in README.md

8 years agoFix fenced code block highlight with c++
Hiroshi Shirosaki [Wed, 23 Dec 2015 09:35:33 +0000 (18:35 +0900)]
Fix fenced code block highlight with c++

Add `+` to language characters.

8 years agoNo autoindent in code block
Hiroshi Shirosaki [Tue, 22 Dec 2015 09:44:31 +0000 (18:44 +0900)]
No autoindent in code block

Fix #78

8 years agoDrop highlight setting of mkdMath
Hiroshi Shirosaki [Tue, 22 Dec 2015 07:37:21 +0000 (16:37 +0900)]
Drop highlight setting of mkdMath

We use highlight setting of tex.vim.

`SyntaxOf()` doesn't return transparent syntax name. Instead we
use `texStatement`.
Fix #234

8 years agoUse tex syntax for inline math
Sebastian Klatt [Thu, 19 Nov 2015 01:04:30 +0000 (02:04 +0100)]
Use tex syntax for inline math

* Fix yaml interference
* Add unittest

8 years agoFix highlighting header title starts with `#`
Hiroshi Shirosaki [Tue, 22 Dec 2015 01:31:29 +0000 (10:31 +0900)]
Fix highlighting header title starts with `#`

Fix #171

8 years agoAdd tests for italic and bold syntax
Hiroshi Shirosaki [Mon, 21 Dec 2015 05:16:05 +0000 (14:16 +0900)]
Add tests for italic and bold syntax

Fix #137

8 years agoDon't interpret escaped _ chars in italics as the end of syntax match
Kevin MacMartin [Fri, 17 Oct 2014 05:57:41 +0000 (01:57 -0400)]
Don't interpret escaped _ chars in italics as the end of syntax match

8 years agoFix code format
Hiroshi Shirosaki [Mon, 21 Dec 2015 02:42:07 +0000 (11:42 +0900)]
Fix code format

8 years agoFix travis script for multiple commands
Hiroshi Shirosaki [Fri, 18 Dec 2015 02:06:59 +0000 (11:06 +0900)]
Fix travis script for multiple commands

8 years agoMerge pull request #237 from shirosaki/doc
Hiroshi Shirosaki [Fri, 18 Dec 2015 02:00:36 +0000 (11:00 +0900)]
Merge pull request #237 from shirosaki/doc

Generate vim help from README.md using vim-tools

8 years agoAdd `make doc` to travis
Hiroshi Shirosaki [Fri, 11 Dec 2015 01:25:03 +0000 (10:25 +0900)]
Add `make doc` to travis

8 years agoGenerate vim help from README.md using vim-tools
Hiroshi Shirosaki [Thu, 10 Dec 2015 08:16:22 +0000 (17:16 +0900)]
Generate vim help from README.md using vim-tools

Add a make rule to generate vim help file.
Tweak vim help using `sed`.
Add doc/vim-markdown.txt to `make install`.

8 years agoRemove spaces as coding style in README.md #213
Hiroshi Shirosaki [Mon, 14 Dec 2015 22:20:28 +0000 (07:20 +0900)]
Remove spaces as coding style in README.md #213

8 years agoAdd tests for preamble fold of python-mode style #213
Hiroshi Shirosaki [Mon, 14 Dec 2015 01:46:13 +0000 (10:46 +0900)]
Add tests for preamble fold of python-mode style #213

8 years agoAdd tests for fold text of python-mode style #213
Hiroshi Shirosaki [Mon, 14 Dec 2015 00:49:13 +0000 (09:49 +0900)]
Add tests for fold text of python-mode style #213

8 years agoMerge pull request #213 from wlonk/python-like
Hiroshi Shirosaki [Mon, 14 Dec 2015 00:47:02 +0000 (09:47 +0900)]
Merge pull request #213 from wlonk/python-like

Add support for python-mode style folding

8 years agoAdd support for python-mode style folding
Kit La Touche [Tue, 12 May 2015 17:17:15 +0000 (11:17 -0600)]
Add support for python-mode style folding

As a python-mode user in my day-to-day work, I would like the folding
styles of vim-markdown and python-mode to match, so that there's less
cognitive overhead in switching between my two most frequently-used
contexts.

To this end, I've made a distinct set of folding logic, keyed off of the
g:vim_markdown_folding_style_pythonic variable, so that using this style
is opt-in.

8 years agoMerge pull request #235 from jirislaby/patch-1
Hiroshi Shirosaki [Wed, 9 Dec 2015 06:47:02 +0000 (15:47 +0900)]
Merge pull request #235 from jirislaby/patch-1

Makefile: support DESTDIR

8 years agoFix directory on travis with TEST=latest
Hiroshi Shirosaki [Wed, 9 Dec 2015 06:18:52 +0000 (15:18 +0900)]
Fix directory on travis with TEST=latest

Fix #143

8 years agoAdd make rule to update dependencies
Hiroshi Shirosaki [Wed, 9 Dec 2015 05:59:33 +0000 (14:59 +0900)]
Add make rule to update dependencies

8 years agoFix travis script to work with make test
Hiroshi Shirosaki [Wed, 9 Dec 2015 05:57:49 +0000 (14:57 +0900)]
Fix travis script to work with make test

Fix #143

8 years agoAdd support for "make test", automatically installing deps
Daniel Hahler [Mon, 17 Nov 2014 13:11:43 +0000 (14:11 +0100)]
Add support for "make test", automatically installing deps

8 years agoMove test/folding.md to test/folding.vader
Hiroshi Shirosaki [Tue, 8 Dec 2015 06:36:34 +0000 (15:36 +0900)]
Move test/folding.md to test/folding.vader

Fix #73

8 years agoLines which start with '-' are needed in foldexpr
Hiroshi Shirosaki [Tue, 8 Dec 2015 05:05:43 +0000 (14:05 +0900)]
Lines which start with '-' are needed in foldexpr

8 years agoadd test file for folding
todesking [Fri, 11 Apr 2014 16:57:42 +0000 (01:57 +0900)]
add test file for folding

8 years agoFoldmethod: more performance
todesking [Mon, 7 Apr 2014 16:06:33 +0000 (01:06 +0900)]
Foldmethod: more performance

8 years agoFoldmethod: improve performance
todesking [Mon, 7 Apr 2014 16:02:51 +0000 (01:02 +0900)]
Foldmethod: improve performance