Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldot committed Jul 24, 2024
1 parent 4407925 commit 0d53c08
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
A little help for upgrading to Vim9.

The tool is nothing but an aid to convert legacy Vim scripts to Vim 9
language. It does not make miracles, nor it is bullet proof, it is certainly
buggy and have a questionable design, but it may help you in speeding up the
conversion process.
language.

<!-- It does not make miracles, nor it is bullet proof, it is certainly -->
<!-- buggy and have a questionable design, but it may help you in speeding up the -->
<!-- conversion process. -->

It does not make miracles, nor it is bullet proof, but it may help you in
speeding up the conversion process.

What it is supposed to do:

Expand All @@ -29,6 +34,10 @@ errors, but the error messages should tell you what shall be fixed and how.
Also, mind that `:h vim9` can be a great support for fixing the remaining
errors if you really don't know how.

If you add a couple of lines on top of your legacy script, then you can
perform a line-by-line comparison between the old and the converted script.
(Tip: use `set scrollbind` or `:diffthis` on both the buffers.)

To see how the tool perform the upgrade you can take a look at the
`test_script.vim` and `expected_script.vim` in the test folder of this repo.
As you will see, some manual work is still required, but the starting point is
Expand Down

0 comments on commit 0d53c08

Please sign in to comment.