English 中文(简体)
• 如何从动脉指挥线互动操作手稿?
原标题:How to run a vim script interactively from vim command line?

www.un.org/Depts/DGACM/index_spanish.htm 是否有办法从<条码>上操作这些文字:带有几条主要线的指挥线?

在过去几个月里,我建立了一系列充满活力的档案,为我的项目制定汽车配制法。 这使我能够更快地工作。

然而,我知道如何操作这些文字的唯一途径是将其分配给<代码>~/.vimrc的关键组合。 我只能重述许多关键因素。

是否有办法从<条码>上操作这些文字:带有几条主要线的指挥线?

例如,我有一份<代码>unit_test_cpp.vim的书,该书建立了一台碎块测试装置。 我要说的是,我能够照样。

:utc

或者说,用简单明了的手法把这本书放在我目前公开的档案中。

最佳回答

页: 1 www.un.org/spanish/ga/president 您将提出这样的建议:

command Utc call CreateUnitTests()

现在,当你打上<代码>:Utc时,它将叫你履行职务。 唯一的限制是,你的指挥必须从上封信开始。

问题回答

开放之门并进入:

:source /path/to/vim/file/name.vim

如果你目前正在编辑这一档案,你也可以说:

:w <ENTER>
:source % <ENTER>

百分比表示(%)指的是通往目前开放档案的道路。

文字或功能? 如果是职能,审判

:call FunctionName() 
:run file.vim

<代码>:run 就像:source,但:run<> 不需要这条路。 它搜索<代码>runtimepath

www.un.org/Depts/DGACM/index_spanish.htm

$HOME/.vim,
$VIM/vimfiles,
$VIMRUNTIME,
$VIM/vimfiles/after,
$HOME/.vim/after




相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...

热门标签