• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            公告

            記錄我的生活和工作。。。
            <2010年10月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            統(tǒng)計(jì)

            • 隨筆 - 182
            • 文章 - 1
            • 評(píng)論 - 41
            • 引用 - 0

            留言簿(10)

            隨筆分類(70)

            隨筆檔案(182)

            文章檔案(1)

            如影隨形

            搜索

            •  

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            Vim插件配置

            0 所有插件的安裝都是/usr/share/vim/vim/vim73/ 下的plugin syntax和doc

            1 ctags

            Linux 自帶,或者從官方網(wǎng)站上獲取

            程序中的所有函數(shù)創(chuàng)建索引,每個(gè)函數(shù)對(duì)應(yīng)一個(gè)列表,在列表中列出函數(shù)在程序中的調(diào)用位置。

            一般的使用命令都是ctags –R -c++-kinds=+px –fields=+aiKSz

            詳細(xì)參考http://blog.csdn.net/alexdboy/article/details/3871707

            2 cflow

             Linux自帶,或者從官方網(wǎng)站上獲取

            cflow打印出一個(gè)函數(shù)調(diào)用樹(shù),按照函數(shù)之間的正向調(diào)用順序來(lái)顯示函數(shù)之間的調(diào)用關(guān)系,可以清楚的看到一個(gè)程序的框架結(jié)構(gòu),了解他的操作流程。

            一般命令是cflow a.cpp

            3 cscope

            號(hào)稱加強(qiáng)版ctags, 個(gè)人感覺(jué)命令繁瑣,不好用

            詳見(jiàn):http://blog.csdn.net/longxin007/article/details/1876564

            4 a.vim

            源文件與頭文件切換

            有了NERDTree,就沒(méi)什么作用了

            5 NERDTree

            列出路徑下所有文件,并實(shí)現(xiàn)跳轉(zhuǎn),非常贊!

            :NERDTree

            6 tagbar

            列出所有文件中函數(shù)與變量!

            :TagbarOpen

            7 tabbar

            實(shí)現(xiàn)Alt + 1-9 之間標(biāo)簽跳轉(zhuǎn)

            8 ACK

            在vim中綁定perl 的ACK實(shí)現(xiàn),加強(qiáng)版grep

            話說(shuō)這個(gè)網(wǎng)站名字叫http://betterthangrep.com/,是不是讓grep趕腳壓力很大!哈哈

            主要參考了這篇文章:

            http://lovemaple.info/blog/2011/12/code-reading-with-vim/

            Index

            1.plugins

            • nerdtree - (right window)The NERD tree allows you to explore your filesystem and to open files and directories. It presents the filesystem to you in the form of a tree which you manipulate with the keyboard and/or mouse. It also allows you to perform simple filesystem operations.
            • tabbar - (upward side of the middle window)Display the modifiable buffer as tabs. Key-bindings for buffer switching:
            • tagbar - (left window)Browsing the tags of source code files. It provides a sidebar that displays the ctags-generated tags of the current file, ordered by their scope.
            • ack-vim - (downward of the whole window)This plugin is a front for the Perl module App::Ack. Ack can be used as a replacement for 99% of the uses of grep. This plugin will allow you to run ack from vim, and shows the results in a split window.

            2.Shortcuts

            C-t       - goto definition of the funcions
            C-]       - go back to where you come from
            gd        - goto definition of a local viriable
            gD        - goto definition of a globle viriable
            C-i/C-o   - goto forward/backward of the check points
            #/*       - next/previous same word under cursor

            In order to use C-t and C-], you must have ctags intalled first:

            yaoort -S ctags               # ArchLinux

            sudo apt-get install ctags    # debian/ubuntu

            Then, run the command at destination directory where the source codes are located:

            ctags –r

            posted on 2011-12-17 14:57 Sosi 閱讀(506) 評(píng)論(0)  編輯 收藏 引用


            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            統(tǒng)計(jì)系統(tǒng)
            99久久精品日本一区二区免费| 欧美va久久久噜噜噜久久| 99久久免费国产精品| 9191精品国产免费久久| 久久婷婷色综合一区二区| 久久精品中文字幕一区| 亚洲精品无码久久一线| 国产情侣久久久久aⅴ免费| 久久久久一级精品亚洲国产成人综合AV区| 久久人人爽人人爽人人片AV麻豆| 久久这里只有精品首页| 国产一久久香蕉国产线看观看| 色诱久久av| 9191精品国产免费久久| 69久久精品无码一区二区| 久久综合久久美利坚合众国| 久久狠狠一本精品综合网| 潮喷大喷水系列无码久久精品| 久久久久久久免费视频| 久久中文精品无码中文字幕| 久久综合丝袜日本网| 久久精品一区二区| 人妻精品久久无码区| 亚洲午夜久久久影院| 老男人久久青草av高清| 色婷婷久久综合中文久久一本| 国产高清国内精品福利99久久| .精品久久久麻豆国产精品 | 午夜不卡888久久| 久久人人爽爽爽人久久久| 亚洲午夜久久久久久久久久| 99久久这里只精品国产免费| 久久久久久亚洲精品影院| 久久久久久久综合狠狠综合| 久久99精品久久久大学生| 久久99热这里只有精品国产| 婷婷伊人久久大香线蕉AV| 久久夜色精品国产噜噜噜亚洲AV | 久久国产高清一区二区三区| 亚洲AV无码久久精品狠狠爱浪潮| 性欧美丰满熟妇XXXX性久久久 |