[英]Double indentation in Vim using python plugins
我按照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
我在.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()
知道如何解决吗?
实际上,这是我删除所有插件之后太长时间的选项卡。 添加
set tabstop=4
set shiftwidth=4
set expandtab
解决了
这是~/.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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.