Files
Create Files
this function creates the specified file, also creating the necessary directories for its creation and opening it depending on the variable g:vimFilesOpenMode
. For example, if you enter src/style/main.css
, the function creates the directories that do not exist and opens main.css
VimFiles#FileCreate()
These functions do the same but open the file differently, as if the variable g:vimFilesOpenMode
were changed
VimFiles#FileCreateTab() " Open the new file in a new tab
VimFiles#FileCreateVS() " Open the new file in a vertical split
VimFiles#FileCreateHS() " Open the new file in a horizontal split
VimFiles#FileCreateCW() " Open the new file in the current window
this function creates the specified file, just like the previous function, with the difference that it fills the file with the text containing the indicated template
VimFiles#FileTemplateCreate()
These functions do the same but open the file differently, as if the variable g:vimFilesOpenMode
were changed
VimFiles#FileTemplateCreateTab() " Open the new file in a new tab
VimFiles#FileTemplateCreateVS() " Open the new file in a vertical split
VimFiles#FileTemplateCreateHS() " Open the new file in a horizontal split
VimFiles#FileTemplateCreateCW() " Open the new file in the current window
Manipulate Files
These functions are mainly responsible for renaming, deleting and moving files and directories This function renames the currently focused file and will create the required directories.
VimFiles#ManipulateRenameCurrentFile()
This function renames the file with the path indicated and create the necessary directories.
VimFiles#ManipulateRenameFile()
This function will move the focused file to the path indicated later and will create the necessary directories.
VimFiles#ManipulateMoveCurrentFile()
This function will move the file that is indicated to the path that is indicated later and will create the directories that are needed.
VimFiles#ManipulateMoveFile()
This function removes the focused file.
VimFiles#ManipulateDeleteCurrentFile()
This function deletes the file indicated. Note: do not delete the directory at any time or under any circumstances.
VimFiles#ManipulateDeleteFile()
Last updated
Was this helpful?