当我尝试使用带有python文件的vim字符命令f时,它表示没有找到折叠

时间:2015-04-27 13:52:39

标签: vim

我想在python文件中使用f命令(转到下一个字符)但不知何故,它被代码折叠函数掩盖了。

:set nofoldenable不起作用。

这些选项位于我的.vimrc

filetype off
filetype plugin indent on
syntax on

有人知道哪个插件会导致这种行为,以及如何在这两种功能之间切换?

以下是:scriptnames

的输出
 1: ~/.vimrc
  2: /usr/local/share/vim/vim74/ftoff.vim
  3: /usr/local/share/vim/vim74/filetype.vim
  4: /usr/local/share/vim/vim74/ftplugin.vim
  5: /usr/local/share/vim/vim74/indent.vim
  6: /usr/local/share/vim/vim74/syntax/syntax.vim
  7: /usr/local/share/vim/vim74/syntax/synload.vim
  8: /usr/local/share/vim/vim74/syntax/syncolor.vim
  9: ~/.vim/autoload/pathogen.vim
 10: ~/.vim/bundle/SWTC.vim/plugin/SWTC.vim
 11: ~/.vim/bundle/SWTC.vim/plugin/rng.vim
 12: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 13: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
 14: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
 15: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
 16: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
 17: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
 18: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
 19: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
 20: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
 21: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
 22: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
 23: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
 24: ~/.vim/bundle/syntastic/plugin/syntastic.vim
 25: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
 26: ~/.vim/bundle/vim-show-whitespace/plugin/showwhite.vim
 27: ~/.vim/bundle/vim-surround/plugin/surround.vim
 28: /usr/local/share/vim/vim74/plugin/getscriptPlugin.vim
 29: /usr/local/share/vim/vim74/plugin/gzip.vim
 30: /usr/local/share/vim/vim74/plugin/matchparen.vim
 31: /usr/local/share/vim/vim74/plugin/netrwPlugin.vim

1 个答案:

答案 0 :(得分:0)

运行map f命令,看看是否有 f 键的映射。

如果存在这样的映射,您可以通过运行verbose map f来查看映射密钥的配置文件。它应该报告如下:

Last set from ~/.vim/some-plugin.vim