diff --git a/.vimrc b/.vimrc index fe1616a..c6fa0f3 100644 --- a/.vimrc +++ b/.vimrc @@ -26,6 +26,9 @@ Plugin 'vim-airline/vim-airline-themes' call vundle#end() +" YouCompleteMe python fix +let g:ycm_server_python_interpreter = '/usr/bin/python3' + " Vim-Airline config let g:Powerline_symbols = 'fancy' let g:airline_powerline_fonts = 1 diff --git a/scripts/vim-setup b/scripts/vim-setup new file mode 100755 index 0000000..e7e034c --- /dev/null +++ b/scripts/vim-setup @@ -0,0 +1,15 @@ +YCM=~/.vim/bundle/YouCompleteMe + +####################### +## Initialise Vundle ## +####################### +mkdir -p ~/.vim/bundle +git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim +vim +PluginInstall +qall + + +######################### +## Setup YouCompleteMe ## +######################### +cd "$YCM" +./install.py --clang-completer --omnisharp-completer --tern-completer # requires cmake, mono and nodejs, npm