nicknisi / dotfiles

vim, zsh, git, homebrew, neovim - my whole world
MIT License
2.76k stars 359 forks source link

I couldn't figure out the installation process. #14

Closed AbhimanyuAryan closed 8 years ago

AbhimanyuAryan commented 8 years ago

I thought that these three line would do the magic and I wouldn't have to do anything. But nothing happened I have still the same vim and terminal. Color schemes and other stuff too is same.

git clone https://github.com/nicknisi/dotfiles.git ~/.dotfiles cd ~/.dotfiles ./install.sh

Here are some screenshots:

1 2 3 4 5 6
nicknisi commented 8 years ago

Hi, in your first screenshot, the symlink for ~/.zshrc was not created because you already have a .zshrc file in your home directory, which the install script won't overwrite. This file is responsible for setting up the color scheme and aliasing vim to nvim. Thanks!

You can back up your original zshrc and then run the following to create the symlink to the one provided here.

ln -s ~/.dotfiles/zsh/zshrc.symlink ~/.zshrc
AbhimanyuAryan commented 8 years ago

@nicknisi do you want me to create symbolic links for ln -s ~/.dotfiles/vim/vimrc.symlink ~/.vimrc " I have backed up old .vimrc to .vimrc.bak ln -s ~/.dotfiles/vim/vim.symlink ~/.vim " I have backed up old .vim to .vim.bak

But i have some error

screen shot 2015-11-22 at 10 48 13 am

I also copied this base16-eighties.vim color scheme in .dotfiles/vim/colors/here. But still i get this error.

nicknisi commented 8 years ago

@AbhimanyuAryan Yeah, those symlinks should be created as well. Have you installed the vim plugins yet by running vim +PlugInstall?

AbhimanyuAryan commented 8 years ago

Also there is an old theme flash at starting up iTerm. screen recording 2015-11-22 at 10 52 am

should I destroy symlinks and manually copy all your configurations in the home directory?

AbhimanyuAryan commented 8 years ago

@nicknisi I can't run vim +PlugInstall or :PluginInstall before fixing the base16 color scheme error.

❯ vim +PlugInstall Error detected while processing /Users/abhimanyuaryan/.dotfiles/config/nvim/init.vim: line 204: E185: Cannot find color scheme 'base16-eighties' Press ENTER or type command to continue

nicknisi commented 8 years ago

The theme is installed using vim-plug. After pressing 'Enter', does nvim continue to install the plugins? If so, quitting and restarting vim after it is done should resolve the issue. screen capture on 2015-11-21 at 23-31-01

Also, the flash of the original theme is normal for me as well. I'm looking for a better way to load this theme.

AbhimanyuAryan commented 8 years ago

Thanks @nicknisi what all symlinks should I create other than vim and zsh? I can see there is tmux and few other things also in .dotfiles.

nicknisi commented 8 years ago

No problem! Anything that ends with a .symlink in the repo has a symlink created in the home directory. Since you ran the install script, it indicates which symlinks weren't created in the first screenshot you posted.

Hope that works! Let me know if you have any other issues. Thanks!

AbhimanyuAryan commented 8 years ago

Nope @nicknisi and Thanks for quick replies.

AbhimanyuAryan commented 8 years ago

@nicknisi kein/ctrlp.vim is deprecate I changed Plugin file from Plug 'kien/ctrlp.vim' to Plug 'ctrlpvim/ctrlp.vim' and typed nvim +PlugInstall but nothing seem to happen. I still get the below warning. Any idea?

~ ❯ vim vim-devicons: https://github.com/kien/ctrlp.vim is deprecated since v0.7.0, please use https://github.com/ctrlpvim/ctrlp.vim Press ENTER or type command to continue

Also you are using pangloss javascript plugin in plugins.vim but i don't see any indentation with my javascript file.

screen shot 2015-11-22 at 12 36 28 pm
nicknisi commented 8 years ago

I noticed that deprecation warning today as well. I have checked in a fix, which changes to the https://github.com/ctrlpvim/ctrlp.vim version of ctrlp.

That appears to be a minified file, which removes whitespace and comments in order to save space when transferring the file to a client. You're better off opening the non-minified version of the file, but can have vim attempt to format it by running gg=G. However, this typically doesn't work well on minified files.

AbhimanyuAryan commented 8 years ago

@nicknisi How did you install never version https://github.com/ctrlpvim/ctrlp.vim. I have changed vim Plugin file and installed plugin via PluginInstall, but I still get this deprecated error. Also, Pangloss/vim-javascript is not working for me. You have already seen that in above screenshot. Please get these two things fixed. I have no idea why newer plugins are not installing :+1:

nicknisi commented 8 years ago

These plugins are both working as expected. As I mentioned above, vim won't automatically format minified files for you. The plugin assists you when writing code to have proper indentation and syntax highlighting but won't reformat already existing code.

Please refer to the vim-plug documentation for information on how to update plugins. Thanks!

nicknisi commented 8 years ago

A little more info on updating ctrlp's version installed from vim-plug. You'll need to change line 8 of config/nvim/init.vim to Plug 'ctrlpvim/ctrlp.vim'. Then, close vim and run the following commands:

vim +PlugClean

Confirm that the old ctrlp can be deleted, and then you can run :+PlugInstall inside vim to install the new version. Here's a screencast of the procedure. Hope this helps! Thanks! screen capture on 2015-11-22 at 11-05-42

AbhimanyuAryan commented 8 years ago

How do you get those songs :dancer: to show up at bottom? @nicknisi are able to switch songs via terminal?

nicknisi commented 8 years ago

That's a script running in tmux to ask iTunes what song is displaying and display it. The scripts are located in the tmux/ section of the repo. I can't switch songs via the terminal in this setup, unfortunately.

AbhimanyuAryan commented 8 years ago

@nicknisi Why is this distortion with terminal windows and vim? I noticed this distortion persists when I am using multiple tmux windows and try resize the terminal windows again and again.

ruby

AbhimanyuAryan commented 8 years ago

Also @nicknisi have you already included that iTunes script in dotfile or I have to do that on my own http://fholgado.com/post/18824706541/display-itunes-current-track-in-tmux

If you have done that already. How do I enable it?

AbhimanyuAryan commented 8 years ago

Nick I had cloudapp configured with my old .zshrc.bak. So, I could upload files via terminal. Also there were so many themes and plugins in oh-my-zsh folder what happen to those? I had set themes to random. So, When ever I start new terminal session, It would show me new theme

screen shot 2015-11-23 at 1 27 31 am

My .zsh.bak

# Path to your oh-my-zsh installation.
export ZSH=/Users/abhimanyuaryan/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="cobalt2"

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
. `brew --prefix`/etc/profile.d/z.sh
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git extract cloudapp)

# User configuration

export PATH="/Users/abhimanyuaryan/bin:/usr/local/bin:/Users/abhimanyuaryan/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
# export MANPATH="/usr/local/man:$MANPATH"

source $ZSH/oh-my-zsh.sh

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

In dotfile/zsh there are no plugins and themes. How can I combine my stuff with dotfile?

nicknisi commented 8 years ago

It looks like your old configuration uses oh-my-zsh, which is not compatible with my setup. My recommendation would be to revert back to your old setup and then manually pick and choose the pieces that make sense to take from my configuration and add them, in order to build the environment that works best for you.

AbhimanyuAryan commented 8 years ago

@nicknisi I would like to use your configuration initially because I am new to vim, zsh, and other stuff. I will use it for and year or so. Then I'll try to create my own configurations once I am comfortable with it.

I want to do a fresh installation of .dotfiles.

What I did to clear out symlinks and old stuff --->

I basically deleted ~/.dotfile. I could have manually unlinked everything with unlink command but that was time consuming. I hope deleting the directory itself has cleared out complete data and the symbolic links created.

I uninstalled tmux, neovim, reattach-to-user-namespace, z, zsh, ack, nginx and some other formulaes via brew uninstall. Please let me know if I need to uninstall any other formulae to clean all configurations. Now, I am left with only these homebrew formulaes:

screen shot 2015-11-23 at 12 10 13 pm

I have delete all the . files from home folder. I have only these files left. No .zshrc, .vim files are there

screen shot 2015-11-23 at 12 12 32 pm screen shot 2015-11-23 at 12 12 41 pm

Can I now clone .dotfiles again to start fresh. I have also uninstalled oh-my-zsh so I could use your zsh and both would not clash with each other.

AbhimanyuAryan commented 8 years ago

@nicknisi I fixed it don't bother.