Question about your neovim #2
-
|
Hi Kutsan! I thought init.vim is the one that defines all the sources that affects neovim. Such as How come you can define settings on dotfiles/.vim/plugin/packages/ etc yet they are not written in dotfiles/.vim/init.vim ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi there! Because folders such as autoload, colors, ftplugin, indent, keymap, plugin, syntax have a special meaning in vim/neovim world. They all behave differently and each of them have its rules. For example all files with Also, see the files in my ftplugin folder, the way you name them matters because when you open a JavaScript file, There is so much to tell, I heavily recommend this for further reading: https://vimways.org/2018/from-vimrc-to-vim/ Feel free to ask more and I'll try to explain. |
Beta Was this translation helpful? Give feedback.
Hi there!
Because folders such as autoload, colors, ftplugin, indent, keymap, plugin, syntax have a special meaning in vim/neovim world. They all behave differently and each of them have its rules.
For example all files with
.vimextention in plugin folder and its subfolders loads just after ourinit.vim/vimrcloaded up. Don't think them like a real vim plugin, you can put anything in plugin folder. Even though why myinit.vimfile hasruntime startup/disable.vimsomething, that's because I want to manually load those files just before files in my plugin folder start loading.Also, see the files in my ftplugin folder, the way you name them matters because when you open a JavaScript file,
j…