其中是ubuntu中的vim插件目錄。我需要刪除autoclose.vim插件這裏所描述的問題需要解決: Arrow keys type capital letters instead of moving the cursorVIM ubuntu系統寬插件目錄
回答
檢查: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).
...
您應該按照Eric的評論。
這麼說,我有我的.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 wiki通過很多論壇來SO。
--END EDIT--
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>
,並沒有需要刪除任何插件。
不要將原始命令代碼添加到文件中,您已經有'<...>'符號和«看起來像^ [»的字符被表示爲'
這就是你盲目隨機發布論壇帖子時得到的結果。當然,我知道''['意思是'
除了一點h/l移動不便之外,更多的原始控制代碼越多,mercurial保留我的配置的機會將該文件視爲二進制文件(因此不會顯示差異)。另外,如果你用':TOhtml',':Format'格式化你的插件,或者你會得到這些字符不顯示或者顯示爲'^ ['(並且將被複制)。難道你沒有看清楚自己:不是寫'
而不是閱讀'runtimepath'
規則,我認爲這是比較容易得到所有已安裝的腳本列表:
:scriptnames
這將顯示每個腳本,VIM已加載的完整路徑。如果只有少數,那麼你可以找到你正在尋找的那個(autoclose.vim
爲OP)。
如果列表很長,那麼你可以捕捉scriptnames
在a
寄存器的輸出(或任何其他),將其粘貼到一個空的緩衝區,並搜索插件的名稱:
:redir @a
:scriptnames
:redir END
:new
:put a
:/autoclose\.vim
- 1. Linux/Ubuntu目錄位置〜/ .vim/syntax/
- 2. Android目錄系統
- 3. Vim CtrlP插件:手動設置根目錄搜索目錄?
- 4. WinForm插件系統
- 5. MVC3插件系統
- 6. PHP插件系統
- 7. Bash遠程文件系統目錄test
- 8. 寫入系統目錄中的文件
- 9. Ubuntu非只讀文件系統非系統文件
- 10. VB.Net搜索系統目錄
- 11. vim項目樹插件
- 12. VIM中的自動縮進,版本7.4.52,操作系統:Ubuntu 14.04
- 13. Ubuntu Linux操作系統:如何計算某些文件的編號在目錄
- 14. 檢查一個目錄是否爲(文件系統)根目錄
- 15. Vim項目插件\ R不刷新創建的新目錄
- 16. 如何將CodeIgnitor系統文件夾添加到Eclipse項目 - Ubuntu
- 17. Ubuntu:大系統日誌和kern.log文件
- 18. 系統()與vim中的powershell
- 19. 無法編輯系統目錄中的服務文件 - 只讀文件系統
- 20. c#插件系統問題
- 21. Python插件系統 - HOWTO
- 22. C#插件系統設計
- 23. C#某種插件系統
- 24. Phonegap系統通知插件
- 25. C++插件的DLL系統
- 26. 在Ubuntu安裝Jupyter系統
- 27. 哈德森文件系統SCM插件參數「目錄」是不是一個目錄
- 28. 如何使用Vim插件VCSCommand在目錄上diff/commit/etc? (或...什麼是VIM「目錄緩存」?)
- 29. 獲取文件系統目錄條目的物理扇區
- 30. Vim目錄完成
勾選'〜/ .vim/bundle/autoclose'或'〜/ .vim/plugin/autoclose.vim' –
這是爲root用戶,我沒有在我的目錄中看到.vim文件夾。 –