• <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)
            亚洲va国产va天堂va久久| 亚洲人成网亚洲欧洲无码久久| www.久久热| 久久精品视频91| 亚洲AV无码一区东京热久久| 91精品国产91热久久久久福利| 日本精品久久久久影院日本 | 久久精品国产亚洲麻豆| 精品久久久久久无码中文野结衣 | 久久99久国产麻精品66| 一级做a爰片久久毛片16| 伊人久久大香线蕉亚洲五月天| 精品久久香蕉国产线看观看亚洲| 四虎久久影院| 精品视频久久久久| 97久久超碰国产精品旧版| 久久综合鬼色88久久精品综合自在自线噜噜| 久久无码专区国产精品发布| 精品久久人人做人人爽综合| 国产精品久久久亚洲| 一本色道久久88精品综合| 久久精品国产福利国产琪琪| 热99re久久国超精品首页| 69国产成人综合久久精品| 一本一本久久A久久综合精品| 精品久久人人妻人人做精品| 精品久久久久久无码中文字幕一区| 久久综合色区| 开心久久婷婷综合中文字幕| 国产免费久久久久久无码| 久久综合九色综合97_久久久| 国产精品9999久久久久| 国产精品免费看久久久| 99久久er这里只有精品18| 久久Av无码精品人妻系列| 久久99精品久久久久久久久久| 伊人色综合久久天天人手人婷 | 精品国产VA久久久久久久冰| 亚洲日本va中文字幕久久| 午夜精品久久久久久毛片| 国产精品美女久久久久久2018|