*version8.txt* For Vim version 9.0. Last change: 2022 Feb 26
VIM REFERENCE MANUAL by Bram Moolenaar
*vim8* *vim-8* *version-8.0* *version8.0*
Welcome to Vim 8! A large number of bugs have been fixed and several nice
features have been added. This file mentions all the new items and changes to
existing features since Vim 7.4. The patches up to Vim 7.4 can be found here:
|vim-7.4|.
Use this command to see the full version and features information of the Vim
program you are using: >
:version
NEW FEATURES |new-8|
Vim script enhancements |new-vim-script-8|
Various new items |new-items-8|
INCOMPATIBLE CHANGES |incompatible-8|
IMPROVEMENTS |improvements-8|
COMPILE TIME CHANGES |compile-changes-8|
PATCHES |patches-8|
VERSION 8.1 |version-8.1|
Changed |changed-8.1|
Added |added-8.1|
Patches |patches-8.1|
VERSION 8.2 |version-8.2|
Changed |changed-8.2|
Added |added-8.2|
Patches |patches-8.2|
See |vi_diff.txt| for an overview of differences between Vi and Vim 8.0.
See |version4.txt|, |version5.txt|, |version6.txt| and |version7.txt| for
differences between other versions.
*vim-changelog*
You can find an overview of the most important changes (according to Martin
Tournoij) on this site: https://www.arp242.net/vimlog/
==============================================================================
NEW FEATURES *new-8*
First an overview of the more interesting new features. A comprehensive list
is below.
Asynchronous I/O support, channels ~
Vim can now exchange messages with other processes in the background. This
makes it possible to have servers do work and send back the results to Vim.
See |channel-demo| for an example, this shows communicating with a Python
server.
Closely related to channels is JSON support. JSON is widely supported and can
easily be used for inter-process communication, allowing for writing a server
in any language. The functions to use are |json_encode()| and |json_decode()|.
This makes it possible to build very complex plugins, written in any language
and running in a separate process.
Jobs ~
Vim can now start a job, communicate with it and stop it. This is very useful
to run a process for completion, syntax checking, etc. Channels are used to
communicate with the job. Jobs can also read from or write to a buffer or a
file. See |job_start()|.
Timers ~
Also asynchronous are timers. They can fire once or repeatedly and invoke a
function to do any work. For example: >
let tempTimer = timer_start(4000, 'CheckTemp')
This will call the CheckTemp() function four seconds (4000 milliseconds)
later. See |timer_start()|.
Partials ~
Vim already had a Funcref, a reference to a function. A partial also refers
to a function, and additionally binds arguments and/or a dictionary. This is
especially useful for callbacks on channels and timers. E.g., for the timer
example above, to pass an argument to the function: >
let tempTimer = timer_start(4000, function('CheckTemp', ['out']))
This will call CheckTemp('out') four seconds later.
Lambda and Closure ~
A short way to create a function has been added: {args -> expr}. See |lambda|.
This is useful for functions such as `filter()` and `map()`, which now also
accept a function argument. Example: >
:call filter(mylist, {idx, val -> val > 20})
A lambda can use variables defined in the scope where the lambda is defined.
This is usually called a |closure|.
User defined functions can also be a closure by adding the "closure" argument
|:func-closure|.
Packages ~
Plugins keep growing and more of them are available than ever before. To keep
the collection of plugins manageable package support has been added. This is
a convenient way to get one or more plugins, drop them in a directory and
possibly keep them updated. Vim will load them automatically, or only when
desired. See |packages|.
New style tests ~
This is for Vim developers. So far writing tests for Vim has not been easy.
Vim 8 adds assert functions and a framework to run tests. This makes it a lot
simpler to write tests and keep them updated. Also new are several functions
that are added specifically for testing. See |test-functions|.
Window IDs ~
Previously windows could only be accessed by their number. And every time a
window would open, close or move that number changes. Each window now has a
unique ID, so that they are easy to find. See |win_getid()| and |win_id2win()|.
Viminfo uses timestamps ~
Previously the information stored in viminfo was whatever the last Vim wrote
there. Now timestamps are used to always keep the most recent items.
See |viminfo-timestamp|.
Wrapping lines with indent ~
The 'breakindent' option has been added to be able to wrap lines without
changing the amount of indent.
Windows: DirectX support ~
This adds the 'renderoptions' option to allow for switching on DirectX
(DirectWrite) support on MS-Windows.
GTK+ 3 support ~
The GTK+ 3 GUI works just like GTK+ 2 except for hardly noticeable technical
differences between them. Configure still chooses GTK+ 2 if both 2 and 3 are
available. See src/Makefile for how to use GTK+ 3 instead. See
|gui-x11-compiling| for other details.
Vim script enhancements *new-vim-script-8*
-----------------------
In Vim script the following types have been added:
|Special| |v:false|, |v:true|, |v:none| and |v:null|
|Channel| connection to another process for asynchronous I/O
|Job| process control
Many functions and commands have been added to support the new types.
On some systems the numbers used in Vim script are now 64 bit. This can be
checked with the |+num64| feature.
Many items were added to support |new-style-testing|.
printf() now accepts any type of argument for %s. It is converted to a string
like with string().
Various new items *new-items-8*
-----------------
Visual mode commands: ~
|v_CTRL-A| CTRL-A add N to number in highlighted text
|v_CTRL-X| CTRL-X subtract N from number in highlighted text
|v_g_CTRL-A| g CTRL-A add N to number in highlighted text
|v_g_CTRL-X| g CTRL-X subtract N from number in highlighted text
Insert mode commands: ~
|i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement
Cmdline mode commands: ~
|/_CTRL-G| CTRL-G move to the next match in 'incsearch' mode
|/_CTRL-T| CTRL-T move to the previous match in 'incsearch' mode
Options: ~
'belloff' do not ring the bell for these reasons
'breakindent' wrapped line repeats indent
'breakindentopt' settings for 'breakindent'.
'emoji' emoji characters are considered full width
'fixendofline' make sure last line in file has <EOL>
'langremap' do apply 'langmap' to mapped characters
'luadll' name of the Lua dynamic library
'packpath' list of directories used for packages
'perldll' name of the Perl dynamic library
'pythondll' name of the Python 2 dynamic library
'pythonthreedll' name of the Python 3 dynamic library
'renderoptions' options for text rendering on Windows
'rubydll' name of the Ruby dynamic library
'signcolumn' when to display the sign column
'tagcase' how to handle case when searching in tags files
'tcldll' name of the Tcl dynamic library
'termguicolors' use GUI colors for the terminal
Ex commands: ~
|:cbottom| scroll to the bottom of the quickfix window
|:cdo| execute command in each valid error list entry
|:cfdo| execute command in each file in error list
|:chistory| display quickfix list stack
|:clearjumps| clear the jump list
|:filter| only output lines that (do not) match a pattern
|:helpclose| close one help window
|:lbottom| scroll to the bottom of the location window
|:ldo| execute command in valid location list entries
|:lfdo| execute command in each file in location list
|:lhistory| display location list stack
|:noswapfile| following commands don't create a swap file
|:packadd| add a plugin from 'packpath'
|:packloadall| load all packages under 'packpath'
|:smile| make the user
没有合适的资源?快使用搜索试试~ 我知道了~
MoneyPrinterTurbo:一键生成短视频的AI神器
共2002个文件
py:985个
html:378个
h:303个
需积分: 0 10 下载量 158 浏览量
2024-05-17
18:08:38
上传
评论
收藏 841.45MB ZIP 举报
温馨提示
在数字化内容创作领域,视频已成为最受欢迎的媒介之一。然而,制作一部高质量的短视频不仅需要创意,还需要大量的时间和精力。幸运的是,随着人工智能技术的发展,现在有了MoneyPrinterTurbo——一款能够自动化视频创作的开源工具,它让视频制作变得前所未有的简单。 图片 什么是MoneyPrinterTurbo? MoneyPrinterTurbo是由国内开发者harry0703基于原有的MoneyPrinter项目优化而来的一款工具,专为国内用户设计。它利用AI大模型,通过用户提供的视频主题或关键词,全自动生成视频文案、素材、字幕以及背景音乐,并最终合成一个高清的短视频。这一工具的诞生,大幅减少了繁琐的手动视频编辑工作,让内容创作者能够更专注于创意本身。 主要功能特性 AI自动生成视频文案:MoneyPrinterTurbo支持视频文案的AI自动生成,同时也允许用户自定义文案,确保内容的个性化和创意性。 多种高清视频尺寸支持:无论是竖屏(9:16)还是横屏(16:9),MoneyPrinterTurbo都能适应不同的视频尺寸需求。 批量视频生成:用户可以一次生成多个视频,然
资源推荐
资源详情
资源评论
收起资源包目录
MoneyPrinterTurbo:一键生成短视频的AI神器 (2002个子文件)
bootstrap.min.css 107KB
doxygen.css 44KB
style.css 12KB
style.min.css 6KB
docbook-xsl.css 4KB
default.css 2KB
tabs.css 1KB
_pydoc.css 96B
.DS_Store 10KB
.DS_Store 8KB
avformat.h 115KB
avcodec.h 110KB
avfilter.h 53KB
unicodeobject.h 43KB
pixfmt.h 41KB
opt.h 39KB
frame.h 38KB
unicodeobject.h 35KB
channel_layout.h 32KB
pyport.h 31KB
abstract.h 31KB
avio.h 30KB
packet.h 29KB
pycore_ast.h 28KB
object.h 28KB
hwcontext.h 24KB
dynamic_annotations.h 22KB
swresample.h 22KB
iamf.h 21KB
mem.h 20KB
pyconfig.h 20KB
object.h 19KB
intreadwrite.h 18KB
codec_id.h 18KB
common.h 17KB
pycore_atomic.h 17KB
imgutils.h 16KB
pixdesc.h 16KB
swscale.h 16KB
avstring.h 15KB
hdr_dynamic_metadata.h 14KB
abstract.h 14KB
avdevice.h 13KB
codec.h 13KB
log.h 12KB
pyerrors.h 12KB
defs.h 12KB
buffer.h 12KB
pystate.h 12KB
bsf.h 11KB
hwcontext_vulkan.h 11KB
modsupport.h 10KB
samplefmt.h 10KB
film_grain_params.h 10KB
hdr_dynamic_vivid_metadata.h 10KB
datetime.h 9KB
mathematics.h 9KB
avutil.h 9KB
dict.h 9KB
pycore_interp.h 9KB
pytime.h 9KB
bprint.h 9KB
pycore_blocks_output_buffer.h 8KB
longobject.h 8KB
fifo.h 8KB
hash.h 8KB
objimpl.h 8KB
pymath.h 8KB
spherical.h 8KB
parseutils.h 8KB
timecode.h 8KB
codec_par.h 8KB
dovi_meta.h 7KB
initconfig.h 7KB
code.h 7KB
tx.h 7KB
codecs.h 7KB
encryption_info.h 7KB
buffersink.h 7KB
pycore_gc.h 7KB
buffersrc.h 7KB
hwcontext_d3d11va.h 7KB
eval.h 6KB
pycore_ast_state.h 6KB
cpu.h 6KB
rational.h 6KB
video_enc_params.h 6KB
pycore_object.h 6KB
audio_fifo.h 6KB
pythread.h 6KB
ceval.h 6KB
pycore_initconfig.h 5KB
pycore_symtable.h 5KB
opcode.h 5KB
error.h 5KB
pyerrors.h 5KB
vdpau.h 5KB
tree.h 5KB
pycore_bitutils.h 5KB
pystate.h 5KB
共 2002 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
资源评论
weixin_37576193
- 粉丝: 2614
- 资源: 109
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功