Vim: easymotion markers don't line up; could we add a setting to make them look more like vim?

Created on 7 Aug 2018  路  1Comment  路  Source: VSCodeVim/Vim

Is your feature request related to a problem? Please describe.

By default, the easymotion markers look pretty funky (see screenshot below).

They don't line up with the letters in the document (in the x or y direction) and the marker letters overhang the marker background.

Also, half of them are italic for some reason. Maybe that's a feature but I'm not really sure what that means.

screen shot 2018-08-05 at 5 46 06 pm

What I want is for them to look the way they do in vim:

Describe alternatives you've considered

I know that you can style the markers to some extent with:

vim.easymotionMarkerBackgroundColor,
vim.easymotionMarkerForegroundColorOneChar,
vim.easymotionMarkerForegroundColorTwoChar,
vim.easymotionMarkerWidthPerChar,
vim.easymotionMarkerHeight,
vim.easymotionMarkerFontFamily,
vim.easymotionMarkerFontSize,
vim.easymotionMarkerFontWeight,
vim.easymotionMarkerYOffset.

However, no matter what I do, I can't get it to look like they are normal characters in the document because of the offsets of the text within the markers and the x-offset of the marker relative to the letters in the actual document.

Describe the solution you'd like

What I think would be really helpful is either:

  • An option to provide arbitrary CSS for the tags so users can style them however they want (e.g. padding, margins, line-height)
  • Or, an option to display them in-line with the text so it just looks like the actual text of the document is changing when you go into jump mode, the way it is in Vim

Most helpful comment

I was having the same problem, but I found a workaround. Mine had to do with my line-height setting. "editor.lineHeight": 30,. Updating the "vim.easymotionMarkerHeight": 30, to match made it better for me. You're using custom fonts and things and might be different, but this may help a little.

>All comments

I was having the same problem, but I found a workaround. Mine had to do with my line-height setting. "editor.lineHeight": 30,. Updating the "vim.easymotionMarkerHeight": 30, to match made it better for me. You're using custom fonts and things and might be different, but this may help a little.

Was this page helpful?
0 / 5 - 0 ratings