Sunday, December 11, 2016

YouCompleteMe on windows with GVim/Vim

I could not get the cygwin version YouCompleteMe to work on either my work machine or home machine. Resorted to MS.

1. Make sure the python used/installed is the same 32/64 bit as Gvim.

Use

:version

to check version.

Do

:python print("something")

to check that it works.

YouCompleteMe reccommends 64bit, but I got it working using 32.

2. Install the latest Community Visual studio

3. Install the latest MS Build Tools.

4. Follow the commands from the YouCompleteMe page under the windows section.

5. I used the command window from the VS menu options. This sets up the variables. Remember to 32/64 as necessary.

.vimrc

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-git'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
"Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
"Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
"Plugin 'ascenator/L9', {'name': 'newL9'}
Plugin 'chriskempson/base16-vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'majutsushi/tagbar'
Plugin 'sheerun/vim-polyglot'
Plugin 'SirVer/ultisnips'
Plugin 'tpope/vim-sensible'
Plugin 'honza/vim-snippets'
Plugin 'yegappan/mru'
Plugin 'vim-airline/vim-airline'
Plugin 'craigemery/vim-autotag'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
set backupdir=~/.vim/backup_files//
set directory=~/.vim/swap_files//


No comments:

Post a Comment