Skip to content

Instantly share code, notes, and snippets.

@qvacua
Created March 12, 2019 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qvacua/6332b87673ac3a9c9ce3d70067f87787 to your computer and use it in GitHub Desktop.
Save qvacua/6332b87673ac3a9c9ce3d70067f87787 to your computer and use it in GitHub Desktop.
VimR command for making the session temporary and maximize the window
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