Home > vim > Trying out code completion in vim

Trying out code completion in vim

Trying out code completion in vim. Installed `Youcompleteme`.

Steps:
1. The version of vim on macosx that I had did not have +python3 or +conceal that was needed with some of the completion engines that were installed.

# To check if vim has the needed versions
$ vim --version
+python3 # Supported
-python3 # Not supported

2. Install macvim

$ brew install macvim

Create an alias (Save this to .bashrc or .zshrc)

alias vim='mvim -v'

3. Install cmake

$ brew install cmake

4. Download YouCompleteMe and install using Pathogen

$ cd ~.vim/bundle
$ git clone https://github.com/Valloric/YouCompleteMe.git
$ git submodule update --init --recursive
$ cd YouCompleteMe
$ ./install.py --all

5. Edit some code

Source:
https://github.com/Valloric/YouCompleteMe
http://liuchengxu.org/posts/use-vim-as-a-python-ide/

Advertisements
Categories: vim Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: