fmoralesc / vim-tutor-mode

interactive tutorials for vim
84 stars 4 forks source link

Plugin does not work well on Vim 7.3 #4

Open miquelbeltran opened 9 years ago

miquelbeltran commented 9 years ago

After the fix in #3 the tutorial screen didn't look nice to me, so I upgraded my vim from 7.3 to 7.4.

As you can see, it looks different in both versions.

Vim 7.3: captura de pantalla 2015-01-04 18 24 02

Vim 7.4: captura de pantalla 2015-01-04 18 22 38

It's not a blocking issue for me since it works well in 7.4. But I thought you may want to know.

fmoralesc commented 9 years ago

Thanks. I half-expected this, because vim-tutor-mode uses the conceal feature extensively, and didn't remember if 7.3 had it.

fmoralesc commented 9 years ago

I'll put a note on the README and the docs.

fmoralesc commented 9 years ago

An idea: if vim's version is < 7.4, we could pre-process the tutorials using BufPreCmd so the links are cleaner (although with less features). This way,

  press [the «x» key](x) to delete the character under the cursor

would become

 press [x] to delete the character under the cursor.

(I would have to implement a method to follow that kind of link though).

I'm not sure how this method could work for the expect clauses. Perhaps I could hide them through

:hi tutorSampleExpect guifg=bg guibg=bg