Reputation: 17491
I followed sontek's tutorial (http://sontek.net/blog/detail/turning-vim-into-a-modern-python-ide) to turn Vim into a python IDE. Unfortunatately, when there should be an identation (when pressing ENTER after : or ( ), I have both 4 spaces and a tabulation, making the indentation twice too big.
I should add that to fix Vim saying
Error detected while processing /home/maxime/.vim/bundle/tasklist/plugin/tasklist.vim:
line 369:
E227: mapping already exists for \t
I added noremap <leader>v <Plug>TaskList
at the beginning of .vimrc
So my vimrc file is:
nnoremap <leader>v <Plug>TaskList
call pathogen#incubate()
filetype off
syntax on
filetype plugin indent on
call pathogen#helptags()
Any idea how to fix it?
Upvotes: 0
Views: 596
Reputation: 17491
Actually, it is my tab that was too long after I had removed all the plugins. Adding
set tabstop=4
set shiftwidth=4
set expandtab
Solved that
Upvotes: 1
Reputation: 196546
Here is how your ~/.vimrc
should look:
" turns filetype detection off
" before running pathogen
" because it is supposed to break
" things
filetype off
" the proper way to run pathogen
" and index your plugins documentation
execute pathogen#infect()
execute pathogen#helptags()
" turns filetype detection, ft-specific
" plugins, indent scripts and syntax
" highlighting on
filetype plugin indent on
syntax on
" your custom mapping
nnoremap <leader>v <Plug>TaskList
Upvotes: 0