看板 Editor 關於我們 聯絡資訊
vim 在寫 c++ or c 的時候可以用 % 找到後括號在哪邊。 但是內建的版本是計算前括號數量,然後去匹配後括號數量 遇到 coding 習慣不好的時候就會找不到後面的括號。 (通常是接手別人的 code 會用到) 有沒有什麼插件可以跳過被註解掉的括號呢? example code: for ( int i=0; i< 10; ++i ) { // for ( int i=0; i<5; ++i ) { brah(); } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.104.148 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1619075237.A.17B.html
ViewMoon: https://github.com/andymass/vim-matchup 04/22 19:26
ViewMoon: 有參數可以調 04/22 19:26
感恩,我來試試看! ※ 編輯: boris20050 (140.112.104.148 臺灣), 04/22/2021 19:39:16
boris20050: 最後發現裝 neovim 就自動解決我的問題了! 04/26 08:49
chienweichih: runtime macro/matchit.vim 04/26 18:38
chienweichih: runtime macros/matchit.vim 04/26 18:38