Because of some reason, the .vimrc file and .vim folder has been saved in the
specified location:
- .vimrc: ~/.marslo/.vimrc
- .vim: ~/.marslo/.vim/
- colorscheme is marslo256.vim (made by myself):
~/.marslo/.vim/bundle/marslo.vim/colors/marslo256.vim
I found that, the Error as blow will show EVERYTIME while .vimrc saving:
```
Error detected while processing
/root/.marslo/myprograms/vim74/share/vim/vim74/syntax/synload.vim:
line 19:
E185: Cannot find color scheme 'marslo256'
Press ENTER or type command to continue
```
In My .vimrc file, there's a command would be executed in every .vimrc saving
for autoloading the change of vimrc:
```
autocmd! bufwritepost $HOME/.marslo/.vimrc source %
```
And I also checked the Line 19 in syntax/synload.vim:
```
17 " Set the default highlighting colors. Use a color scheme if specified.
18 if exists("colors_name")
19 ¦ exe "colors " . colors_name
20 else
21 ¦ runtime! syntax/syncolor.vim
22 endif
```
Then, I tried analyzed the `startuptime` for launching `.vimrc` file, the
"startuptime" file can be found at:
https://github.com/Marslo/test/blob/master/vimrc_startuptime. Something wired,
because "/root/.marslo/myprograms/vim74/share/vim/vim74/syntax/syncolor.vim"
file has been launched FOUR TIMES (l18, l38, l39, l40) !!! WHY ???
Never mind, because of there NOTHING wrong while start .vimrc at first time.
I just want to know why the error shows in everytime saving vimrc (autocmd +
exe).
------------
- My vimrc file:
https://github.com/Marslo/VimConfig/blob/master/Configurations/vimrc_PublicEnv
- My colorscheme file (marslo256.vim):
https://github.com/Marslo/marslo.vim/blob/8c6dc141b3a7ff4ac99d39e26704bb53a9b68a23/colors/marslo256.vim
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.