發願。隨筆

2018年11月27日 星期二

vim +cscope字串搜尋

在vim +cscope裡尋找一個字串
:cs f s mystring
會跳出一連串待選列1....
需要一個個選擇有點麻煩
解決的方法就是打開cscopequickfix
這樣就可以利用cn, cp (cnext, cprevious)在前後之間跳躍

參考資料:

https://stackoverflow.com/questions/28185067/vim-go-to-next-search-result-across-multiple-files
張貼者: shyu 於 中午12:05 沒有留言:
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

網誌存檔

  • ►  2021 (1)
    • ►  8月 (1)
  • ►  2019 (1)
    • ►  1月 (1)
  • ▼  2018 (1)
    • ▼  11月 (1)
      • vim +cscope字串搜尋
  • ►  2014 (4)
    • ►  9月 (2)
    • ►  8月 (2)
  • ►  2013 (12)
    • ►  10月 (1)
    • ►  9月 (1)
    • ►  6月 (2)
    • ►  5月 (1)
    • ►  4月 (1)
    • ►  1月 (6)
  • ►  2012 (33)
    • ►  12月 (7)
    • ►  11月 (21)
    • ►  10月 (1)
    • ►  9月 (4)

搜尋此網誌

關於我自己

shyu
檢視我的完整簡介
Powered By Blogger
Creative Commons License This work by ldshyu is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
圖片視窗主題. 主題圖片來源:sndr. 技術提供:Blogger.