skylarbpayne / dotfiles

My dotfiles
0 stars 0 forks source link

Vim errors after install #1

Open skylarbpayne opened 2 months ago

skylarbpayne commented 2 months ago

After installing everything, finding I get the following errors whenever I try to open vim:

hint: Waiting for your editor to close the file... Error detected while processing /Users/skylarbpayne/.vimrc:

line 9:

E117: Unknown function: pathogen#helptags

line 10:

E117: Unknown function: pathogen#infect

line 14:

E117: Unknown function: vundle#rc

line 16:

E492: Not an editor command: Plugin 'gmarik/vundle'

line 17:

E492: Not an editor command: Plugin 'JuliaEditorSupport/julia-vim'

line 18:

E492: Not an editor command: Plugin 'christoomey/vim-tmux-navigator'

line 19:

E492: Not an editor command: Plugin 'Valloric/YouCompleteMe'

line 114:

I think this just means I need to install vundle and/or pathogen. It has been so long since I set up a new computer I have totally forgotten.

skylarbpayne commented 2 months ago

Setting up Vundle: https://github.com/VundleVim/Vundle.vim?tab=readme-ov-file#quick-start

Running the following command which should hopefully install it:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Still getting same errors. I was hoping to have fewer errors. Probably need to install the plugins themselves?

skylarbpayne commented 2 months ago

To install from command line: vim +PluginInstall +qall Didnt' seem to work.

Also running :PluginInstall gets an error "Not an editor command"

skylarbpayne commented 2 months ago

Seems like I needed to install Vundle in a slightly different place. Not sure why though. See: https://stackoverflow.com/questions/30017366/vim-error-e492-not-an-editor-command-plugininstall

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim
skylarbpayne commented 2 months ago

PluginInstall did something now; but still kind of have the same errors. Going to try to just install pathogen at this point.

skylarbpayne commented 2 months ago

Pathogen install is pretty easy... And made most of the errors go away! See: https://github.com/tpope/vim-pathogen

Cmd

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Remaining errors:

Error detected while processing /Users/skylarbpayne/.vimrc:
line  114:
E185: Cannot find color scheme 'solarized'
skylarbpayne commented 2 months ago

Followed install guide here for solarized scheme: https://github.com/altercation/vim-colors-solarized

cd ~/.vim/bundle
git clone git://github.com/altercation/vim-colors-solarized.git
mv vim-colors-solarized ~/.vim/bundle/

git clone is taking a MINUTE though. Shit.

skylarbpayne commented 2 months ago

I think I should also remove when I installed Vundle to plugin directory; because I think everything is going through pathogen in my setup.

EDIT: if it ain't broke don't fix it. But this gives me a record of what I did at least

skylarbpayne commented 2 months ago

Okay git clone keeps timing out. Looking at SO: https://stackoverflow.com/questions/72915782/fatal-unable-to-connect-to-github-com-github-com0-140-82-121-3-errno-opera

Error

git clone git://github.com/altercation/vim-colors-solarized.git
Cloning into 'vim-colors-solarized'...
fatal: unable to connect to github.com:
github.com[0: 140.82.116.4]: errno=Operation timed out

Looks like the way I'm cloning isn't supported..? Maybe need to use ssh or https? Yup! The next cmd did the trick:

git clone https://github.com/altercation/vim-colors-solarized.git
skylarbpayne commented 2 months ago

No errors now! But I now have the weird highlight...

Screenshot 2024-08-31 at 1 07 13 PM

I remember running into this before...

skylarbpayne commented 2 months ago

I just set the theme in iterm to solarized. But I think the theme is still a little wrong... I remember having more colors. But that's a problem for another day I think...

skylarbpayne commented 2 months ago

I think this has to do with my oh-my-zsh theme not being installed. I used zeta. But not sure I installed it. I think I should just have to:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/skylerlee/zeta-zsh-theme/master/scripts/install.sh)"

Note: needed to run with sudo because... reasons? Okay, getting closer with this, but not quite there...

Screenshot 2024-08-31 at 1 21 17 PM

I think the text should be colored... and the git branch should show??

skylarbpayne commented 2 months ago

I can't figure this out for now. Giving up and moving on, fuck this lmao.