Fresh Vim install, Vim permission errors, Vundle not functional

278 views
Skip to first unread message

Joseph Minicucci

unread,
Jan 12, 2014, 4:25:22 PM1/12/14
to vim...@googlegroups.com
I have the following vim packages installed on Linux Mint Debian Edition:

vim vim-common vim-tiny vim-runtime vim-doc

I had the above packages installed before, and after installing Vundle (it was functional via instructions on githubdotcom/gmarik/vundle) decided, to avoid plugin conflicts, to completely remove and reinstall all of the above vim packages/.vim folder, in order to fully utilize Vundle as a means to manage my plugins. In my file explorer, I can see that the folder created from git cloning ~/.vim and all inherited folders/files belong to root. This causes the following problems with Vundle: First of all when I executed :BundleSearch query:

http://imgur.com/ZB2RnR7

To further diagnose my problem, I tried adding a bundle manually into my vimrc:

Bundle 'scrooloose/nerdtree'

Using the exact same vimrc setup in the Vundle github, it worked on the previous installation. Now when I attempt to :BundleInstall I get the following permission-based errors:

[140112 13:48:10]

[140112 13:48:10] Bundle scrooloose/nerdtree

[140112 13:48:10] $ git clone --recursive 'https://github.com/scrooloose/nerdtree.git' '/home/ahqiao/.vim/bundle/nerdtree'

[140112 13:48:10] > fatal: could not create work tree dir '/home/ahqiao/.vim/bundle/nerdtree'.: Permission denied\00

[140112 13:48:11]

[140112 13:48:11] Helptags:

[140112 13:48:11] :helptags /home/ahqiao/.vim/bundle/vundle/doc/

[140112 13:48:11] > Error running :helptags /home/ahqiao/.vim/bundle/vundle/doc/

[140112 13:48:11] Helptags: 1 bundles processed

Furthermore, my vimrc also contains the standard two lines for plugins:

filetype plugin on

set nocp

In the past, I have also had problems with :helptags not being able to access ~/.vim/doc because of permission so I have had to manually copy the helpfiles into a non-root folder and point to that with :helptags.. How can I overcome these root problems? Vundle is really essential for me to manage the amount of plugins I require to code and keep track of.

Thanks for reading

Matteo Cavalleri

unread,
Jan 13, 2014, 4:42:29 AM1/13/14
to vim...@googlegroups.com
> In my file explorer, I can see that the folder created from git cloning ~/.vim and all inherited folders/files belong to root.


I don't know how did you cloned .vim from git, but this command should fix your permission problem:

sudo chown -R ahqiao:ahqiao .vim

you'll be prompted to enter a password, which is YOUR password, not the root one.

Reply all
Reply to author
Forward
0 new messages