tidalcycles / vim-tidal

Vim plugin for TidalCycles
MIT License
223 stars 56 forks source link

Try to use getcurpos instead of getpos when available #5

Closed munshkr closed 7 years ago

munshkr commented 9 years ago

Now it's using getpos('.') (after merging #4), but getcurpos is preferred because besides storing row and column, it stores preferred column when moving the cursor vertically.

Use exists to check if getcurpos is defined (it was added in version 7.4)