LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2011, 01:20 PM   #1
changowero
LQ Newbie
 
Registered: Apr 2011
Location: Mexico
Distribution: Archlinux
Posts: 11

Rep: Reputation: 0
Vim Plugin Issue


Hi!

I have already looked for this issue, but I cannot seem to find the answer. I was looking at some Vim plugins, and I installed one called Abolish. The page from where I got it (www.vim.org) only says:

install details
Extract in ~/.vim or ~\vimfiles

So I extracted it in ~/.vim. Now, the issue is that, if I edit a file as root, I am able to use the commands; however, when I edit a file as a normal user, these commands won't work.

So... could this be a permissions issue? Or should I copy the plugin in some other directory, maybe?

Thanks in advance
 
Old 05-04-2011, 01:23 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Did you only install the plugin as root in that user's home directory? If so then you most likely have to copy them over to your 'normal' user's home directory. The ~ stands for home directory. For root that normally is /root and for your normal user /home/username. So copy the files in /home/username/.vim and set the permissions/ownership to that user.

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-04-2011, 01:45 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Never used it myself, but there is a global /usr/share/vim/vimfiles directory which is scanned when vi(m) starts, you might try that location.

Make sure the permissions are 644 for the files.

Hope this helps.
 
Old 05-04-2011, 01:48 PM   #4
changowero
LQ Newbie
 
Registered: Apr 2011
Location: Mexico
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
@Eric

Thank you! That did the trick! And also, I am using linux in a Virtual Machine to learn (and install it as my main OS as soon as I get a new computer), so now I actually know a bit more about how linux works =D

Thank you very much!
 
Old 05-04-2011, 02:06 PM   #5
changowero
LQ Newbie
 
Registered: Apr 2011
Location: Mexico
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
@druuna No, that did not help. I gave it 644 permissions, and I even changed the group to users, to see if that way it worked, and it didn't.
 
Old 05-04-2011, 02:10 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by changowero View Post
@Eric

Thank you! That did the trick! And also, I am using linux in a Virtual Machine to learn (and install it as my main OS as soon as I get a new computer), so now I actually know a bit more about how linux works =D

Thank you very much!
Hi,

You're welcome. Glad you got it working. If you consider your problem solved then please mark it as such.

Kind regards,

Eric
 
Old 05-04-2011, 02:17 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by changowero View Post
@druuna No, that did not help. I gave it 644 permissions, and I even changed the group to users, to see if that way it worked, and it didn't.
Just to make sure : You are talking about placing the files in the /usr/share/vim/vimfiles directory, gave them the correct permissions (and they should be owned by root:root) and it did not work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vim plugin for hiding block comments sadarax Linux - General 9 03-31-2014 05:54 PM
Issue upgrading VIM 6.3 to 7.2 deibertine Linux - Software 2 05-05-2010 04:00 PM
vim plugin's FragInHell Linux - General 0 02-17-2008 10:52 PM
Vim plugin for Eclipse simopal6 Programming 2 11-01-2007 04:31 AM
vim plugin - taglist doesn't work correctly milod Programming 0 07-19-2003 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration