nye17
nye17

Reputation: 13357

Is it possible to achieve the so-called "distraction free mode" in Vim?

Just curious, kinda like the "distraction free mode" of editors like sublime text, is it possible to centroid all the text to the middle of view field? It's always annoying to stare at the left-most end of the vim terminal in fullscreen mode with a widescreen monitor.

Upvotes: 6

Views: 2177

Answers (2)

lee kim
lee kim

Reputation: 1

try autohotkey which use to control windows hotkey press and gui

this is my autohotkey script which use to lauch Gvim

    SetTitleMatchMode, 2 ;set ahk title mode
    run C:\Program Files (x86)\Vim\vim73\gvim.exe ;lauch gvim
    winactivate, No Name ; active this window
    sleep, 500 ; sleep 500ms
    WinSet, Style, -0xC00000, [Vim default title] ;hide title bar
    WinSet, Transparent, 200, [Vim default title] ;make vim backgroup Transparent

Upvotes: 0

Herbert Sitz
Herbert Sitz

Reputation: 22256

You could take a look at VimRoom: http://projects.mikewest.org/vimroom/

Alternatively, you could set Vim up to have two or more vertical windows on your widescreen and have the same buffer automatically "snake" between them. Allows you to see two or three times as much of your buffer on the screen at once. See here for that option: auto-scrollable pagination with vim using vertical split

Upvotes: 9

Related Questions