vi_actions.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:NeoVintageous 作者: NeoVintageous 项目源码 文件源码
def run(self, mode=None, count=None):
        if len(self.view.sel()) != 1:
            return

        sel = self.view.sel()[0]
        line = self.view.line(sel)
        text = self.view.substr(line)

        url = self.__class__._url(self.URL_REGEX, text)
        if url:
            webbrowser.open_new_tab(url)


# https://vimhelp.appspot.com/scroll.txt.html#CTRL-E
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号