Vim-fork focused on extensibility and usability
Go to file
Matthew Malcomson b2b88423aa Robustly handle folds during a :move command
In order to re-order marks according to the :move command, do_move()
uses mark_adjust() in a non-standard manner. The non-standard action is
that it moves some marks *past* other marks. This doesn't matter for
marks, but mark_adjust() calls foldMarkAdjust() which simply changes
fold starts and lengths and doesn't have enough information to know that
other folds have to be checked and reordered.

The array of folds for each window are assumed to be in order of
increasing line number, and if this gets broken some folds can get
"lost".

There has been a previous patch to avoid this problem by deleting and
recalculating all folds in the window, but this comes at the cost of
closing all folds when executing :move, and doesn't cover the case of
manual folds.
This patch adds a new function foldMoveRange() specifically for the
:move command that handles reordering folds as well as simply moving
them. Additionally, we allow calling mark_adjust_nofold() that does the
same as mark_adjust() but doesn't affect any fold array.

Calling mark_adjust_nofold() should be done in the same manner as
calling mark_adjust(), but according changes to the fold arrays must be
done seperately by the calling function.

vim-patch:8.0.0457
vim-patch:8.0.0459
vim-patch:8.0.0461
vim-patch:8.0.0465
2017-03-23 14:37:47 +00:00
.ci ci: Better core dump checking 2017-02-14 00:33:52 +03:00
cmake build: oldtest target: TEST_FILE, NVIM_PRG (#6098) 2017-02-12 01:02:54 +01:00
config build: Do not check for obsolete <termio.h> 2016-12-24 17:41:06 +01:00
contrib contrib/ycm_extra_conf.py (#6257) 2017-03-11 15:37:21 +01:00
man tui: Enable mode-sensitive cursor by default. 2017-01-20 15:48:41 +01:00
runtime doc: Update missing headers. (#6330) 2017-03-22 01:13:51 +01:00
scripts scripts/vim-patch.sh: Remove "Last change ..." lines. 2017-03-21 12:19:16 +01:00
src Robustly handle folds during a :move command 2017-03-23 14:37:47 +00:00
test Robustly handle folds during a :move command 2017-03-23 14:37:47 +00:00
third-party doc: eval.txt fixup, README.md 2017-03-13 15:50:50 +01:00
unicode Update unicode files 2016-09-24 14:03:22 -04:00
.editorconfig add .editorconfig 2016-02-23 18:03:27 +09:00
.gitignore .gitignore: Do not ignore *.rej 2017-03-21 12:19:16 +01:00
.travis.yml ci: MIN_LOG_LEVEL=2 (#6169) 2017-02-24 11:03:56 +01:00
appveyor.yml win/CI: Cache dependencies. 2017-02-16 16:23:18 +01:00
BACKERS.md Update backer URL 2015-11-11 19:50:33 -08:00
CMakeLists.txt api: bump api level to 2 2017-03-15 15:01:06 +01:00
CONTRIBUTING.md doc: QuickBuild 2017-01-31 08:58:43 +01:00
ISSUE_TEMPLATE.md doc: precision, concision, elision 2016-06-03 17:11:10 -04:00
LICENSE LICENSE: add LuaJIT notice. #899 2014-06-30 13:59:56 -04:00
Makefile build: Makefile: Try other cmake names, or override. #6163 2017-02-27 14:28:15 +01:00
README.md doc: eval.txt fixup, README.md 2017-03-13 15:50:50 +01:00

Neovim

Wiki | Documentation | Twitter | Community | Gitter Chat

Travis Build Status AppVeyor Build status Pull requests waiting for review Coverage Status Coverity Scan Build Clang Scan Build Debian

Neovim is a project that seeks to aggressively refactor Vim in order to:

See the wiki and Roadmap for more information.

Throughput Graph

Install from source

make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install

See the wiki for details.

Install from package

Packages are in Homebrew, Debian, Ubuntu, Fedora, Arch Linux, and more.

Project layout

  • .ci/: Build server scripts
  • cmake/: Build scripts
  • runtime/: Application files
  • src/: Application source code
  • third-party/: CMake sub-project to build third-party dependencies (if the USE_BUNDLED_DEPS flag is undefined or USE_BUNDLED CMake option is false).
  • test/: Test files

What's been done so far

See :help nvim-features for a comprehensive list.

License

Neovim is licensed under the terms of the Apache 2.0 license, except for parts that were contributed under the Vim license.

  • Contributions committed before b17d96 remain under the Vim license.

  • Contributions committed after b17d96 are licensed under Apache 2.0 unless those contributions were copied from Vim (identified in the commit logs by the vim-patch token).

See LICENSE for details.

Vim is Charityware.  You can use and copy it as much as you like, but you are
encouraged to make a donation for needy children in Uganda.  Please see the
kcc section of the vim docs or visit the ICCF web site, available at these URLs:

        http://iccf-holland.org/
        http://www.vim.org/iccf/
        http://www.iccf.nl/

You can also sponsor the development of Vim.  Vim sponsors can vote for
features.  The money goes to Uganda anyway.