My vimrc which does Python error-checking & auto-completion

23 views
Skip to first unread message

Louis Opter

unread,
Mar 23, 2013, 4:28:53 AM3/23/13
to rathaxe...@googlegroups.com
Hello,

My vimrc has:

- Ctrl+P: an extension to navigate in your files/buffer with regex or
fuzzy finding;
- NerdTree to navigate your files too (binded on "t" in normal mode);
- Syntastic to display errors directly, each time you save your code;
- jedi-vim: for Python auto-completion;
- Powerline: very nice status bars for vim and Ctrl+P;
- desert256: my favorite theme;
- Vundle to manage all the vim plugins.

Here is how to install my vimrc:

1. rm -rf ~/.vimrc ~/.vim
2. mkdir -p ~/.vim/bundle
3. cd ~/.vim/bundle
4. git clone git://github.com/gmarik/vundle.git
5. save the attached vimrc as ~/.vimrc
6. apt-get install ttf-inconsolata (or change the font in ~/.vimrc)
7. Start vim and type: ":BundleInstall"
8. Skip the error messages and restart vim
9. Enjoy!

You can, later on, update plugins and vundle itself with
":BundleUpdate".

Also, in case you don't, you should really consider using GVim instead
of the terminal version. GVim can do much better display effects for
errors and is never affected by terminal glitches).

Let me know if you have any question !

--
Louis Opter
.vimrc

Thomas Sanchez

unread,
Mar 23, 2013, 5:21:15 AM3/23/13
to rathaxe...@googlegroups.com



2013/3/23 Louis Opter <kale...@kalessin.fr>
I have pretty much the same set-up (I drop eclipse to come back to vim 2/3 weeks ago).

I also use:
- taglist : (outline the current file with all the symbols found. Work for Python too)
- clang_complete, syntastic can be configured to use the clang_complete file:
let g:syntastic_c_config_file = '.clang_complete'
let g:syntastic_cpp_config_file = '.clang_complete'
- Fugitive: When you have to use git, the integration is quite awesome

I personally use pathogen. For some of these plugin, python or ruby support is required for vim. On some distro, the vim package is the minimal one, gvim, also contains vim but is compiled with a lot of more plugins/support/whatever. 


--
Thomas Sanchez

Thomas Sanchez

unread,
Mar 23, 2013, 5:23:55 AM3/23/13
to rathaxe...@googlegroups.com



2013/3/23 Thomas Sanchez <thomas...@gmail.com>

Thomas Sanchez

unread,
Mar 23, 2013, 5:28:12 AM3/23/13
to rathaxe...@googlegroups.com
Sorry for the noise again, but Louis, for synastic and Python
Would you recommend pyflakes or pylint ? I guess pylint but just
wanted to check :)
--
Thomas Sanchez

Louis Opter

unread,
Mar 23, 2013, 8:45:17 AM3/23/13
to rathaxe...@googlegroups.com
On 3/23/2013 1:28 AM, Thomas Sanchez wrote:
> Sorry for the noise again, but Louis, for synastic and Python
> Would you recommend pyflakes or pylint ? I guess pylint but just
> wanted to check :)

You definitely want to use pyflakes because it does all the real error
checking: unused imports, unused variables, using variables that don't
exist, and so on.

--
Louis Opter
Reply all
Reply to author
Forward
0 new messages