Ultimate goal is using underlined text in VIM (with st terminal). At this point I cannot paste underlined text in the st terminal (or VIM with st terminal). And text from text files with an underline does not show with an underline in the st terminal (or VIM in st terminal).
I opened a topic about on Reddit: font_formatting_st_differs
But I think I/it became a bit stuck.
Today I saw that I can print text in the st terminal with an underline:
printf "\e[1;4m%s\e[0m\n" "test"
Perhaps adding the underline through VIM could solve my problem. In VIM (with st terminal) I can add an underlined text. The following VIM command changes the text to underlined text:
:match Underlined /abc\|abc/
But after saving the file (and opening) the underline is gone.
Excuses for my low level of experience.
Update: Thanks for the replies.
- Terminal versus vim: yes, I understand. Problem is not with VIM. Problem is with the st terminal. I was hoping for some sort of workaround, using the "Underlined" vim functionality.
- Pager versus word processor: Both not. I am using underlined strings in my window manager. For this I have edited the config.h file. This cannot be done with a different file format. I added a screenshot of VIM with gnome-terminal and VIM with st.
Saving the file with abc underlined. Does not safe the file with abc underlined. I did try the AnsiEsc.vim plugin. But it does not work. Problem is not with the plugin I think, but with the fact that saving the file with abc underlined, does not safe the file with abc underlined.