我按照sontek的教程(http://sontek.net/blog/detail/turning-vim-into-a-modern-python-ide)将Vim变成了一个python IDE。不幸的是,当应该有一个标识时(按下后面的ENTER:或(),我有4个空格和一个制表,使缩进两次太大。
我应该补充说修复Vim说
Error detected while processing /home/maxime/.vim/bundle/tasklist/plugin/tasklist.vim:
line 369:
E227: mapping already exists for \t
我在noremap <leader>v <Plug>TaskList
.vimrc
所以我的vimrc文件是:
nnoremap <leader>v <Plug>TaskList
call pathogen#incubate()
filetype off
syntax on
filetype plugin indent on
call pathogen#helptags()
知道怎么解决吗?
答案 0 :(得分:1)
实际上,在删除所有插件后,我的标签太长了。 添加
set tabstop=4
set shiftwidth=4
set expandtab
解决了
答案 1 :(得分: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