1

I'd like to write and edit files and add a padding, or frame the text with margin of blank space between the text and the terminal window's edge. I don't know if that's the correct terminology, but I don't want the text flush against the edges. Is there a way to adjust the Vim screen padding margin?

Also, the terminal program I use is called "Konsole" Maybe there is a way to make adjustments for it, rather than Vim?

2
  • 2
    There are plugins for "distraction-free writing" that do something like this. Perhaps you could steal a page out of one of their books (or use one of the plugins). One example is github.com/junegunn/goyo.vim and one way to start digging if you want only the specific feature rather than a plugin dependency might be to trace how resizes are handled, github.com/junegunn/goyo.vim/blob/master/autoload/goyo.vim#L85 – jjaderberg Feb 16 '17 at 23:02
  • 1
    You are right, some terminal programs allow you to add a border so the text is not flushed against the edges. For instance, gnome-terminal, xterm, and st all allow this. I don't know if konsole allows it. – guillem Feb 17 '17 at 9:53
1

Go to your Konsole's profile at ~/.local/share/konsole/ and under the [General] section add the following:

TerminalMargin=4

This example is taken from Reddit.

1
  • It works! Those units appear to represent pixels. (definitely not characters) – user12711 Jun 10 '20 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.