simplenote-vim / simplenote.vim

vim plugin to interact with the simplenote service
http://www.vim.org/scripts/script.php?script_id=3582
MIT License
368 stars 31 forks source link

Right justification breaks when 'number' is enabled #108

Closed m1foley closed 4 years ago

m1foley commented 4 years ago

When%> is included in g:SimplenoteNoteFormat (which is the default behavior) it doesn't right-justify properly when the number option is enabled.

set number is in my vimrc, and when I execute :SimplenoteList the lines extend offscreen by 5 characters or so. :set nonumber fixes the formatting.

atomicules commented 4 years ago

This feels vaguely familiar. Like I've come across this myself and perhaps decided to live with it and/or decided it couldn't be fixed... not sure. Will try to take a look soon.

I think I know what you mean though.

atomicules commented 4 years ago

Ah yeah, I mentioned that on this commit: https://github.com/mrtazz/simplenote.vim/commit/f7debaf1cf6fc7fd1b771ee9278829b07cf4b0e9

This doesn't account for the Vim configuration setting of numberwidth, but I'm not sure if it should.

Will take a look at this again.

atomicules commented 4 years ago

I've got a fix for this. Going to push it and a new release once https://github.com/simplenote-vim/simplenote.py/pull/27 is all sorted and merged in as well.

atomicules commented 4 years ago

Ok, change of plan, pushed a fix for this now since the simplenote.py changes are going to take longer than I thought.