{"id":18118381,"url":"https://github.com/sergioribera/vim-files","last_synced_at":"2025-07-13T22:08:29.213Z","repository":{"id":54879209,"uuid":"330874088","full_name":"SergioRibera/vim-files","owner":"SergioRibera","description":"This is a simple plugin to create directories and files from vim, and even using templates","archived":false,"fork":false,"pushed_at":"2023-12-31T07:29:33.000Z","size":312,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T13:33:53.778Z","etag":null,"topics":["neovim","neovim-plugin","nvim","nvim-plugin","vim","vim-plugin","vim-plugins"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SergioRibera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["SergioRibera"]}},"created_at":"2021-01-19T05:29:30.000Z","updated_at":"2024-08-28T01:26:19.000Z","dependencies_parsed_at":"2024-11-01T05:11:41.207Z","dependency_job_id":"875cd25a-bd91-4527-a826-081bee0420ee","html_url":"https://github.com/SergioRibera/vim-files","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/SergioRibera/vim-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioRibera%2Fvim-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioRibera%2Fvim-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioRibera%2Fvim-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioRibera%2Fvim-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SergioRibera","download_url":"https://codeload.github.com/SergioRibera/vim-files/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioRibera%2Fvim-files/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265212934,"owners_count":23728629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","neovim-plugin","nvim","nvim-plugin","vim","vim-plugin","vim-plugins"],"created_at":"2024-11-01T05:11:04.339Z","updated_at":"2025-07-13T22:08:29.180Z","avatar_url":"https://github.com/SergioRibera.png","language":"Vim Script","funding_links":["https://github.com/sponsors/SergioRibera","https://ko-fi.com/Q5Q321D62","https://www.patreon.com/SergioRibera","https://paypal.me/SergioRibera"],"categories":[],"sub_categories":[],"readme":"# Vim-Files\nThis is a simple plugin to create directories and files from vim, and even using templates\n## Installation\nPlug:\n``` Vim\nPlug 'SergioRibera/vim-files'\n```\nThe other way would be cloning the repository.\n## Instructions\n### Variables\n|               Name               |           Default Value           |                                                                                                                                  Description                                                                                                                                 |\n|:--------------------------------:|:---------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|\n|        g:vimFilesOpenMode        |                 0                 | This variable allows you to indicate which will be the opening method for the created file, being: `0` to open it in a Tab, `1` to open in vertical split, `2` to open in horizontal split, `3`  to open it in the current window and `4` so as not to open it automatically |\n| g:vimFilesThemplatesRootPathFile | '~/.config/nvim/themplates/files' | This variable indicates the path in which the file templates must be searched                                                                                                                                                                                                |\n| g:vimFilesThemplatesRootPathDir  | '~/.config/nvim/themplates/dirs'  | This variable indicates the path in which the folder structure templates should be searched.                                                                                                                                                                                 |\n| g:vimFilesThemplatesDir          | { }                               | This variable is a dictionary, which contains the name of the template and its file, which will contain, separated by lines, the directories to be created, example: {'react': 'react / native.txt'}                                                                         |\n| g:vimFilesThemplatesFiles        | { }                               | This variable is a dictionary, which contains the name of the template and its file, example: {'py-comp': 'python / component.txt'}                                                                                                                                          |\n|g:vimFiles_AutoConfirmDeleteFolder|            v:false                |    |\n### Functions\nto see the updated details of changes and added features, please follow [this link](https://sergioribera.gitbook.io/generic-tools/vim-nvim-plugins/vim-files/functions)\n### Examples\nWith vim open in the path `~/Projects/test`, I call the `VimFiles#CreateDir()` function, and enter `python/component`, the result is that now I have this complete path `~/Projects/test/python/component`\n\u003cbr/\u003e\u003cbr/\u003e\n![Graphical Explication Directory Create](https://raw.githubusercontent.com/SergioRibera/vim-files/main/doc/dir.gif)\n\u003cbr/\u003e\u003cbr/\u003e\nWith vim open in the path `~/Projects/test`, I call the `VimFiles#CreateFile()` function, and enter `python/view/User.py`, the result is that now the file is created and also opened, if not have the necessary folders created, the function will create them automatically and recursively\n\u003cbr/\u003e\u003cbr/\u003e\n![Graphical Explication File Create](https://raw.githubusercontent.com/SergioRibera/vim-files/main/doc/file.gif)\n### Example Configurations\n``` Vim\n\" Dictioinary of Dir Themplates\nlet g:vimFilesThemplatesDir = {\n    \\ 'react-native': 'react/native.txt',\n    \\ 'html-bootstrap': 'web/html/bootstrap.txt'\n    \\}\n\" Dictionary of Files Themplates\nlet g:vimFilesThemplatesFiles = {\n    \\ 'react-component': 'react/component.txt'\n    \\}\n\n\" Simple Created Relative Directory\nnoremap \u003cleader\u003ecd :call VimFiles#CreateDir()\u003cCr\u003e\n\" Simple Created Relative File\nnoremap \u003cleader\u003ecf :call VimFiles#CreateFile()\u003cCr\u003e\n\" Create Directories based in themplate\nnoremap \u003cleader\u003ecdd :call VimFiles#CreateDirThemplate()\u003cCr\u003e\n\" Create File based in themplate\nnoremap \u003cleader\u003ecff :call VimFiles#CreateFileThemplate()\u003cCr\u003e\n```\n### **Please report all bugs and problems**\nThanks for install this tool, for see more visit [my web](https://sergioribera.com) (Very soon I will add an app store)\n## Donate\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Q5Q321D62)\n[![](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/SergioRibera)\n[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/SergioRibera)\n\n#### Made with the ❤️ by [SergioRibera](https://sergioribera.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergioribera%2Fvim-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergioribera%2Fvim-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergioribera%2Fvim-files/lists"}