ubuntu中的vim插件目录在哪里。我需要删除autoclose.vim插件来修复此处描述的问题: Arrow keys type capital letters instead of moving the cursor
答案 0 :(得分:6)
检查:h runtimepath
以获取可能位置的完整说明
你的文件夹(考虑到你没有使用捆绑插件)。这是一段摘录:
*'runtimepath'* *'rtp'* *vimfiles*
'runtimepath' 'rtp' string (default:
Unix, Mac OS X: "$HOME/.vim,
$VIM/vimfiles,
$VIMRUNTIME,
$VIM/vimfiles/after,
$HOME/.vim/after"
...
global
{not in Vi}
This is a list of directories which will be searched for runtime
files:
filetype.vim filetypes by file name |new-filetype|
scripts.vim filetypes by file contents |new-filetype-scripts|
autoload/ automatically loaded scripts |autoload-functions|
colors/ color scheme files |:colorscheme|
compiler/ compiler files |:compiler|
doc/ documentation |write-local-help|
ftplugin/ filetype plugins |write-filetype-plugin|
indent/ indent scripts |indent-expression|
keymap/ key mapping files |mbyte-keymap|
lang/ menu translations |:menutrans|
menu.vim GUI menus |menu.vim|
plugin/ plugin scripts |write-plugin|
print/ files for printing |postscript-print-encoding|
spell/ spell checking files |spell|
syntax/ syntax files |mysyntaxfile|
tutor/ files for vimtutor |tutor|
And any other file searched for with the |:runtime| command.
The defaults for most systems are setup to search five locations:
1. In your home directory, for your personal preferences.
2. In a system-wide Vim directory, for preferences from the system
administrator.
3. In $VIMRUNTIME, for files distributed with Vim.
*after-directory*
4. In the "after" directory in the system-wide Vim directory. This is
for the system administrator to overrule or add to the distributed
defaults (rarely needed)
5. In the "after" directory in your home directory. This is for
personal preferences to overrule or add to the distributed defaults
or system-wide settings (rarely needed).
...
答案 1 :(得分:0)
你应该关注Eric'comment。
那就是说,我在.vimrc中有这些行:
<强> - 编辑 - 强>
我知道这个答案不是所选择的答案,但是由于ZyX评论我学到了一些东西,所以这里是一个编辑。
下面的行应写成如下:
nnoremap <Esc>A <up>
nnoremap <Esc>B <down>
nnoremap <Esc>C <right>
nnoremap <Esc>D <left>
inoremap <Esc>A <up>
inoremap <Esc>B <down>
inoremap <Esc>C <right>
inoremap <Esc>D <left>
我担心很多的人会犯同样的错误:原始转义码解决方案就像网络上的任何地方一样,从Vim维基到SO通过很多论坛。
- 结束编辑 -
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>A <up>
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>B <down>
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>C <right>
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>D <left>
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>A <up>
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>B <down>
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>C <right>
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>D <left>
并且不需要删除任何插件。
答案 2 :(得分:0)
我认为不是阅读(%) :: Integral a => a -> a -> Ratio a
numerator :: Integral a => Ratio a -> a
denominator :: Integral a => Ratio a -> a
上的规则,而是更容易获得所有已安装脚本的列表:
'runtimepath'
这将显示vim已加载的每个脚本的完整路径。如果只有少数,那么您可以找到您正在寻找的那个(OP为:scriptnames
)。
如果列表很长,那么您可以捕获autoclose.vim
寄存器(或任何其他)中scriptnames
的输出,将其粘贴到空缓冲区中,并搜索插件的名称:
a