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

          VI 及 Shell 命令 大雜燴

          Posted on 2009-02-07 16:34 itspy 閱讀(415) 評論(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

          主站蜘蛛池模板: 天祝| 郁南县| 广州市| 章丘市| 原阳县| 若尔盖县| 哈巴河县| 叶城县| 科技| 道真| 凌海市| 屏东市| 九龙县| 长乐市| 阜城县| 年辖:市辖区| 千阳县| 大英县| 高淳县| 察雅县| 遂平县| 亚东县| 开鲁县| 合江县| 宁武县| 兰溪市| 广东省| 湟中县| 鄂尔多斯市| 武陟县| 彭州市| 中山市| 安龙县| 威远县| 新津县| 修水县| 光山县| 集安市| 于田县| 兴宁市| 固镇县|