Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
MacVIM help?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason Slack-Moehrle  
View profile  
 More options Jun 14 2012, 11:05 am
From: Jason Slack-Moehrle <slackmoeh...@gmail.com>
Date: Thu, 14 Jun 2012 08:05:55 -0700 (PDT)
Local: Thurs, Jun 14 2012 11:05 am
Subject: MacVIM help?

I am trying to create a macVim environment that allows files when
double clicked from the Finder and opened via a command-line to be
opened in MacVim in tabs.

I have in my .vimrc:

tabs=true

and in my .bash_profile:

alias mvim="open -a "/Applications/MacVim-snapshot-64/MacVim.app""

In MacVim prefs I have checked: Open files from applications: in the
current window
as well as the pop-up below as: with a tab for each file.

I am still getting separate windows.

Can anyone provide advice?

-Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Gray  
View profile  
 More options Jun 14 2012, 11:54 am
From: Tim Gray <tg...@protozoic.com>
Date: Thu, 14 Jun 2012 11:54:21 -0400
Local: Thurs, Jun 14 2012 11:54 am
Subject: Re: MacVIM help?
On Jun 14, 2012 at 08:05 AM -0700, Jason Slack-Moehrle wrote:

>In MacVim prefs I have checked: Open files from applications: in the
>current window
>as well as the pop-up below as: with a tab for each file.

That combination works here for me for files clicked in Finder.

For files opened from the command line, to open them up in a MacVim
window that is already open, you'll probably need to use the --remote
option.  Also, perusing the command line options, it looks like the -p
option will open the files in tabs.  From my playing around with these
options right now, --remote and -p don't work together.  I had to use
--remote-tab to get the combination behavior (open in the current MacVim
instance, but in tabs).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
björn  
View profile  
 More options Jun 14 2012, 4:14 pm
From: björn <bjorn.winck...@gmail.com>
Date: Thu, 14 Jun 2012 22:14:38 +0200
Local: Thurs, Jun 14 2012 4:14 pm
Subject: Re: MacVIM help?

On Thu, Jun 14, 2012 at 5:05 PM, Jason Slack-Moehrle wrote:

> I have in my .vimrc:

> tabs=true

This is not a valid command.  What did you intend to do?

> and in my .bash_profile:

> alias mvim="open -a "/Applications/MacVim-snapshot-64/MacVim.app""

This is also a bit strange.  Usually "mvim" refers to the script that
comes bundled with MacVim (see ":h mvim").

> In MacVim prefs I have checked: Open files from applications: in the
> current window
> as well as the pop-up below as: with a tab for each file.

> I am still getting separate windows.

I can just say the same as Tim: this preference works fine for me.
Maybe you should try going through the troubleshooting guide:

https://github.com/b4winckler/macvim/wiki/Troubleshooting

Björn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bee  
View profile  
 More options Jun 14 2012, 7:45 pm
From: Bee <beeyaw...@gmail.com>
Date: Thu, 14 Jun 2012 16:45:28 -0700 (PDT)
Local: Thurs, Jun 14 2012 7:45 pm
Subject: Re: MacVIM help?
On Jun 14, 8:05 am, Jason Slack-Moehrle <slackmoeh...@gmail.com>
wrote:

This works well to open files from the command line:

alias mvim='open -a macvim "$@"'

To have Finder open files with double click:
- find a file of the type (extension) you want to open in Finder
- in Finder highlight the file
- use "Finder > File > Get Info" --or-- command+I
- click the triangle next to "Open With"
- select MacVim, you may need to navigate using "Other..."
- finally select "Change All"

Then all files with that same extension will open with MacVim

-Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bee  
View profile  
 More options Jun 14 2012, 7:55 pm
From: Bee <beeyaw...@gmail.com>
Date: Thu, 14 Jun 2012 16:55:05 -0700 (PDT)
Local: Thurs, Jun 14 2012 7:55 pm
Subject: Re: MacVIM help?
Oh... it can be simpler:

alias mvim="open -a macvim $@"

And it can be used to open several files at time:

mvim zzoom.css ccc.sh .v7z.sh

-Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bee  
View profile  
 More options Jun 14 2012, 10:57 pm
From: Bee <beeyaw...@gmail.com>
Date: Thu, 14 Jun 2012 19:57:09 -0700 (PDT)
Local: Thurs, Jun 14 2012 10:57 pm
Subject: Re: MacVIM help?
Another possibility... to open each file in a tab:

macvimpath="/Applications/MacVim-snapshot-64"

alias vimm="$macvimpath/MacVim.app/Contents/MacOS/Vim -gp $@"

I like to separate the path from the app to make it clear where the
app is,
just in case, later, I move or rename it.

These are in my ~/.profile file.

Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zabouti  
View profile  
 More options Jun 15 2012, 12:25 pm
From: zabouti <zabo...@gmail.com>
Date: Fri, 15 Jun 2012 09:25:41 -0700 (PDT)
Local: Fri, Jun 15 2012 12:25 pm
Subject: Re: MacVIM help?

Thanks to everyone here - this is something I've wanted to do for a long time.

Now, thanks to the suggestions here and to vim's help messages, I've made a little shell script with these two lines:

#!/bin/sh
/Applications/MacVim.app/Contents/MacOS/Vim -gp --remote-tab $*

If I call it with something like 'myvim ~/temp.txt', it will open ~/temp.txt in an existing MacVim window in a new tab.

I love it!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Todd  
View profile  
 More options Jun 16 2012, 3:33 am
From: Andy Todd <and...@halfcooked.com>
Date: Sat, 16 Jun 2012 17:33:27 +1000
Local: Sat, Jun 16 2012 3:33 am
Subject: Re: MacVIM help?
On 16/06/12 2:25 AM, zabouti wrote:

> Thanks to everyone here - this is something I've wanted to do for a long time.

> Now, thanks to the suggestions here and to vim's help messages, I've made a little shell script with these two lines:

> #!/bin/sh
> /Applications/MacVim.app/Contents/MacOS/Vim -gp --remote-tab $*

> If I call it with something like 'myvim ~/temp.txt', it will open ~/temp.txt in an existing MacVim window in a new tab.

> I love it!

Or you could just switch to MacVim and type :tabe ~/temp.txt

Regards,
Andy
--
 From the desk of Andrew J Todd esq - http://www.halfcooked.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zabouti  
View profile  
 More options Jun 16 2012, 7:27 am
From: zabouti <zabo...@gmail.com>
Date: Sat, 16 Jun 2012 04:27:15 -0700 (PDT)
Local: Sat, Jun 16 2012 7:27 am
Subject: Re: MacVIM help?

Or I can drag the file's icon from the finder and drop it into my MacVim window.

The point is that I can now do this right from the shell, where I tend to do lots of my work.

-- ge


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »