Before loading .config/nvim/init.vim
, g:nyaovim_version
is set to version string. You can check if the Vim script code is executed on NyaoVim or not (init.vim
or plugin code).
if exists('g:nyaovim_version')
" Write NyaoVim specific code here
" ...
endif
g:nyaovim_version
is a string which represents the version of NyaoVim. You can also use it to check the version of NyaoVim.
If you drag and drop a file to NyaoVim, NyaoVim will start to edit the file with :edit!
.
When you start NyaoVim, NyaoVim's application icon will appear in your OS X dock. As other general OS X applications, 'Recent Files' item is available as dock menu. (Please right click on an icon in dock.)
If you start to edit some file in NyaoVim (e.g. :edit some-file
), NyaoVim registers it as 'recent file' and enable quick access with 'Recent Files' item in dock.
When a file icon is shown just left of title in title bar, you can select a file to edit via the icon. Please try clicking the icon with command key (Cmd + LeftClick) then you will see the pull-down menu to select a directory. After selecting directory, you can select a file in the directory to start editing.