posts - 82, comments - 269, trackbacks - 0, articles - 1
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          VI 及 Shell 命令 大雜燴

          Posted on 2009-02-07 16:34 itspy 閱讀(420) 評論(0)  編輯  收藏 所屬分類: 小巧實例小經驗

          cd -
          cd ~

          :set number
          :set nonumber


          :set hlsearch
          :set nohlsearch


          :set   autoindent

          Ctrl + U/P


          :!<command>  在VI時輸入命令

          :r!<command>  在VI時輸入命令,結果存入文檔

          G

          gg

          dd/yy yank
          10dd
          vi復制多行文本的方法
          http://linux.chinaunix.net/techdoc/develop/2009/01/01/1056077.shtml

           

          Ctrl+b或左箭頭鍵    左移一個字符(移至前一個字符)

          Ctrl+f或右箭頭鍵    右移一個字符(移至后一個字符)

          Ctrl+a          移至行首

          Ctrl+e          移至行尾

          Ctrl+d          刪除光標所在處的字符

          BACKSPACE或Ctrl+h   刪除光標左邊的字符

          Ctrl+k          刪除至行尾

          ★命令行編輯/ http://www.examda.com/linux/fudao/20060928/154730410-4.html

           


          10G

          10S  替換多少行

          10s  替換多少個字符

          :g/generic/s//webhosting/g

           


          q: 調出command-line
          :his 顯示歷史命令
          http://alulax.blogspot.com/2007/03/vi-command-line-window.html


          .vimrc
          syntax on

           

          set autoindent
          set cindent
          set modeline
          set ruler
          set showcmd
          set showfulltag
          set showmode
          set smartcase
          set smartindent
          set imcmdline
          set previewwindow
          set hlsearch

          主站蜘蛛池模板: 宁国市| 姜堰市| 清河县| 平乐县| 沙洋县| 育儿| 台安县| 新沂市| 南开区| 周口市| 陈巴尔虎旗| 金湖县| 安阳县| 绥中县| 寿光市| 南康市| 永城市| 韶山市| 宕昌县| 惠水县| 翼城县| 库车县| 阿荣旗| 孝义市| 荔波县| 揭西县| 平邑县| 辽阳县| 岚皋县| 星子县| 西和县| 泰宁县| 马山县| 松阳县| 大城县| 定陶县| 织金县| 望都县| 额济纳旗| 兴业县| 兴义市|