[vim ] Vim 8.2 released已刪文

看板Editor (編輯器(vim/emacs))作者 (陽春白雪)時間5年前 (2019/12/15 16:51), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
https://www.vim.org/vim-8.2-released.php 兩項主要新功能 popup windows and text properties runtime/doc/version8.txt 的 8.2 相關 VERSION 8.2 *version-8.2* *version8.2* *vim-8.2* This section is about improvements made between version 8.1 and 8.2. This release has hundreds of bug fixes, there are several new features and there are many minor improvements. Popup windows *new-popup-window* ------------- Popup windows can be used to display text on top of other windows. This can be for a simple message such as "Build finished successfully", showing a function prototype while editing a function call, a flexible popup menu and many other purposes. See |popup-window|. Popup windows are very flexible: they can be positioned relative to text, an absolute position or just in the middle of the screen. The size can be fixed or adjusts to fit the text. A "zindex" value specifies what popup window goes on top of others. The new 'wincolor' option allows for setting the color for the whole popup window. This also works for normal windows. Text properties *new-text-properties* --------------- Text properties give a plugin author flexibility about what to highlight. This can be used with an external asynchronous parser to do syntax highlighting. Or to highlight text in a popup window. The text properties stick with the text when characters are deleted or inserted, which makes them also useful as text markers. See |text-properties|. The listener functions have been added to report text changes to a server so that it can dynamically update highlighting, mark syntax errors and the like. See |listener_add()|. Vim script improvements *new-vimscript-8.2* ----------------------- Functions can now be called in a chain, using "->": > mylist->filter(filterexpr)->map(mapexpr)->sort()->join() The new `:eval` command can be used if the chain has no result. The `:scriptversion` command was added to allow for changes that are not backwards compatible. E.g. to only use ".." for string concatenation, so that "." can be used to access a dictionary member consistently. `:const` was added to allow for declaring a variable that cannot change: > const TIMER_DELAY = 400 A heredoc-style assignment was added to easily assign a list of lines to a variable without quoting or line continuation: > let lines =<< trim END line one line two END The |Blob| type was added. This makes it easy to deal with binary data. The /= and %= assignment operators were added. A Dictionary can be defined with literal keys using #{}. This avoids having to use a lot of quotes: > let options = #{width: 30, height: 24} Other improvements *new-other-8.2* ------------------ - When 'incsearch' is set it also applies to `:substitute`. - |modifyOtherKeys| was added to allow mapping more key combinations. - ConPTY support was added for Windows 10, supports full color in the terminal. - The MS-Windows installer supports translations, silent install and looks much better. Changed *changed-8.2* ------- The xdiff library was included to avoid the need for an external diff program and to make updating diffs much faster. The code is using a few more modern C features, such as // comments. Support for old compilers has been dropped: Borland C++, MSVC 2008. Hangul input support was removed, it actually didn't work anymore. Makefiles for old Amiga compilers were removed: Dice, Manx and SAS. If a swap file is found without any changes it is automatically deleted. The FEAT_TAG_OLDSTATIC code was removed, it slowed down tag searches. The FEAT_TAG_ANYWHITE code was removed, is was not enabled in any build. The UNICODE16 code was removed, it was not useful. Workshop support was removed, nobody was using it. The Aap build files were removed, they were outdated. Farsi support was removed, it was outdated and unused. VIMDLL was re-implemented, this shares the common parts between vim and gvim to reduce the total install size. The following features are now included in all versions: |+multi_byte|, |+virtualedit|, |+vreplace|, |+localmap|, |+cmdline_hist|, |+cmdline_compl|, |+insert_expand|, |+modify_fname|, |+comments| -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.134.104.66 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1576399876.A.C0F.html
文章代碼(AID): #1TzVG4mF (Editor)
文章代碼(AID): #1TzVG4mF (Editor)