• <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>

            O(1) 的小樂

            Job Hunting

            公告

            記錄我的生活和工作。。。
            <2011年12月>
            27282930123
            45678910
            11121314151617
            18192021222324
            25262728293031
            1234567

            統計

            • 隨筆 - 182
            • 文章 - 1
            • 評論 - 41
            • 引用 - 0

            留言簿(10)

            隨筆分類(70)

            隨筆檔案(182)

            文章檔案(1)

            如影隨形

            搜索

            •  

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            Vim插件配置

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

            1 ctags

            Linux 自帶,或者從官方網站上獲取

            程序中的所有函數創建索引,每個函數對應一個列表,在列表中列出函數在程序中的調用位置。

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

            詳細參考http://blog.csdn.net/alexdboy/article/details/3871707

            2 cflow

             Linux自帶,或者從官方網站上獲取

            cflow打印出一個函數調用樹,按照函數之間的正向調用順序來顯示函數之間的調用關系,可以清楚的看到一個程序的框架結構,了解他的操作流程。

            一般命令是cflow a.cpp

            3 cscope

            號稱加強版ctags, 個人感覺命令繁瑣,不好用

            詳見:http://blog.csdn.net/longxin007/article/details/1876564

            4 a.vim

            源文件與頭文件切換

            有了NERDTree,就沒什么作用了

            5 NERDTree

            列出路徑下所有文件,并實現跳轉,非常贊!

            :NERDTree

            6 tagbar

            列出所有文件中函數與變量!

            :TagbarOpen

            7 tabbar

            實現Alt + 1-9 之間標簽跳轉

            8 ACK

            在vim中綁定perl 的ACK實現,加強版grep

            話說這個網站名字叫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 閱讀(499) 評論(0)  編輯 收藏 引用

            統計系統
            亚洲AV日韩精品久久久久| 久久影院综合精品| 国产亚洲美女精品久久久| 亚洲国产精品综合久久一线| 亚洲精品WWW久久久久久| 久久这里只有精品18| 久久本道久久综合伊人| 日产精品久久久久久久| 欧美一区二区精品久久| 久久AV高潮AV无码AV| 伊人久久综在合线亚洲2019| 无码国内精品久久综合88| 91精品国产91久久综合| 久久精品国产免费观看三人同眠| 国产一级持黄大片99久久| 青青青青久久精品国产h久久精品五福影院1421 | 色欲综合久久躁天天躁| 99久久精品午夜一区二区| 免费精品久久久久久中文字幕| 久久精品人人做人人妻人人玩| 精品久久久久久久久久中文字幕| 久久久国产乱子伦精品作者| 无码人妻久久一区二区三区蜜桃| 狠狠久久综合伊人不卡| 国产午夜久久影院| 国产欧美久久久精品| 精品久久久久香蕉网| 一本一本久久A久久综合精品| 久久青青国产| 久久天天躁狠狠躁夜夜av浪潮 | 久久黄色视频| 日本免费久久久久久久网站| 久久精品黄AA片一区二区三区| 亚洲女久久久噜噜噜熟女| 亚洲精品高清一二区久久| 武侠古典久久婷婷狼人伊人| 国产成人精品综合久久久| 久久精品国产亚洲Aⅴ蜜臀色欲| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 久久涩综合| 中文字幕亚洲综合久久菠萝蜜|