Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too complex #1

Open
gatspy opened this issue Aug 4, 2016 · 5 comments
Open

too complex #1

gatspy opened this issue Aug 4, 2016 · 5 comments

Comments

@gatspy
Copy link

gatspy commented Aug 4, 2016

Your dotfiles really complex , after installation , nvim run error in customer_tomorrow.vim Unknown function: colorpal # begin CPHL not command
in zplug install script the url should be change.

@tweekmonster
Copy link
Owner

Oh, don't install it. It's very specific to my setup. I leave it online as a reference only. CPHL refers to a plugin that's under development: https://github.com/tweekmonster/colorpal.vim

@tweekmonster
Copy link
Owner

If you ran make install or ./install, you should run make clean-links to remove the symlinks it created.

@gatspy
Copy link
Author

gatspy commented Aug 4, 2016

you are so cool! your dotfiles so profound, i cannot make heads or tails of it.
Why not consider creating a awesome lightweight dotfiles repo.

@tweekmonster
Copy link
Owner

Haha, thanks :)

I tried making my dot files simple, but over time they will eventually become one large and unreadable config file. That became frustrating when I wanted to change variables.

I think you're mainly interested in the Vim config, so here's a brief explanation of how it works so it's a little bit easier to understand it:

  • In init.vim, it sets expected directories, then loads configs for all, vim, or nvim.
  • In _source, scripts are named by their purpose and have a number prefixed for the load priority. The number prefix is similar to how Debian names scripts in /etc/rc*.d.
  • Scripts that that start 01- or 02- are always loaded.
  • Scripts that start with 03- and up requires the plugins directory to exist. This allows me to install my dotfiles on a new computer and use Vim without a lot of errors being generated because plugins aren't installed yet.
  • Everything under after is for settings that only matter to certain file types.

@gatspy
Copy link
Author

gatspy commented Aug 4, 2016

yeah, i just stay at the level of use. your way is suitable for study and research, is too esoteric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants