2015-04-01 83 views
1

在emacs中,鍵入時會顯示匹配的圓括號,但有一個單獨的設置可突出顯示光標所在的匹配圓括號。有沒有什麼我可以寫在.vimrc來實現這一點?我發現的所有東西都完全關閉了括號匹配,這並不是我想要的。僅在鍵入時匹配vim括號

感謝您的幫助!

編輯:解決關於可能的重複的評論,該答案解釋瞭如何打開我想關閉的東西。我希望paren匹配,因爲我鍵入,但我不想突出顯示當我的光標在括號上。謝謝!

+0

可能重複[我怎樣Vim高亮括號匹配?](http://stackoverflow.com/questions/232274/how-do-i-get-vim-to-highlight-matching-插入語) – 2015-04-01 03:50:43

回答

1
" Briefly jump to the matching bracket when typing 
set showmatch 
" Turn off the default matchparen plugin (on demand): 
NoMatchParen 
" Alternatively (in your .vimrc, to completely disable the plugin): 
let loaded_matchparen = 1