是否有办法建立MacVim,以便在MacVim公司经营的现代窗口上打开新档案吗? 目前,我倾向于“在现有窗口的新表格中提供新档案”,但理想的情况是,我只想打开新的档案,说明“新档案”的工作方式,而没有表格。
我的主要动机是,我目前利用NERDTree和Bufexplorer来从事我的工作,根本不需要表格。 I m还使用PepOpen,除了总是开放基于MacVim的偏好的文件外,这很麻烦,因此,我可以做的是,在目前的MacVim窗口打开新的表格。
是否有办法建立MacVim,以便在MacVim公司经营的现代窗口上打开新档案吗? 目前,我倾向于“在现有窗口的新表格中提供新档案”,但理想的情况是,我只想打开新的档案,说明“新档案”的工作方式,而没有表格。
我的主要动机是,我目前利用NERDTree和Bufexplorer来从事我的工作,根本不需要表格。 I m还使用PepOpen,除了总是开放基于MacVim的偏好的文件外,这很麻烦,因此,我可以做的是,在目前的MacVim窗口打开新的表格。
你还可以补充:
页: 1
这似乎与我最简单的解决办法一样。
我亲自使用这样的指挥,看到这里的一切,并尝试什么。
mvim --help
最终结果。
我发现:
mvim --remote-tab-silent foo.txt
我为我工作,随后我很快在我的<代码>上添加了一条内容。 是的,如果你在选择之后不向它提供档案,而是谁打开了没有名字的空白档案,那就不了吗?
您也可考虑编辑主要字典的本节。
改进MacVim的距离
这一修改是轻松的,而且可以:
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
将档案底部的结构改为:
# 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
显然,这既是一种比平准的 b/c ,在你进行MacVim更新时,你必须保持黑板。 但是,他们帮助我从新Mac Vim tabs港站开了多份档案。
@Björn Winckler的答复表明,你如何为通过发现器和其他开放式的非洲顾问办机制开启的档案做事。
如果你想要与指挥员合作,请查阅<编码>mvim文档,并从底线更改。
if [ "$gui" ]; then
# Note: this isn t perfect, because any error output goes 纽约总部 the
# terminal instead of the console log.
# But if you use open instead, you will need 纽约总部 fully qualify the
# path names for any filenames you specify, which is hard.
exec "$binary" -g $opts ${1:+"$@"}
else
exec "$binary" $opts ${1:+"$@"}
fi
纽约总部
if [ "$gui" ]; then
# Note: this isn t perfect, because any error output goes 纽约总部 the
# terminal instead of the console log.
# But if you use open instead, you will need 纽约总部 fully qualify the
# path names for any filenames you specify, which is hard.
#make macvim open stuff in the same window instead of new ones
if $tabs && [[ `$binary --serverlist` = "VIM" ]]; then
exec "$binary" -g $opts --remote ${1:+"$@"}
else
exec "$binary" -g $opts ${1:+"$@"}
fi
else
exec "$binary" $opts ${1:+"$@"}
fi
这样,从指挥线开立的所有档案也将在同一窗口上打开。
Also if you would like the file 纽约总部 open the same buffer if that file is already open in stead of splitting or adding a new tab
au VimEnter,BufWinEnter * NERDTreeFind
纽约总部 your gvimrc (so not 纽约总部 interfere with your regular vim)
(this last part requires you 纽约总部 have NERDTree installed)
这就是我如何做到这一点:
在VIM,有一个指挥“船只”,使目前的布局成为唯一的表格。 我在我的缩略语中增加了以下内容:
autocmd BufWinEnter,BufNewFile * silent tabo
因此,在我创造新的缓冲或进入新的缓冲地带时,目前的表格自动成为唯一的表格。 这一指挥并不影响我的缓冲,因此,其效果恰恰是我所希望的:在MacVim一案中开启档案,不增加任何新的表格。
我发现Azriel的回答是巨大的,但如果档案不存在,它就不起作用。 这一作用不大,但你也可以创建新的档案。
mvim () { touch "$@" && open -a MacVim "$@"; }
见.bash_profile
。 然后,你可以编辑一个新的文件foo
。
mvim foo
它将以新的表格形式开放。
I m using an XmlReader.ReadInnerXML to read an XML document (as text) embedded within in an element of an outer XML document. This works fine except for the handling of tab characters in attributes ...
I ve built a tab navigation, but everytime if i try to access the a certain div using the url with the hash #, it would then anchor to the section, is there anyway to prevent it from auto-anchoring? ...
I have a Tab Control with a ItemsSource Binding. ... I want to add a predefined tab to the front called All that has an aggregate of all the other tabs, and I would also like to add a button at ...
I m creating a multi-tabbed .NET application that allows the user to dynamically add and remove tabs at runtime. When a new tab is added, a control is added to it (as a child), in which the contents ...
I ve got an asp.net page containing a Textbox with an Autocomplete extender on it. It s setup so the user can type a short reference code into the textbox and then choose from the list of matching ...
I need to have the tabs as rendered by jQuery s semantic tabs (semtabs) but without the functionality that shows one div and hides the others. Is there a simple way to prevent that functionality to ...
it wont let me submit more than one link, so please use your imagination, i need multiple tabs with mutliple mouse overs or images so that thing in the middle is an image <script type="text/...
I am not able to get my jwysiwyg and Jhtmlarea text editors to work within an AJAX loaded Jquery UI Tab Both text editors work when loaded normally. This loads the tabs on the "View Page" <...