日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

matchit匹配

發布時間:2023/11/27 生活经验 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matchit匹配 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1. Function: This addon allows using?%?to jump between matching keywords as Vim already does for matching parentheses/brackets. Many syntax files include the definition of the matching keyword pairs for their supported languages.

? ? ? ? ? 功能是: 通過 % 匹配code的語法組合起始位置,便于快速查看/review 代碼;? like? systemverilog的 begin/end, function/endfunction? ? ? ? ?

?2.? plugin source code :??https://www.vim.org/scripts/script.php?script_id=39

?

? 3.install

? ? - download插件后解壓將matchit.vim copy到.vim/plugin下

? ? - 在.vim/ftplugin/? 對應的filetype下面define好 b:match_wrods : 插件matchit會根據這個去match

?4. use

? ? 打開systemverilog的文件, 將光標落在function,然后按:%, 光標就自動跳轉到 endfuntion上

?---以上是以systemverilog為例的,如果想要在其他語言上使用的話,在.vim下對應的文夾下定義好自己的腳本;

當然可以search下vim官網或者github是否有對應的語言版本插件,插件一般都會帶有這些定義;

?

?5. more?

下面github版本還未嘗試:

https://github.com/vimtaku/hl_matchit.vim

轉載于:https://www.cnblogs.com/bky-lxin/p/11607579.html

總結

以上是生活随笔為你收集整理的matchit匹配的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。