【问题标题】:vim mapleader command-t screwed up vim configurationvim mapleader command-t 搞砸了 vim 配置
【发布时间】:2013-07-15 16:15:45
【问题描述】:

在我的一个脚本文件中,我用, 定义了一些映射,比如

nmap ,t <ESC>:Todos<CR>:w<CR>

目前我安装了command-T。在这个过程中,我在 .vimrc 中设置了 mapleader

let mapleader=","

这搞砸了我自己的映射,所以我从配置中删除了 mapleader。另外,我的 .vim 目录中的 removed command-T。但不幸的是,这并没有帮助。

当我现在输入,t 时,会打开一个分屏缓冲区,其中包含一种标记列表。如果我在这个新缓冲区中输入?,看起来像这样:

" <enter> : Jump to tag definition
" o : Jump to tag definition in new window
" p : Preview the tag definition
" <space> : Display tag prototype
" u : Update tag list
" s : Select sort field
" d : Remove file from taglist
" x : Zoom-out/Zoom-in taglist window
" + : Open a fold
" - : Close a fold
" * : Open all folds
" = : Close all folds
" [[ : Move to the start of previous file
" ]] : Move to the start of next file
" q : Close the taglist window
" ? : Remove help text

看起来像是被某种方式激活的 vim 功能。如何让我的 ,t 再次使用我的映射?

【问题讨论】:

  • 您可能没有删除所有内容,或者其他插件覆盖了某些内容。
  • 是一个不同的插件。

标签: vim plugins configuration


【解决方案1】:

能想出来。运行 :nmap 向我展示了 ,t 上的映射函数。有了这些信息,我就能找到麻烦制造者。是 taglist 插件。

现在又可以工作了 :)

【讨论】:

  • :verbose map ,t 会告诉您映射设置在哪个文件中。
  • 冷静下来。问题解决了。一切都很好,工作正常。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-12-17
  • 1970-01-01
相关资源
最近更新 更多