Created
March 12, 2019 08:57
-
-
Save qvacua/6332b87673ac3a9c9ce3d70067f87787 to your computer and use it in GitHub Desktop.
VimR command for making the session temporary and maximize the window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:VimRTempMaxWin() abort | |
VimRMakeSessionTemporary " The tools, tool buttons and window settings are not persisted | |
VimRHideTools | |
VimRMaximizeWindow | |
endfunction | |
command! -nargs=0 VimRTempMaxWin call s:VimRTempMaxWin() | |
" Call the following in the command line | |
" $ vimr --nvim '+au GUIEnter * VimRTempMaxWin' SOME_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment