Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Vim as IDE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Balisong
n00b
n00b


Joined: 13 Jun 2014
Posts: 13

PostPosted: Sun Jul 13, 2014 8:04 pm    Post subject: [SOLVED] Vim as IDE Reply with quote

Hi!

I'm trying to use Vim for programming, specifically for c++ but with no luck. I want to install vim-addon-manager so i can install some plugins to use vim as an IDE. If anyone has done this or can point me in the right direction please. Google didn't solve my problem


Last edited by Balisong on Mon Jul 14, 2014 11:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jul 13, 2014 8:38 pm    Post subject: Re: Vim as IDE Reply with quote

Balisong wrote:
I'm trying to use Vim for programming, specifically for c++ but with no luck. I want to install vim-addon-manager so i can install some plugins to use vim as an IDE. If anyone has done this or can point me in the right direction please. Google didn't solve my problem

Balisong ... I've not used vim-addon-manager, but it sounds as though (wild guess) you may be trying to use it to install global plugins which your user doesn't have permissions to do. If you simply want to install/manage plugins for your user then use something like pathogen or vundle.

As for vim as IDE, have you read this?

best ... khay
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Sun Jul 13, 2014 8:45 pm    Post subject: Reply with quote

For a first addon use the gentoo ebuild c-support.

Code:
[I] app-vim/c-support
     Available versions:  6.0 6.1
     Installed versions:  6.1(10:11:27 24.06.2014)
     Homepage:            http://www.vim.org/scripts/script.php?script_id=213
     Description:         vim plugin: C/C++-IDE -- Write and run programs using menus and hotkeys


Get a vim cheat-sheet and get used to the shortcuts.

http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
Back to top
View user's profile Send private message
Balisong
n00b
n00b


Joined: 13 Jun 2014
Posts: 13

PostPosted: Sun Jul 13, 2014 9:42 pm    Post subject: Reply with quote

Thank you for the quick replies.

I have just installed c-support and i shall try and test it later on.

On the question about the vim.wikia site which recommends multiple plugins i didn't quite got the pathogen part, which now i'm trying to figure out how to use it for the plugins.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jul 13, 2014 11:22 pm    Post subject: Reply with quote

Balisong wrote:
On the question about the vim.wikia site which recommends multiple plugins i didn't quite got the pathogen part, which now i'm trying to figure out how to use it for the plugins.

Balisong ... you would do the following:

Code:
# mkdir -p ~/.vim/bundle/pathogen/autoload/
# wget -O ~/.vim/bundle/pathogen/autoload/pathogen.vim http://tpo.pe/pathogen.vim

You would then add the following to the ~/.vimrc

~/.vimrc
Code:
" Use pathogen to manage plugins
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()

Any future plugin you just unpack into ~/.vim/bundle and pathogen will automatically make it available.

best ... khay
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4447

PostPosted: Mon Jul 14, 2014 7:42 am    Post subject: Reply with quote

I would recommend vundle over pathogen, as it handles downloading and updating automatically - no need to copy anything manually into your ~/.vim.

Furthermore I found YouCompleteMe to be the greatest step towards "vim-IDE".
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jul 14, 2014 11:58 am    Post subject: Reply with quote

franzf wrote:
I would recommend vundle over pathogen, as it handles downloading and updating automatically - no need to copy anything manually into your ~/.vim.

franzf ... you're probably correct, but its a little more complex to configure (at least in comparison to pathogen). Also, I'm personally not that keen on the idea of auto-updating ...

best ... khay
Back to top
View user's profile Send private message
Balisong
n00b
n00b


Joined: 13 Jun 2014
Posts: 13

PostPosted: Mon Jul 14, 2014 11:28 pm    Post subject: Reply with quote

Thanks again for everyone helping me.

I have found what i need in the wikia (the same one i found but was too stupid to understand). I used pathogen and made the first steps towards making Vim as my IDE. I love it! I see its power, it really is what i need.
Back to top
View user's profile Send private message
sk3l
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2012
Posts: 78
Location: CT USA

PostPosted: Sat Jul 19, 2014 11:30 pm    Post subject: Re: Vim as IDE Reply with quote

khayyam wrote:
Balisong wrote:
I'm trying to use Vim for programming, specifically for c++ but with no luck. I want to install vim-addon-manager so i can install some plugins to use vim as an IDE. If anyone has done this or can point me in the right direction please. Google didn't solve my problem

Balisong ... I've not used vim-addon-manager, but it sounds as though (wild guess) you may be trying to use it to install global plugins which your user doesn't have permissions to do. If you simply want to install/manage plugins for your user then use something like pathogen or vundle.

As for vim as IDE, have you read this?

best ... khay


Hey khay, cheers for sharing the link WRT VIM & IDE extensions! I'm going to try the VIM plugins for MS VS2010.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jul 20, 2014 12:49 am    Post subject: Re: Vim as IDE Reply with quote

sk3l wrote:
Hey khay, cheers for sharing the link WRT VIM & IDE extensions! I'm going to try the VIM plugins for MS VS2010.

sk3l ... you're welcome. That link doesn't mention it but there is also visual_studio.vim (which supports 2010). Some of the suggestions here may also be of interest (it mainly covers configuring visual_studio.vim).

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum