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

雨燕双飞 提交于 2019-12-21 04:42:20

问题


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.


回答1:


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




回答2:


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


来源:https://stackoverflow.com/questions/8484040/is-it-possible-to-achieve-the-so-called-distraction-free-mode-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!