一些常用的VIM plugins
PageView 9
language related
pythone-mode
一個整合了 Pylint(python程式碼分析工具) rope(a python refactoring library)pydoc(Python原生的文件產生模組) 的plugin,讓寫python更方便快速。
,r
: 執行當前codeK
: 查詢當前游標所在的keyword
使用:PymodeDoc
時發生E21: Cannot make changes, ‘modifiable’ is off
1 | Error detected while processing function pymode#doc#show: |
上網找到workaround,把以下兩行加入vimrc
即可
1 | autocmd FileType qf,rst :setlocal modifiable |
YoucompleteMe
大名鼎鼎的自動補全plugin,安裝過程挺麻煩的而且一直在變動。,gl
:YcmCompleter GoToDeclaration,gf
:YcmCompleter GoToDefinition,gg
:YcmCompleter GoToDefinitionElseDeclaration
YCM-Generator
可以在專案中生成Youcompleteme所需的.ycm_extra_conf.py
,專案的根目錄中須存在至少一種編譯系統
- make
- cmake
- qmake
- autotools
利用:YcmGenerateConfig
或:CCGenerateConfig
產生。