Skip to content

Commit 15bc853

Browse files
committed
Add More Example Configure
1 parent d366f89 commit 15bc853

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,24 @@ With vim open in the path `~/Projects/test`, I call the `VimFiles#CreateFile()`
3232
![Graphical Explication File Create](https://raw.githubusercontent.com/SergioRibera/vim-files/main/doc/file.gif)
3333
### Example Configurations
3434
``` Vim
35+
" Dictioinary of Dir Themplates
36+
let g:vimFilesThemplatesDir = {
37+
\ 'react-native': 'react/native.txt',
38+
\ 'html-bootstrap': 'web/html/bootstrap.txt'
39+
\}
40+
" Dictionary of Files Themplates
41+
let g:vimFilesThemplatesFiles = {
42+
\ 'react-component': 'react/component.txt'
43+
\}
44+
45+
" Simple Created Relative Directory
3546
noremap <leader>cd :call VimFiles#CreateDir()<Cr>
47+
" Simple Created Relative File
3648
noremap <leader>cf :call VimFiles#CreateFile()<Cr>
49+
" Create Directories based in themplate
50+
noremap <leader>cdd :call VimFiles#CreateDirThemplate()<Cr>
51+
" Create File based in themplate
52+
noremap <leader>cff :call VimFiles#CreateFileThemplate()<Cr>
3753
```
3854
### **Please report all bugs and problems**
3955
Thanks for install this tool, for see more visit [my web](https://sergioribera.com) (Very soon I will add an app store)

0 commit comments

Comments
 (0)