posts - 33,  comments - 70,  trackbacks - 0
          MacVim takes vim and provides better integration with Apple’s OS X - I’ve only just started using it and I am already loving it. Provided along with the application is a wrapper-script written to handle calls from the command-line:

          cd project
          mvim project_file.php

          MacVim supports tabs, but unfortunately calling mvim multiple times from the command-line results in multiple separate windows opening, instead of multiple tabs in one window. I made the following modifications to the mvim script to correct this.

          Add the following line to the top of the file, below the commented section:

          tabs=true

          Replace the if structure at the bottom of the file with the following:

          # Last step:  fire up vim.
          if [ "$gui" ]; then
            
          if $tabs && [[ `$binary --serverlist` = "VIM" ]]; then
              exec 
          "$binary" -g $opts --remote-tab-silent ${1:+"$@"}
            
          else
              exec 
          "$binary" -g $opts ${1:+"$@"}
            fi
          else
            exec 
          "$binary" $opts ${1:+"$@"}
          fi


          from: http://webexpose.org/2008/10/13/open-macvim-tabs-from-command-line/

          posted on 2010-11-17 15:32 地獄男爵(hellboys) 閱讀(1056) 評論(0)  編輯  收藏 所屬分類: vim

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          <2010年11月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          常用鏈接

          隨筆分類

          隨筆檔案

          文章檔案

          相冊

          連接

          最新隨筆

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 万年县| 宜川县| 习水县| 宜城市| 江口县| 凤翔县| 兰坪| 海原县| 桦南县| 武隆县| 宁蒗| 奉新县| 沈丘县| 乌兰县| 黑山县| 花垣县| 易门县| 哈密市| 合阳县| 永寿县| 亚东县| 天柱县| 会宁县| 桐柏县| 新泰市| 闸北区| 两当县| 老河口市| 武义县| 大同县| 祁连县| 淮滨县| 凉城县| 梅州市| 常熟市| 周口市| 达孜县| 昌图县| 福州市| 佛冈县| 高台县|