Friday, January 8, 2016

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

ok I'm giving it a shot these next days :)

seems like it is compiled with python (so far so good):

fixed@phrop ~ $ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)
Included patches: 1-52
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

Den torsdag den 7. januar 2016 kl. 17.59.54 UTC+1 skrev ZyX:
> 2016-01-07 19:40 GMT+03:00 Never Boy <thene...@gmail.com>:
> 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!
>
>
>
>
> ​There is plugin documentation, it precisely states what you need to do to install YCM. Do not know about jedi, but YCM requires some binary libraries. Both require +python and if you do not have Python installed or do not have Vim compiled with Python support​ they are not going to work. Presence of Python support can be checked by finding +python or +python/dyn in :version output, +python means that you cannot start Vim without python available, +python/dyn means that you need to install version of Python Vim was compiled with (this is not exported) and make sure that Vim is able to find this.
>
>  
>
>
> 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+u...@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: