On Wed, Nov 22, 2023 at 7:29 PM Girish <[email protected]> wrote: > > When I add 1 letter of virtual text through prop_add() it shifts the > remaining text on the line by one character. Is it possible to make it > overwrite existing text so there is no shifting of characters? > Thank you > girish > This is documented at ":help virtual-text". Depending on how you call prop_add() your virtual text, which IIUC can be more than one character long, pushes whatever is after it either horizontally or vertically. If you want no shifting of characters it is possible to display the virtual text "in column zero" and in that case "it will be displayed above, below or after the actual text" depending on the "text_align" and "text_wrap" arguments. Since the virtual text is not editable it is not possible to place the cursor on it.
Best regards, Tony. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXv_Tvs2-Cu8RXMVd9NxPphPRhd6ucr-F814gaCR67Au0g%40mail.gmail.com.
