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) 評(píng)論(0)  編輯  收藏 所屬分類: vim

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


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

          常用鏈接

          隨筆分類

          隨筆檔案

          文章檔案

          相冊(cè)

          連接

          最新隨筆

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 甘德县| 乡宁县| 乌拉特前旗| 宣恩县| 商丘市| 富阳市| 大邑县| 阿城市| 平乐县| 赤水市| 温宿县| 于田县| 囊谦县| 南川市| 蓝山县| 安溪县| 正镶白旗| 晋江市| 望江县| 桦南县| 柳林县| 当雄县| 湘潭县| 禹州市| 神池县| 麻栗坡县| 安陆市| 高清| 彭泽县| 通道| 淮滨县| 湟中县| 宜章县| SHOW| 黄浦区| 新丰县| 乡城县| 绿春县| 蒲城县| 通海县| 饶平县|