Thursday, January 7, 2016

Re: help a beginner getting vim setup with YCM and Jedi

take a look at http://vim.spf13.com/
it installs a vimrc and some plugins with vundle
you then can take a look how things work 

On Thu, Jan 7, 2016 at 5:40 PM, Never Boy <theneverboy@gmail.com> wrote:
Dear Vim users
I have started using vim lately and really enjoyed the learning. But after a while I simply got stuck.

Vim is not hard to learn to use I dont think but building it into a work environment is really hard!

Installing plugins and making them work is hard. Especially jedi and YouCompleteMe.

I have tryed for a week now and even totally given up a couple of times and just reverted back to notepad ++... But...

I want it to work!

I have used vundle to install the plugins and they appear in my bundle folder. But nothing happens when i type in vim - no autocompletion or suggestions.

I am sure it is something very elementary I'm doing wrong... but I simply cannot figure this out...

Can anyone here help me get this up and running. If I manage to get it working I am gonna make a video tutorial about it!

here is my vimrc. file:
 1 set nocompatible              " be iMproved, required
  2 filetype off                  " required
  3
  4 " set the runtime path to include Vundle and initialize
  5 set rtp+=~/.vim/bundle/Vundle.vim
  6 call vundle#begin()
  7 " alternatively, pass a path where Vundle should install plugins
  8 "call vundle#begin('~/some/path/here')
  9
 10 " let Vundle manage Vundle, required
 11 Plugin 'VundleVim/Vundle.vim'
 12 Plugin 'Valloric/YouCompleteMe'
 13 " jedi plugin for autocomplete python
 14 Plugin 'davidhalter/jedi-vim'
 15
 16 " " this may be needed for the completers...
 17 Plugin 'Rip-Rip/clang_complete'
 18 "
 19 " enable syntax highlighting
 20 syntax enable
 21
 22 " Text after double qoutes is a comment
 23 set ruler
 24
 25 " show line numbers
 26 set number
 27
 28 " set tabs to have 4 spaces
 29 set ts=4
 30
 31 " indent when moving to the next line while writing code
 32 set autoindent
 33
 34 " show a visual line under the cursor's current line
 35 set cursorline
 36
 37 " show the matching part of the pair for [] {} and ()
 38 set showmatch
 39
 40 " enable all Python syntax highlighting features
 41 let python_highlight_all = 1
 42
 43 " expand tabs into spaces
 44 set expandtab
 45
 46 " sets autoindent to 4
 47 set shiftwidth=4
 48
 49 " syntax for python
 50 syntax on
 51
 52 set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\
 53 \ [%l/%L\ (%p%%)
 54 filetype plugin indent on
 55 au FileType py set autoindent
 56 au FileType py set smartindent
 57 au FileType py set textwidth=79 " PEP-8 Friendly

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: