2014-01-21 25 views
0

我跟着sontek的教程(http://sontek.net/blog/detail/turning-vim-into-a-modern-python-ide)將Vim變成Python IDE。 Unfortunatately,當應該有一個identation(當按下ENTER鍵後:或者(),我都4個空格和製表,使得壓痕兩次太大使用python插件在Vim中雙縮進

我要補充一點,以解決Vim的說法

Error detected while processing /home/maxime/.vim/bundle/tasklist/plugin/tasklist.vim: 
line 369: 
E227: mapping already exists for \t 

我在.vimrc

開始加入noremap <leader>v <Plug>TaskList所以我的vimrc文件是:

nnoremap <leader>v <Plug>TaskList 

call pathogen#incubate() 

filetype off 

syntax on 

filetype plugin indent on 

call pathogen#helptags() 

任何想法如何解決它?

+0

哦! 「Vim作爲IDE」的另一個受害者是meme。 – romainl

回答

1

其實,這是我的標籤,這是太長時間後,我已經刪除了所有的插件。 加入

set tabstop=4 
set shiftwidth=4 
set expandtab 

解決了

0

這裏是如何您~/.vimrc應該是:

" 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 
+0

感謝您解釋使用不同的線條。但不解決問題。 – maxbellec

+0

你安裝了哪些插件? – romainl

+0

所有在我給出的鏈接上建議的,所以 逃犯,snipmate,環繞聲,supertab,minibufexpl,命令-t,ack,gundo,pydoc,pep8,py.test,makegreen,任務列表,nerdtree,ropevim – maxbellec