mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge remote-tracking branch 'origin/master' into vim-7.4.2170
This commit is contained in:
commit
bb54d921aa
7
.gitignore
vendored
7
.gitignore
vendored
@ -4,7 +4,6 @@
|
|||||||
/.deps/
|
/.deps/
|
||||||
/tmp/
|
/tmp/
|
||||||
|
|
||||||
*.rej
|
|
||||||
*.orig
|
*.orig
|
||||||
*.mo
|
*.mo
|
||||||
.*.sw?
|
.*.sw?
|
||||||
@ -40,9 +39,6 @@ tags
|
|||||||
# generated by luacheck during `make testlint'
|
# generated by luacheck during `make testlint'
|
||||||
/test/.luacheckcache
|
/test/.luacheckcache
|
||||||
|
|
||||||
# luarocks, not added as a subtree because of the large number of blobs
|
|
||||||
/third-party/luarocks
|
|
||||||
|
|
||||||
# local make targets
|
# local make targets
|
||||||
local.mk
|
local.mk
|
||||||
|
|
||||||
@ -50,6 +46,3 @@ local.mk
|
|||||||
/runtime/doc/*.html
|
/runtime/doc/*.html
|
||||||
/runtime/doc/tags.ref
|
/runtime/doc/tags.ref
|
||||||
/runtime/doc/errors.log
|
/runtime/doc/errors.log
|
||||||
|
|
||||||
# clint errors, generated by `make lint`
|
|
||||||
/errors.json
|
|
||||||
|
25
.travis.yml
25
.travis.yml
@ -10,7 +10,7 @@ env:
|
|||||||
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
|
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
|
||||||
- MAKE_CMD="make -j2"
|
- MAKE_CMD="make -j2"
|
||||||
# Update PATH for pip.
|
# Update PATH for pip.
|
||||||
- PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:/usr/lib/llvm-symbolizer-3.8/bin:$PATH"
|
- PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:/usr/lib/llvm-symbolizer-3.9/bin:$PATH"
|
||||||
# Build directory for Neovim.
|
# Build directory for Neovim.
|
||||||
- BUILD_DIR="$TRAVIS_BUILD_DIR/build"
|
- BUILD_DIR="$TRAVIS_BUILD_DIR/build"
|
||||||
# Build directory for third-party dependencies.
|
# Build directory for third-party dependencies.
|
||||||
@ -50,6 +50,7 @@ env:
|
|||||||
- SUCCESS_MARKER="$BUILD_DIR/.tests_successful"
|
- SUCCESS_MARKER="$BUILD_DIR/.tests_successful"
|
||||||
# default target name for functional tests
|
# default target name for functional tests
|
||||||
- FUNCTIONALTEST=functionaltest
|
- FUNCTIONALTEST=functionaltest
|
||||||
|
- CI_TARGET=tests
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -68,10 +69,10 @@ matrix:
|
|||||||
compiler: gcc-5 -m32
|
compiler: gcc-5 -m32
|
||||||
env: BUILD_32BIT=ON
|
env: BUILD_32BIT=ON
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang-3.8
|
compiler: clang-3.9
|
||||||
env: CLANG_SANITIZER=ASAN_UBSAN
|
env: CLANG_SANITIZER=ASAN_UBSAN
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang-3.8
|
compiler: clang-3.9
|
||||||
env: CLANG_SANITIZER=TSAN
|
env: CLANG_SANITIZER=TSAN
|
||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
@ -83,24 +84,24 @@ matrix:
|
|||||||
- env: GCOV=gcov-5 CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON"
|
- env: GCOV=gcov-5 CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON"
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
before_install: .ci/before_install.sh
|
before_install: ci/before_install.sh
|
||||||
install: .ci/install.sh
|
install: ci/install.sh
|
||||||
before_script: .ci/before_script.sh
|
before_script: ci/before_script.sh
|
||||||
script: .ci/script.sh
|
script: ci/script.sh
|
||||||
before_cache: .ci/before_cache.sh
|
before_cache: ci/before_cache.sh
|
||||||
after_success: .ci/after_success.sh
|
after_success: ci/after_success.sh
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-precise-3.8
|
- llvm-toolchain-trusty-3.9
|
||||||
packages:
|
packages:
|
||||||
- autoconf
|
- autoconf
|
||||||
- automake
|
- automake
|
||||||
- apport
|
- apport
|
||||||
- build-essential
|
- build-essential
|
||||||
- clang-3.8
|
- clang-3.9
|
||||||
- cmake
|
- cmake
|
||||||
- cscope
|
- cscope
|
||||||
- g++-5-multilib
|
- g++-5-multilib
|
||||||
@ -110,7 +111,7 @@ addons:
|
|||||||
- gdb
|
- gdb
|
||||||
- libc6-dev-i386
|
- libc6-dev-i386
|
||||||
- libtool
|
- libtool
|
||||||
- llvm-3.8-dev
|
- llvm-3.9-dev
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- unzip
|
- unzip
|
||||||
- valgrind
|
- valgrind
|
||||||
|
@ -310,6 +310,21 @@ include_directories(SYSTEM ${LIBUV_INCLUDE_DIRS})
|
|||||||
find_package(Msgpack 1.0.0 REQUIRED)
|
find_package(Msgpack 1.0.0 REQUIRED)
|
||||||
include_directories(SYSTEM ${MSGPACK_INCLUDE_DIRS})
|
include_directories(SYSTEM ${MSGPACK_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
list(APPEND CMAKE_REQUIRED_INCLUDES "${MSGPACK_INCLUDE_DIRS}")
|
||||||
|
check_c_source_compiles("
|
||||||
|
#include <msgpack.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main(void)
|
||||||
|
{
|
||||||
|
return MSGPACK_OBJECT_FLOAT32;
|
||||||
|
}
|
||||||
|
" MSGPACK_HAS_FLOAT32)
|
||||||
|
|
||||||
|
if(MSGPACK_HAS_FLOAT32)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNVIM_MSGPACK_HAS_FLOAT32")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
option(FEAT_TUI "Enable the Terminal UI" ON)
|
option(FEAT_TUI "Enable the Terminal UI" ON)
|
||||||
else()
|
else()
|
||||||
|
15
Makefile
15
Makefile
@ -126,12 +126,15 @@ distclean: clean
|
|||||||
install: | nvim
|
install: | nvim
|
||||||
+$(BUILD_CMD) -C build install
|
+$(BUILD_CMD) -C build install
|
||||||
|
|
||||||
clint:
|
clint: build/.ran-cmake
|
||||||
$(CMAKE_PRG) -DLINT_PRG=./src/clint.py \
|
+$(BUILD_CMD) -C build clint
|
||||||
-DLINT_DIR=src \
|
|
||||||
-DLINT_SUPPRESS_URL="$(DOC_DOWNLOAD_URL_BASE)$(CLINT_ERRORS_FILE_PATH)" \
|
|
||||||
-P cmake/RunLint.cmake
|
|
||||||
|
|
||||||
lint: clint testlint
|
clint-full: build/.ran-cmake
|
||||||
|
+$(BUILD_CMD) -C build clint-full
|
||||||
|
|
||||||
|
check-single-includes: build/.ran-cmake
|
||||||
|
+$(BUILD_CMD) -C build check-single-includes
|
||||||
|
|
||||||
|
lint: check-single-includes clint testlint
|
||||||
|
|
||||||
.PHONY: test testlint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install
|
.PHONY: test testlint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install
|
||||||
|
@ -43,7 +43,7 @@ Packages are in [Homebrew], [Debian], [Ubuntu], [Fedora], [Arch Linux], and
|
|||||||
Project layout
|
Project layout
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
- `.ci/`: Build server scripts
|
- `ci/`: Build server scripts
|
||||||
- `cmake/`: Build scripts
|
- `cmake/`: Build scripts
|
||||||
- `runtime/`: Application files
|
- `runtime/`: Application files
|
||||||
- [`src/`](src/nvim/README.md): Application source code
|
- [`src/`](src/nvim/README.md): Application source code
|
||||||
|
@ -4,9 +4,9 @@ configuration:
|
|||||||
- MINGW_32
|
- MINGW_32
|
||||||
install: []
|
install: []
|
||||||
build_script:
|
build_script:
|
||||||
- call .ci\build.bat
|
- call ci\build.bat
|
||||||
cache:
|
cache:
|
||||||
- C:\msys64\var\cache\pacman\pkg -> .ci\build.bat
|
- C:\msys64\var\cache\pacman\pkg -> ci\build.bat
|
||||||
- .deps -> third-party/CMakeLists.txt
|
- .deps -> third-party/CMakeLists.txt
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: build/Neovim.zip
|
- path: build/Neovim.zip
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -n "${CI_TARGET}" ]]; then
|
if [[ "${CI_TARGET}" == lint ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -n "${CI_TARGET}" ]]; then
|
if [[ "${CI_TARGET}" == lint ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
@ -1,3 +1,11 @@
|
|||||||
|
top_make() {
|
||||||
|
${MAKE_CMD} "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
build_make() {
|
||||||
|
top_make -C "${BUILD_DIR}" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
build_deps() {
|
build_deps() {
|
||||||
if [[ "${BUILD_32BIT}" == ON ]]; then
|
if [[ "${BUILD_32BIT}" == ON ]]; then
|
||||||
DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} ${CMAKE_FLAGS_32BIT}"
|
DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} ${CMAKE_FLAGS_32BIT}"
|
||||||
@ -30,7 +38,7 @@ build_deps() {
|
|||||||
echo "Configuring with '${DEPS_CMAKE_FLAGS}'."
|
echo "Configuring with '${DEPS_CMAKE_FLAGS}'."
|
||||||
CC= cmake ${DEPS_CMAKE_FLAGS} "${TRAVIS_BUILD_DIR}/third-party/"
|
CC= cmake ${DEPS_CMAKE_FLAGS} "${TRAVIS_BUILD_DIR}/third-party/"
|
||||||
|
|
||||||
if ! ${MAKE_CMD}; then
|
if ! top_make; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -53,18 +61,18 @@ prepare_build() {
|
|||||||
|
|
||||||
build_nvim() {
|
build_nvim() {
|
||||||
echo "Building nvim."
|
echo "Building nvim."
|
||||||
if ! ${MAKE_CMD} nvim; then
|
if ! top_make nvim; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CLANG_SANITIZER" != "TSAN" ]; then
|
if [ "$CLANG_SANITIZER" != "TSAN" ]; then
|
||||||
echo "Building libnvim."
|
echo "Building libnvim."
|
||||||
if ! ${MAKE_CMD} libnvim; then
|
if ! top_make libnvim; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building nvim-test."
|
echo "Building nvim-test."
|
||||||
if ! ${MAKE_CMD} nvim-test; then
|
if ! top_make nvim-test; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
121
ci/common/suite.sh
Normal file
121
ci/common/suite.sh
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
# HACK: get newline for use in strings given that "\n" and $'' do not work.
|
||||||
|
NL="$(printf '\nE')"
|
||||||
|
NL="${NL%E}"
|
||||||
|
|
||||||
|
FAILED=0
|
||||||
|
|
||||||
|
FAIL_SUMMARY=""
|
||||||
|
|
||||||
|
enter_suite() {
|
||||||
|
local suite_name="$1"
|
||||||
|
export NVIM_TEST_CURRENT_SUITE="${NVIM_TEST_CURRENT_SUITE}/$suite_name"
|
||||||
|
}
|
||||||
|
|
||||||
|
exit_suite() {
|
||||||
|
if test $FAILED -ne 0 ; then
|
||||||
|
echo "Suite ${NVIM_TEST_CURRENT_SUITE} failed, summary:"
|
||||||
|
echo "${FAIL_SUMMARY}"
|
||||||
|
fi
|
||||||
|
export NVIM_TEST_CURRENT_SUITE="${NVIM_TEST_CURRENT_SUITE%/*}"
|
||||||
|
if test "x$1" != "x--continue" ; then
|
||||||
|
exit $FAILED
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
fail() {
|
||||||
|
local allow_failure=
|
||||||
|
if test "x$1" = "x--allow-failure" ; then
|
||||||
|
shift
|
||||||
|
allow_failure=A
|
||||||
|
fi
|
||||||
|
local test_name="$1"
|
||||||
|
local fail_char="$allow_failure$2"
|
||||||
|
local message="$3"
|
||||||
|
|
||||||
|
: ${fail_char:=F}
|
||||||
|
: ${message:=Test $test_name failed}
|
||||||
|
|
||||||
|
local full_msg="$fail_char $NVIM_TEST_CURRENT_SUITE|$test_name :: $message"
|
||||||
|
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}${full_msg}"
|
||||||
|
echo "Failed: $full_msg"
|
||||||
|
if test "x$allow_failure" = "x" ; then
|
||||||
|
FAILED=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
run_test() {
|
||||||
|
local cmd="$1"
|
||||||
|
test $# -gt 0 && shift
|
||||||
|
local test_name="$1"
|
||||||
|
: ${test_name:=$cmd}
|
||||||
|
test $# -gt 0 && shift
|
||||||
|
if ! eval "$cmd" ; then
|
||||||
|
fail "${test_name}" "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
run_test_wd() {
|
||||||
|
local timeout="$1"
|
||||||
|
test $# -gt 0 && shift
|
||||||
|
|
||||||
|
local cmd="$1"
|
||||||
|
test $# -gt 0 && shift
|
||||||
|
|
||||||
|
local restart_cmd="$1"
|
||||||
|
: ${restart_cmd:=true}
|
||||||
|
test $# -gt 0 && shift
|
||||||
|
|
||||||
|
local test_name="$1"
|
||||||
|
: ${test_name:=$cmd}
|
||||||
|
test $# -gt 0 && shift
|
||||||
|
|
||||||
|
local output_file="$(mktemp)"
|
||||||
|
local status_file="$(mktemp)"
|
||||||
|
|
||||||
|
local restarts=5
|
||||||
|
local prev_tmpsize=-1
|
||||||
|
while test $restarts -gt 0 ; do
|
||||||
|
: > "${status_file}"
|
||||||
|
(
|
||||||
|
FAILED=0
|
||||||
|
if ! (
|
||||||
|
set -o pipefail
|
||||||
|
eval "$cmd" 2>&1 | tee -a "$output_file"
|
||||||
|
) ; then
|
||||||
|
fail "${test_name}" "$@"
|
||||||
|
fi
|
||||||
|
echo "$FAILED" > "$status_file"
|
||||||
|
) &
|
||||||
|
local pid=$!
|
||||||
|
while test "$(stat -c "%s" "$status_file")" -eq 0 ; do
|
||||||
|
prev_tmpsize=$tmpsize
|
||||||
|
sleep $timeout
|
||||||
|
tmpsize="$(stat -c "%s" "$output_file")"
|
||||||
|
if test $tempsize -eq $prev_temsize ; then
|
||||||
|
# no output, assuming either hang or exit
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
restarts=$[ restarts - 1 ]
|
||||||
|
if test "$(stat -c "%s" "$status_file")" -eq 0 ; then
|
||||||
|
# status file not updated, assuming hang
|
||||||
|
kill -KILL $pid
|
||||||
|
if test $restarts -eq 0 ; then
|
||||||
|
fail "${test_name}" E "Test hang up"
|
||||||
|
else
|
||||||
|
echo "Test ${test_name} hang up, restarting"
|
||||||
|
eval "$restart_cmd"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
local new_failed="$(cat "$status_file")"
|
||||||
|
if test "x$new_failed" != "x0" ; then
|
||||||
|
fail "${test_name}" F "Test failed in run_test_wd"
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
succeeded() {
|
||||||
|
return $FAILED
|
||||||
|
}
|
@ -1,3 +1,5 @@
|
|||||||
|
source "${CI_DIR}/common/build.sh"
|
||||||
|
|
||||||
print_core() {
|
print_core() {
|
||||||
local app="$1"
|
local app="$1"
|
||||||
local core="$2"
|
local core="$2"
|
||||||
@ -75,7 +77,7 @@ asan_check() {
|
|||||||
|
|
||||||
run_unittests() {
|
run_unittests() {
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
if ! ${MAKE_CMD} -C "${BUILD_DIR}" unittest ; then
|
if ! build_make unittest ; then
|
||||||
check_core_dumps "$(which luajit)"
|
check_core_dumps "$(which luajit)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -84,7 +86,7 @@ run_unittests() {
|
|||||||
|
|
||||||
run_functionaltests() {
|
run_functionaltests() {
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
if ! ${MAKE_CMD} -C "${BUILD_DIR}" ${FUNCTIONALTEST}; then
|
if ! build_make ${FUNCTIONALTEST}; then
|
||||||
asan_check "${LOG_DIR}"
|
asan_check "${LOG_DIR}"
|
||||||
valgrind_check "${LOG_DIR}"
|
valgrind_check "${LOG_DIR}"
|
||||||
check_core_dumps
|
check_core_dumps
|
||||||
@ -110,7 +112,7 @@ run_oldtests() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_nvim() {
|
install_nvim() {
|
||||||
${MAKE_CMD} -C "${BUILD_DIR}" install
|
build_make install
|
||||||
|
|
||||||
"${INSTALL_PREFIX}/bin/nvim" --version
|
"${INSTALL_PREFIX}/bin/nvim" --version
|
||||||
"${INSTALL_PREFIX}/bin/nvim" -u NONE -e -c ':help' -c ':qall' || {
|
"${INSTALL_PREFIX}/bin/nvim" -u NONE -e -c ':help' -c ':qall' || {
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -n "${CI_TARGET}" ]]; then
|
if [[ "${CI_TARGET}" == lint ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
28
ci/run_lint.sh
Executable file
28
ci/run_lint.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
source "${CI_DIR}/common/build.sh"
|
||||||
|
source "${CI_DIR}/common/suite.sh"
|
||||||
|
|
||||||
|
enter_suite 'lint'
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
csi_clean() {
|
||||||
|
find "${BUILD_DIR}/bin" -name 'test-includes-*' -delete
|
||||||
|
find "${BUILD_DIR}" -name '*test-include*.o' -delete
|
||||||
|
}
|
||||||
|
|
||||||
|
run_test 'top_make clint-full' clint
|
||||||
|
run_test 'top_make testlint' testlint
|
||||||
|
CLICOLOR_FORCE=1 run_test_wd \
|
||||||
|
5s \
|
||||||
|
'top_make check-single-includes' \
|
||||||
|
'csi_clean' \
|
||||||
|
single-includes
|
||||||
|
|
||||||
|
exit_suite
|
@ -6,6 +6,11 @@ set -o pipefail
|
|||||||
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
source "${CI_DIR}/common/build.sh"
|
source "${CI_DIR}/common/build.sh"
|
||||||
source "${CI_DIR}/common/test.sh"
|
source "${CI_DIR}/common/test.sh"
|
||||||
|
source "${CI_DIR}/common/suite.sh"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
enter_suite tests
|
||||||
|
|
||||||
check_core_dumps --delete quiet
|
check_core_dumps --delete quiet
|
||||||
|
|
||||||
@ -15,11 +20,15 @@ build_nvim
|
|||||||
if [ "$CLANG_SANITIZER" != "TSAN" ]; then
|
if [ "$CLANG_SANITIZER" != "TSAN" ]; then
|
||||||
# Additional threads are only created when the builtin UI starts, which
|
# Additional threads are only created when the builtin UI starts, which
|
||||||
# doesn't happen in the unit/functional tests
|
# doesn't happen in the unit/functional tests
|
||||||
run_unittests
|
run_test run_unittests
|
||||||
run_functionaltests
|
run_test run_functionaltests
|
||||||
fi
|
fi
|
||||||
run_oldtests
|
run_test run_oldtests
|
||||||
|
|
||||||
install_nvim
|
run_test install_nvim
|
||||||
|
|
||||||
touch "${SUCCESS_MARKER}"
|
if succeeded ; then
|
||||||
|
touch "${SUCCESS_MARKER}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit_suite
|
@ -3,16 +3,11 @@
|
|||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -n "${CI_TARGET}" ]]; then
|
|
||||||
make "${CI_TARGET}"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This will pass the environment variables down to a bash process which runs
|
# This will pass the environment variables down to a bash process which runs
|
||||||
# as $USER, while retaining the environment variables defined and belonging
|
# as $USER, while retaining the environment variables defined and belonging
|
||||||
# to secondary groups given above in usermod.
|
# to secondary groups given above in usermod.
|
||||||
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
||||||
sudo -E su "${USER}" -c ".ci/run_tests.sh"
|
sudo -E su "${USER}" -c "ci/run_${CI_TARGET}.sh"
|
||||||
else
|
else
|
||||||
.ci/run_tests.sh
|
ci/run_${CI_TARGET}.sh
|
||||||
fi
|
fi
|
18
cmake/Download.cmake
Normal file
18
cmake/Download.cmake
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
file(
|
||||||
|
DOWNLOAD "${URL}" "${FILE}"
|
||||||
|
STATUS status
|
||||||
|
LOG log
|
||||||
|
)
|
||||||
|
|
||||||
|
list(GET status 0 status_code)
|
||||||
|
list(GET status 1 status_string)
|
||||||
|
|
||||||
|
if(NOT status_code EQUAL 0)
|
||||||
|
if(NOT ALLOW_FAILURE)
|
||||||
|
message(FATAL_ERROR "error: downloading '${URL}' failed
|
||||||
|
status_code: ${status_code}
|
||||||
|
status_string: ${status_string}
|
||||||
|
log: ${log}
|
||||||
|
")
|
||||||
|
endif()
|
||||||
|
endif()
|
@ -4,7 +4,7 @@
|
|||||||
# JEMALLOC_INCLUDE_DIRS - The jemalloc include directories
|
# JEMALLOC_INCLUDE_DIRS - The jemalloc include directories
|
||||||
# JEMALLOC_LIBRARIES - The libraries needed to use jemalloc
|
# JEMALLOC_LIBRARIES - The libraries needed to use jemalloc
|
||||||
|
|
||||||
if(NOT JEMALLOC_USE_BUNDLED)
|
if(NOT USE_BUNDLED_JEMALLOC)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_check_modules(PC_JEMALLOC QUIET jemalloc)
|
pkg_check_modules(PC_JEMALLOC QUIET jemalloc)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# LIBTERMKEY_INCLUDE_DIRS - The libtermkey include directories
|
# LIBTERMKEY_INCLUDE_DIRS - The libtermkey include directories
|
||||||
# LIBTERMKEY_LIBRARIES - The libraries needed to use libtermkey
|
# LIBTERMKEY_LIBRARIES - The libraries needed to use libtermkey
|
||||||
|
|
||||||
if(NOT LIBTERMKEY_USE_BUNDLED)
|
if(NOT USE_BUNDLED_LIBTERMKEY)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_check_modules(PC_LIBTERMKEY QUIET termkey)
|
pkg_check_modules(PC_LIBTERMKEY QUIET termkey)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Set the LIBUV_USE_STATIC variable to specify if static libraries should
|
# Set the LIBUV_USE_STATIC variable to specify if static libraries should
|
||||||
# be preferred to shared ones.
|
# be preferred to shared ones.
|
||||||
|
|
||||||
if(NOT LIBUV_USE_BUNDLED)
|
if(NOT USE_BUNDLED_LIBUV)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_check_modules(PC_LIBUV QUIET libuv)
|
pkg_check_modules(PC_LIBUV QUIET libuv)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# LIBVTERM_INCLUDE_DIRS - The libvterm include directories
|
# LIBVTERM_INCLUDE_DIRS - The libvterm include directories
|
||||||
# LIBVTERM_LIBRARIES - The libraries needed to use libvterm
|
# LIBVTERM_LIBRARIES - The libraries needed to use libvterm
|
||||||
|
|
||||||
if(NOT LIBVTERM_USE_BUNDLED)
|
if(NOT USE_BUNDLED_LIBVTERM)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_check_modules(PC_LIBVTERM QUIET vterm)
|
pkg_check_modules(PC_LIBVTERM QUIET vterm)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# LUAJIT_INCLUDE_DIRS - The luajit include directories
|
# LUAJIT_INCLUDE_DIRS - The luajit include directories
|
||||||
# LUAJIT_LIBRARIES - The libraries needed to use luajit
|
# LUAJIT_LIBRARIES - The libraries needed to use luajit
|
||||||
|
|
||||||
if(NOT LUAJIT_USE_BUNDLED)
|
if(NOT USE_BUNDLED_LUAJIT)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_check_modules(PC_LUAJIT QUIET luajit)
|
pkg_check_modules(PC_LUAJIT QUIET luajit)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# MSGPACK_INCLUDE_DIRS - The msgpack include directories
|
# MSGPACK_INCLUDE_DIRS - The msgpack include directories
|
||||||
# MSGPACK_LIBRARIES - The libraries needed to use msgpack
|
# MSGPACK_LIBRARIES - The libraries needed to use msgpack
|
||||||
|
|
||||||
if(NOT MSGPACK_USE_BUNDLED)
|
if(NOT USE_BUNDLED_MSGPACK)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_search_module(PC_MSGPACK QUIET
|
pkg_search_module(PC_MSGPACK QUIET
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# UNIBILIUM_INCLUDE_DIRS - The unibilium include directories
|
# UNIBILIUM_INCLUDE_DIRS - The unibilium include directories
|
||||||
# UNIBILIUM_LIBRARIES - The libraries needed to use unibilium
|
# UNIBILIUM_LIBRARIES - The libraries needed to use unibilium
|
||||||
|
|
||||||
if(NOT UNIBILIUM_USE_BUNDLED)
|
if(NOT USE_BUNDLED_UNIBILIUM)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if (PKG_CONFIG_FOUND)
|
if (PKG_CONFIG_FOUND)
|
||||||
pkg_check_modules(PC_UNIBILIUM QUIET unibilium)
|
pkg_check_modules(PC_UNIBILIUM QUIET unibilium)
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
get_filename_component(LINT_DIR ${LINT_DIR} ABSOLUTE)
|
|
||||||
get_filename_component(LINT_PREFIX ${LINT_DIR} PATH)
|
|
||||||
set(LINT_SUPPRESS_FILE "${LINT_PREFIX}/errors.json")
|
|
||||||
|
|
||||||
if(DEFINED ENV{LINT_FILE})
|
|
||||||
file(GLOB_RECURSE LINT_FILES "$ENV{LINT_FILE}")
|
|
||||||
else()
|
|
||||||
file(GLOB_RECURSE LINT_FILES ${LINT_DIR}/*.c ${LINT_DIR}/*.h)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(LINT_ARGS)
|
|
||||||
|
|
||||||
if(LINT_SUPPRESS_URL)
|
|
||||||
file(DOWNLOAD ${LINT_SUPPRESS_URL} ${LINT_SUPPRESS_FILE})
|
|
||||||
list(APPEND LINT_ARGS "--suppress-errors=${LINT_SUPPRESS_FILE}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
foreach(lint_file ${LINT_FILES})
|
|
||||||
file(RELATIVE_PATH lint_file "${LINT_PREFIX}" "${lint_file}")
|
|
||||||
list(APPEND LINT_ARGS "${lint_file}")
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
execute_process(
|
|
||||||
COMMAND ${LINT_PRG} ${LINT_ARGS}
|
|
||||||
RESULT_VARIABLE res
|
|
||||||
WORKING_DIRECTORY "${LINT_PREFIX}")
|
|
||||||
|
|
||||||
file(REMOVE ${LINT_SUPPRESS_FILE})
|
|
||||||
|
|
||||||
if(NOT res EQUAL 0)
|
|
||||||
message(FATAL_ERROR "Linting failed: ${res}.")
|
|
||||||
endif()
|
|
@ -25,6 +25,8 @@ if(DEFINED ENV{TEST_FILTER})
|
|||||||
set(TEST_TAG "--filter=$ENV{TEST_FILTER}")
|
set(TEST_TAG "--filter=$ENV{TEST_FILTER}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${WORKING_DIR}/Xtest-tmpdir)
|
||||||
|
set(ENV{TMPDIR} ${WORKING_DIR}/Xtest-tmpdir)
|
||||||
set(ENV{SYSTEM_NAME} ${SYSTEM_NAME})
|
set(ENV{SYSTEM_NAME} ${SYSTEM_NAME})
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${BUSTED_PRG} ${TEST_TAG} ${TEST_FILTER} -v -o ${BUSTED_OUTPUT_TYPE}
|
COMMAND ${BUSTED_PRG} ${TEST_TAG} ${TEST_FILTER} -v -o ${BUSTED_OUTPUT_TYPE}
|
||||||
@ -37,6 +39,7 @@ execute_process(
|
|||||||
|
|
||||||
file(REMOVE ${WORKING_DIR}/Xtest_rplugin_manifest)
|
file(REMOVE ${WORKING_DIR}/Xtest_rplugin_manifest)
|
||||||
file(REMOVE_RECURSE ${WORKING_DIR}/Xtest_xdg)
|
file(REMOVE_RECURSE ${WORKING_DIR}/Xtest_xdg)
|
||||||
|
file(REMOVE_RECURSE ${WORKING_DIR}/Xtest-tmpdir)
|
||||||
|
|
||||||
if(NOT res EQUAL 0)
|
if(NOT res EQUAL 0)
|
||||||
message(STATUS "Output to stderr:\n${err}")
|
message(STATUS "Output to stderr:\n${err}")
|
||||||
|
21
man/nvim.1
21
man/nvim.1
@ -371,27 +371,6 @@ See
|
|||||||
Used to set the 'shell' option, which determines the shell used by the
|
Used to set the 'shell' option, which determines the shell used by the
|
||||||
.Ic :terminal
|
.Ic :terminal
|
||||||
command.
|
command.
|
||||||
.It Ev NVIM_TUI_ENABLE_CURSOR_SHAPE
|
|
||||||
Set to 0 to prevent Nvim from changing the cursor shape.
|
|
||||||
Set to 1 to enable non-blinking mode-sensitive cursor (this is the default).
|
|
||||||
Set to 2 to enable blinking mode-sensitive cursor.
|
|
||||||
Host terminal must support the DECSCUSR CSI escape sequence.
|
|
||||||
.Pp
|
|
||||||
Depending on the terminal emulator, using this option with
|
|
||||||
.Nm
|
|
||||||
under
|
|
||||||
.Xr tmux 1
|
|
||||||
might require adding the following to
|
|
||||||
.Pa ~/.tmux.conf :
|
|
||||||
.Bd -literal -offset indent
|
|
||||||
set -ga terminal-overrides ',*:Ss=\eE[%p1%d q:Se=\eE[2 q'
|
|
||||||
.Ed
|
|
||||||
.Pp
|
|
||||||
See
|
|
||||||
.Ic terminal-overrides
|
|
||||||
in the
|
|
||||||
.Xr tmux 1
|
|
||||||
manual page for more information.
|
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width "~/.config/nvim/init.vim"
|
.Bl -tag -width "~/.config/nvim/init.vim"
|
||||||
|
@ -118,6 +118,12 @@ function! s:check_tmux() abort
|
|||||||
let cmd = 'tmux show-option -qvg default-terminal'
|
let cmd = 'tmux show-option -qvg default-terminal'
|
||||||
let out = system(cmd)
|
let out = system(cmd)
|
||||||
let tmux_default_term = substitute(out, '\v(\s|\r|\n)', '', 'g')
|
let tmux_default_term = substitute(out, '\v(\s|\r|\n)', '', 'g')
|
||||||
|
if empty(tmux_default_term)
|
||||||
|
let cmd = 'tmux show-option -qvgs default-terminal'
|
||||||
|
let out = system(cmd)
|
||||||
|
let tmux_default_term = substitute(out, '\v(\s|\r|\n)', '', 'g')
|
||||||
|
endif
|
||||||
|
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
call health#report_error('command failed: '.cmd."\n".out)
|
call health#report_error('command failed: '.cmd."\n".out)
|
||||||
elseif tmux_default_term !=# $TERM
|
elseif tmux_default_term !=# $TERM
|
||||||
|
@ -8,6 +8,11 @@ function! s:trim(s) abort
|
|||||||
return substitute(a:s, '^\_s*\|\_s*$', '', 'g')
|
return substitute(a:s, '^\_s*\|\_s*$', '', 'g')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Convert '\' to '/'. Collapse '//' and '/./'.
|
||||||
|
function! s:normalize_path(s) abort
|
||||||
|
return substitute(substitute(a:s, '\', '/', 'g'), '/\./\|/\+', '/', 'g')
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Simple version comparison.
|
" Simple version comparison.
|
||||||
function! s:version_cmp(a, b) abort
|
function! s:version_cmp(a, b) abort
|
||||||
let a = split(a:a, '\.', 0)
|
let a = split(a:a, '\.', 0)
|
||||||
@ -208,7 +213,7 @@ endfunction
|
|||||||
|
|
||||||
" Check the Python interpreter's usability.
|
" Check the Python interpreter's usability.
|
||||||
function! s:check_bin(bin) abort
|
function! s:check_bin(bin) abort
|
||||||
if !filereadable(a:bin)
|
if !filereadable(a:bin) && (!has('win32') || !filereadable(a:bin.'.exe'))
|
||||||
call health#report_error(printf('"%s" was not found.', a:bin))
|
call health#report_error(printf('"%s" was not found.', a:bin))
|
||||||
return 0
|
return 0
|
||||||
elseif executable(a:bin) != 1
|
elseif executable(a:bin) != 1
|
||||||
@ -287,8 +292,9 @@ function! s:check_python(version) abort
|
|||||||
|
|
||||||
if exists('$PATH')
|
if exists('$PATH')
|
||||||
for path in split($PATH, has('win32') ? ';' : ':')
|
for path in split($PATH, has('win32') ? ';' : ':')
|
||||||
let path_bin = path.'/'.pyname
|
let path_bin = s:normalize_path(path.'/'.pyname)
|
||||||
if path_bin != python_bin && index(python_multiple, path_bin) == -1
|
if path_bin != s:normalize_path(python_bin)
|
||||||
|
\ && index(python_multiple, path_bin) == -1
|
||||||
\ && executable(path_bin)
|
\ && executable(path_bin)
|
||||||
call add(python_multiple, path_bin)
|
call add(python_multiple, path_bin)
|
||||||
endif
|
endif
|
||||||
|
@ -79,7 +79,7 @@ function! man#read_page(ref) abort
|
|||||||
let [sect, name, path] = s:verify_exists(sect, name)
|
let [sect, name, path] = s:verify_exists(sect, name)
|
||||||
let page = s:get_page(path)
|
let page = s:get_page(path)
|
||||||
catch
|
catch
|
||||||
" call to s:error() is unnecessary
|
call s:error(v:exception)
|
||||||
return
|
return
|
||||||
endtry
|
endtry
|
||||||
let b:man_sect = sect
|
let b:man_sect = sect
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*api.txt* {Nvim}
|
*api.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL by Thiago de Arruda
|
NVIM REFERENCE MANUAL by Thiago de Arruda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 7.4. Last change: 2010 Nov 13
|
*arabic.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 7.4. Last change: 2016 Jun 09
|
*autocmd.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1184,10 +1184,11 @@ name!
|
|||||||
different from existing {event} names, as this
|
different from existing {event} names, as this
|
||||||
most likely will not do what you intended.
|
most likely will not do what you intended.
|
||||||
|
|
||||||
*:augroup-delete* *E367*
|
*:augroup-delete* *E367* *W19*
|
||||||
:aug[roup]! {name} Delete the autocmd group {name}. Don't use
|
:aug[roup]! {name} Delete the autocmd group {name}. Don't use
|
||||||
this if there is still an autocommand using
|
this if there is still an autocommand using
|
||||||
this group! This is not checked.
|
this group! You will get a warning if doing
|
||||||
|
it anyway.
|
||||||
|
|
||||||
To enter autocommands for a specific group, use this method:
|
To enter autocommands for a specific group, use this method:
|
||||||
1. Select the group with ":augroup {name}".
|
1. Select the group with ":augroup {name}".
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 7.4. Last change: 2016 Apr 12
|
*change.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -601,8 +601,8 @@ all files in it are deleted. When Vim has the setuid bit set this may cause
|
|||||||
problems, the temp file is owned by the setuid user but the filter command
|
problems, the temp file is owned by the setuid user but the filter command
|
||||||
probably runs as the original user.
|
probably runs as the original user.
|
||||||
Directory for temporary files is created in the first suitable directory of:
|
Directory for temporary files is created in the first suitable directory of:
|
||||||
For Unix: $TMPDIR, /tmp, current-dir, $HOME.
|
Unix: $TMPDIR, /tmp, current-dir, $HOME.
|
||||||
For MS-Windows: $TMP, $TEMP, $USERPROFILE, current-dir.
|
Windows: $TMPDIR, $TMP, $TEMP, $USERPROFILE, current-dir.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 7.4. Last change: 2015 Dec 17
|
*cmdline.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*debug.txt* For Vim version 7.4. Last change: 2012 Feb 11
|
*debug.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*deprecated.txt* {Nvim}
|
*deprecated.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL
|
NVIM REFERENCE MANUAL
|
||||||
@ -44,6 +44,7 @@ Functions ~
|
|||||||
|
|
||||||
Options ~
|
Options ~
|
||||||
*'fe'* 'fenc'+'enc' before Vim 6.0; no longer used.
|
*'fe'* 'fenc'+'enc' before Vim 6.0; no longer used.
|
||||||
|
*'langnoremap'* Deprecated alias to 'nolangremap'.
|
||||||
*'vi'*
|
*'vi'*
|
||||||
*'viminfo'* Deprecated alias to 'shada' option.
|
*'viminfo'* Deprecated alias to 'shada' option.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*develop.txt*
|
*develop.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL
|
NVIM REFERENCE MANUAL
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*diff.txt* For Vim version 7.4. Last change: 2016 Aug 24
|
*diff.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 7.4. Last change: 2014 Jun 19
|
*digraph.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 7.4. Last change: 2016 Aug 06
|
*editing.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 27
|
*eval.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -247,7 +247,7 @@ it. To change a list in-place see |list-modification| below.
|
|||||||
|
|
||||||
|
|
||||||
Sublist ~
|
Sublist ~
|
||||||
|
*sublist*
|
||||||
A part of the List can be obtained by specifying the first and last index,
|
A part of the List can be obtained by specifying the first and last index,
|
||||||
separated by a colon in square brackets: >
|
separated by a colon in square brackets: >
|
||||||
:let shortlist = mylist[2:-1] " get List [3, "four"]
|
:let shortlist = mylist[2:-1] " get List [3, "four"]
|
||||||
@ -975,10 +975,10 @@ Examples: >
|
|||||||
:let s = line(".")[4:] " from the fifth byte to the end
|
:let s = line(".")[4:] " from the fifth byte to the end
|
||||||
:let s = s[:-3] " remove last two bytes
|
:let s = s[:-3] " remove last two bytes
|
||||||
<
|
<
|
||||||
*sublist* *slice*
|
*slice*
|
||||||
If expr8 is a |List| this results in a new |List| with the items indicated by
|
If expr8 is a |List| this results in a new |List| with the items indicated by
|
||||||
the indexes expr1a and expr1b. This works like with a String, as explained
|
the indexes expr1a and expr1b. This works like with a String, as explained
|
||||||
just above, except that indexes out of range cause an error. Examples: >
|
just above. Also see |sublist| below. Examples: >
|
||||||
:let l = mylist[:3] " first four items
|
:let l = mylist[:3] " first four items
|
||||||
:let l = mylist[4:4] " List with one item
|
:let l = mylist[4:4] " List with one item
|
||||||
:let l = mylist[:] " shallow copy of a List
|
:let l = mylist[:] " shallow copy of a List
|
||||||
@ -4004,6 +4004,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
|||||||
augroup autocmd groups
|
augroup autocmd groups
|
||||||
buffer buffer names
|
buffer buffer names
|
||||||
behave :behave suboptions
|
behave :behave suboptions
|
||||||
|
cmdline |cmdline-completion|
|
||||||
color color schemes
|
color color schemes
|
||||||
command Ex command (and arguments)
|
command Ex command (and arguments)
|
||||||
compiler compilers
|
compiler compilers
|
||||||
@ -4032,7 +4033,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
|||||||
user user names
|
user user names
|
||||||
var user variables
|
var user variables
|
||||||
|
|
||||||
If {pat} is an empty string, then all the matches are returned.
|
If {pat} is an empty string then all matches are returned.
|
||||||
Otherwise only items matching {pat} are returned. See
|
Otherwise only items matching {pat} are returned. See
|
||||||
|wildcards| for the use of special characters in {pat}.
|
|wildcards| for the use of special characters in {pat}.
|
||||||
|
|
||||||
@ -5690,9 +5691,10 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
%04x hex number padded with zeros to at least 4 characters
|
%04x hex number padded with zeros to at least 4 characters
|
||||||
%X hex number using upper case letters
|
%X hex number using upper case letters
|
||||||
%o octal number
|
%o octal number
|
||||||
%f floating point number in the form 123.456
|
%f floating point number as 12.23, inf, -inf or nan
|
||||||
%e floating point number in the form 1.234e3
|
%F floating point number as 12.23, INF, -INF or NAN
|
||||||
%E floating point number in the form 1.234E3
|
%e floating point number as 1.23e3, inf, -inf or nan
|
||||||
|
%E floating point number as 1.23E3, INF, -INF or NAN
|
||||||
%g floating point number, as %f or %e depending on value
|
%g floating point number, as %f or %e depending on value
|
||||||
%G floating point number, as %f or %E depending on value
|
%G floating point number, as %f or %E depending on value
|
||||||
%% the % character itself
|
%% the % character itself
|
||||||
@ -5817,8 +5819,9 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
digits after the decimal point. When the precision is
|
digits after the decimal point. When the precision is
|
||||||
zero the decimal point is omitted. When the precision
|
zero the decimal point is omitted. When the precision
|
||||||
is not specified 6 is used. A really big number
|
is not specified 6 is used. A really big number
|
||||||
(out of range or dividing by zero) results in "inf".
|
(out of range or dividing by zero) results in "inf"
|
||||||
"0.0 / 0.0" results in "nan".
|
or "-inf" with %f (INF or -INF with %F).
|
||||||
|
"0.0 / 0.0" results in "nan" with %f (NAN with %F).
|
||||||
Example: >
|
Example: >
|
||||||
echo printf("%.2f", 12.115)
|
echo printf("%.2f", 12.115)
|
||||||
< 12.12
|
< 12.12
|
||||||
@ -7953,6 +7956,12 @@ writefile({list}, {fname} [, {flags}])
|
|||||||
appended to the file: >
|
appended to the file: >
|
||||||
:call writefile(["foo"], "event.log", "a")
|
:call writefile(["foo"], "event.log", "a")
|
||||||
:call writefile(["bar"], "event.log", "a")
|
:call writefile(["bar"], "event.log", "a")
|
||||||
|
<
|
||||||
|
When {flags} contains "S" fsync() call is not used, with "s"
|
||||||
|
it is used, 'fsync' option applies by default. No fsync()
|
||||||
|
means that writefile() will finish faster, but writes may be
|
||||||
|
left in OS buffers and not yet written to disk. Such changes
|
||||||
|
will disappear if system crashes before OS does writing.
|
||||||
|
|
||||||
All NL characters are replaced with a NUL character.
|
All NL characters are replaced with a NUL character.
|
||||||
Inserting CR characters needs to be done before passing {list}
|
Inserting CR characters needs to be done before passing {list}
|
||||||
@ -8260,7 +8269,7 @@ See |:verbose-cmd| for more information.
|
|||||||
: let x += 1
|
: let x += 1
|
||||||
: return x
|
: return x
|
||||||
: endfunction
|
: endfunction
|
||||||
: return function('Bar')
|
: return funcref('Bar')
|
||||||
:endfunction
|
:endfunction
|
||||||
|
|
||||||
:let F = Foo()
|
:let F = Foo()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*farsi.txt* For Vim version 7.4. Last change: 2010 Aug 07
|
*farsi.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 7.4. Last change: 2016 Jun 20
|
*filetype.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 7.4. Last change: 2016 Jan 02
|
*fold.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_ada.txt* For Vim version 7.4. Last change: 2010 Jul 20
|
*ft_ada.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_sql.txt* For Vim version 7.4. Last change: 2013 May 15
|
*ft_sql.txt* Nvim
|
||||||
|
|
||||||
by David Fishburn
|
by David Fishburn
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 7.4. Last change: 2014 Mar 08
|
*gui.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -83,28 +83,6 @@ Recommended place for your personal GUI initializations:
|
|||||||
The personal initialization files are searched in the order specified above
|
The personal initialization files are searched in the order specified above
|
||||||
and only the first one that is found is read.
|
and only the first one that is found is read.
|
||||||
|
|
||||||
There are a number of options which only have meaning in the GUI version of
|
|
||||||
Vim. These are 'guicursor', 'guifont', and 'guioptions'. They are
|
|
||||||
documented in |options.txt| with all the other options.
|
|
||||||
|
|
||||||
Another way to set the colors for different occasions is with highlight
|
|
||||||
groups. The "Normal" group is used to set the background and foreground
|
|
||||||
colors. Example (which looks nice): >
|
|
||||||
|
|
||||||
:highlight Normal guibg=grey90
|
|
||||||
|
|
||||||
The "guibg" and "guifg" settings override the normal background and
|
|
||||||
foreground settings. The other settings for the Normal highlight group are
|
|
||||||
not used. Use the 'guifont' option to set the font.
|
|
||||||
|
|
||||||
Also check out the 'guicursor' option, to set the colors for the cursor in
|
|
||||||
various modes.
|
|
||||||
|
|
||||||
Vim tries to make the window fit on the screen when it starts up. This avoids
|
|
||||||
that you can't see part of it. On the X Window System this requires a bit of
|
|
||||||
guesswork. You can change the height that is used for the window title and a
|
|
||||||
task bar with the 'guiheadroom' option.
|
|
||||||
|
|
||||||
*:winp* *:winpos* *E188*
|
*:winp* *:winpos* *E188*
|
||||||
:winp[os]
|
:winp[os]
|
||||||
Display current position of the top left corner of the GUI vim
|
Display current position of the top left corner of the GUI vim
|
||||||
@ -124,21 +102,6 @@ task bar with the 'guiheadroom' option.
|
|||||||
:win[size] {width} {height}
|
:win[size] {width} {height}
|
||||||
Set the window height to {width} by {height} characters.
|
Set the window height to {width} by {height} characters.
|
||||||
Obsolete, use ":set lines=11 columns=22".
|
Obsolete, use ":set lines=11 columns=22".
|
||||||
If you get less lines than expected, check the 'guiheadroom'
|
|
||||||
option.
|
|
||||||
|
|
||||||
If you are running the X Window System, you can get information about the
|
|
||||||
window Vim is running in with these commands: >
|
|
||||||
:!xwininfo -id $WINDOWID
|
|
||||||
:!xprop -id $WINDOWID
|
|
||||||
:execute '!xwininfo -id ' . v:windowid
|
|
||||||
:execute '!xprop -id ' . v:windowid
|
|
||||||
<
|
|
||||||
*gui-IME* *iBus*
|
|
||||||
Input methods for international characters in X that rely on the XIM
|
|
||||||
framework, most notably iBus, have been known to produce undesirable results
|
|
||||||
in gVim. These may include an inability to enter spaces, or long delays
|
|
||||||
between typing a character and it being recognized by the application.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Scrollbars *gui-scrollbars*
|
2. Scrollbars *gui-scrollbars*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hebrew.txt* For Vim version 7.4. Last change: 2007 Jun 14
|
*hebrew.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*help.txt* For Vim version 7.4. Last change: 2016 Mar 31
|
*help.txt* Nvim
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 7.4. Last change: 2016 Apr 01
|
*helphelp.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*howto.txt* For Vim version 7.4. Last change: 2006 Apr 02
|
*howto.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_cscop.txt* For Vim version 7.4. Last change: 2011 Jun 12
|
*if_cscop.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Andy Kahn
|
VIM REFERENCE MANUAL by Andy Kahn
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 7.4. Last change: 2014 Jul 23
|
*if_pyth.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@ -181,11 +181,6 @@ vim.eval(str) *python-eval*
|
|||||||
# string.atoi() to convert to
|
# string.atoi() to convert to
|
||||||
# a number.
|
# a number.
|
||||||
|
|
||||||
:py tagList = vim.eval('taglist("eval_expr")')
|
|
||||||
< The latter will return a python list of python dicts, for instance:
|
|
||||||
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name':
|
|
||||||
'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}]
|
|
||||||
|
|
||||||
vim.bindeval(str) *python-bindeval*
|
vim.bindeval(str) *python-bindeval*
|
||||||
Like |python-eval|, but returns special objects described in
|
Like |python-eval|, but returns special objects described in
|
||||||
|python-bindeval-objects|. These python objects let you modify (|List|
|
|python-bindeval-objects|. These python objects let you modify (|List|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ruby.txt*
|
*if_ruby.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Shugo Maeda
|
VIM REFERENCE MANUAL by Shugo Maeda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 7.4. Last change: 2014 Dec 06
|
*indent.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 7.4. Last change: 2016 Jul 16
|
*index.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 7.4. Last change: 2016 Jan 31
|
*insert.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 7.4. Last change: 2015 Jan 20
|
*intro.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*job_control.txt* For Nvim. {Nvim}
|
*job_control.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL by Thiago de Arruda
|
NVIM REFERENCE MANUAL by Thiago de Arruda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 7.4. Last change: 2016 Jul 06
|
*map.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1411,9 +1411,11 @@ The valid escape sequences are
|
|||||||
<mods> The command modifiers, if specified. Otherwise, expands to
|
<mods> The command modifiers, if specified. Otherwise, expands to
|
||||||
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|
||||||
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
|
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
|
||||||
|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:lockmarks|,
|
|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:leftabove|,
|
||||||
|:noswapfile|, |:silent|, |:tab|, |:topleft|, |:verbose|, and
|
|:lockmarks|, |:noswapfile| |:rightbelow|, |:silent|, |:tab|,
|
||||||
|:vertical|.
|
|:topleft|, |:verbose|, and |:vertical|.
|
||||||
|
Note that these are not yet supported: |:noautocmd|,
|
||||||
|
|:sandbox| and |:unsilent|.
|
||||||
Examples: >
|
Examples: >
|
||||||
command! -nargs=+ -complete=file MyEdit
|
command! -nargs=+ -complete=file MyEdit
|
||||||
\ for f in expand(<q-args>, 0, 1) |
|
\ for f in expand(<q-args>, 0, 1) |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*mbyte.txt* For Vim version 7.4. Last change: 2016 Jul 21
|
*mbyte.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 7.4. Last change: 2016 Jul 16
|
*message.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*mlang.txt* For Vim version 7.4. Last change: 2016 Jan 16
|
*mlang.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 7.4. Last change: 2016 Jul 12
|
*motion.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*msgpack_rpc.txt* {Nvim}
|
*msgpack_rpc.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL by Thiago de Arruda
|
NVIM REFERENCE MANUAL by Thiago de Arruda
|
||||||
@ -250,23 +250,21 @@ connect to another with different type codes.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
6. Remote UIs *rpc-remote-ui*
|
6. Remote UIs *rpc-remote-ui*
|
||||||
|
|
||||||
Nvim allows Graphical user interfaces to be implemented by separate processes
|
GUIs can be implemented as external processes communicating with Nvim over the
|
||||||
communicating with Nvim over the RPC API. Currently the ui model conists of a
|
RPC API. Currently the UI model consists of a terminal-like grid with one
|
||||||
terminal-like grid with one single, monospace font size, with a few elements
|
single, monospace font size. Some elements (UI "widgets") can be drawn
|
||||||
that could be drawn separately from the grid (for the momemnt only the popup
|
separately from the grid.
|
||||||
menu)
|
|
||||||
|
|
||||||
After connecting to a nvim instance (typically a spawned, embedded instance)
|
After connecting to Nvim (usually a spawned, embedded instance) use the
|
||||||
use the |nvim_ui_attach|(width, height, options) API method to tell nvim that your
|
|nvim_ui_attach| API method to tell Nvim that your program wants to draw the
|
||||||
program wants to draw the nvim screen on a grid with "width" times
|
Nvim screen on a grid of width × height cells. `options` must be
|
||||||
"height" cells. "options" should be a dictionary with the following (all
|
a dictionary with these (optional) keys:
|
||||||
optional) keys:
|
`rgb` Controls what color format to use.
|
||||||
`rgb`: Controls what color format to use.
|
|
||||||
Set to true (default) to use 24-bit rgb
|
Set to true (default) to use 24-bit rgb
|
||||||
colors.
|
colors.
|
||||||
Set to false to use terminal color codes (at
|
Set to false to use terminal color codes (at
|
||||||
most 256 different colors).
|
most 256 different colors).
|
||||||
`popupmenu_external`: Instead of drawing the completion popupmenu on
|
`popupmenu_external` Instead of drawing the completion popupmenu on
|
||||||
the grid, Nvim will send higher-level events to
|
the grid, Nvim will send higher-level events to
|
||||||
the ui and let it draw the popupmenu.
|
the ui and let it draw the popupmenu.
|
||||||
Defaults to false.
|
Defaults to false.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*nvim.txt* {Nvim}
|
*nvim.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL
|
NVIM REFERENCE MANUAL
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*terminal_emulator.txt* {Nvim}
|
*terminal_emulator.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL by Thiago de Arruda
|
NVIM REFERENCE MANUAL by Thiago de Arruda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 7.4. Last change: 2016 Jul 12
|
*options.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -398,20 +398,6 @@ command, not when assigning a value to an option with ":let".
|
|||||||
Note the maximum length of an expanded option is limited. How much depends on
|
Note the maximum length of an expanded option is limited. How much depends on
|
||||||
the system, mostly it is something like 256 or 1024 characters.
|
the system, mostly it is something like 256 or 1024 characters.
|
||||||
|
|
||||||
*Linux-backspace*
|
|
||||||
Note about Linux: By default the backspace key
|
|
||||||
produces CTRL-?, which is wrong. You can fix it by
|
|
||||||
putting this line in your rc.local: >
|
|
||||||
echo "keycode 14 = BackSpace" | loadkeys
|
|
||||||
<
|
|
||||||
*NetBSD-backspace*
|
|
||||||
Note about NetBSD: If your backspace doesn't produce
|
|
||||||
the right code, try this: >
|
|
||||||
xmodmap -e "keycode 22 = BackSpace"
|
|
||||||
< If this works, add this in your .Xmodmap file: >
|
|
||||||
keysym 22 = BackSpace
|
|
||||||
< You need to restart for this to take effect.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Automatically setting options *auto-setting*
|
2. Automatically setting options *auto-setting*
|
||||||
|
|
||||||
@ -2754,6 +2740,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
mode, so it may be undesirable in some situations. Be warned that
|
mode, so it may be undesirable in some situations. Be warned that
|
||||||
turning this off increases the chances of data loss after a crash.
|
turning this off increases the chances of data loss after a crash.
|
||||||
|
|
||||||
|
Currently applies only to writing the buffer with e.g. |:w| and
|
||||||
|
|writefile()|.
|
||||||
|
|
||||||
*'gdefault'* *'gd'* *'nogdefault'* *'nogd'*
|
*'gdefault'* *'gd'* *'nogdefault'* *'nogd'*
|
||||||
'gdefault' 'gd' boolean (default off)
|
'gdefault' 'gd' boolean (default off)
|
||||||
global
|
global
|
||||||
@ -2804,21 +2793,17 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
i-ci:ver25-Cursor/lCursor,
|
i-ci:ver25-Cursor/lCursor,
|
||||||
r-cr:hor20-Cursor/lCursor,
|
r-cr:hor20-Cursor/lCursor,
|
||||||
sm:block-Cursor
|
sm:block-Cursor
|
||||||
-blinkwait175-blinkoff150-blinkon175",
|
-blinkwait175-blinkoff150-blinkon175")
|
||||||
for Windows console:
|
|
||||||
"n-v-c:block,o:hor50,i-ci:hor15,
|
|
||||||
r-cr:hor30,sm:block")
|
|
||||||
global
|
global
|
||||||
{only available when compiled with GUI enabled, and
|
Configures the cursor style for each mode. Works in the GUI and some
|
||||||
for Windows console}
|
terminals. Unset to disable: >
|
||||||
This option tells Vim what the cursor should look like in different
|
:set guicursor=
|
||||||
modes. It fully works in the GUI. In a Windows console, only
|
<
|
||||||
the height of the cursor can be changed. This can be done by
|
With tmux you might need this in ~/.tmux.conf (see terminal-overrides
|
||||||
specifying a block cursor, or a percentage for a vertical or
|
in the tmux(1) manual page): >
|
||||||
horizontal cursor.
|
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
|
||||||
For a console the 't_SI' and 't_EI' escape sequences are used.
|
<
|
||||||
|
The option is a comma separated list of parts. Each part consists of a
|
||||||
The option is a comma separated list of parts. Each part consist of a
|
|
||||||
mode-list and an argument-list:
|
mode-list and an argument-list:
|
||||||
mode-list:argument-list,mode-list:argument-list,..
|
mode-list:argument-list,mode-list:argument-list,..
|
||||||
The mode-list is a dash separated list of these modes:
|
The mode-list is a dash separated list of these modes:
|
||||||
@ -2991,18 +2976,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
If set and valid, 'guifontwide' is used for IME instead of 'guifont'.
|
If set and valid, 'guifontwide' is used for IME instead of 'guifont'.
|
||||||
|
|
||||||
*'guiheadroom'* *'ghr'*
|
|
||||||
'guiheadroom' 'ghr' number (default 50)
|
|
||||||
global
|
|
||||||
{only for X11 GUI}
|
|
||||||
The number of pixels subtracted from the screen height when fitting
|
|
||||||
the GUI window on the screen. Set this before the GUI is started,
|
|
||||||
e.g., in your |gvimrc| file. When zero, the whole screen height will
|
|
||||||
be used by the window. When positive, the specified number of pixel
|
|
||||||
lines will be left for window decorations and other items on the
|
|
||||||
screen. Set it to a negative value to allow windows taller than the
|
|
||||||
screen.
|
|
||||||
|
|
||||||
*'guioptions'* *'go'*
|
*'guioptions'* *'go'*
|
||||||
'guioptions' 'go' string (default "egmrLT" (MS-Windows))
|
'guioptions' 'go' string (default "egmrLT" (MS-Windows))
|
||||||
global
|
global
|
||||||
@ -3186,29 +3159,17 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Think twice when using ":q!" or ":qa!".
|
Think twice when using ":q!" or ":qa!".
|
||||||
|
|
||||||
*'highlight'* *'hl'*
|
*'highlight'* *'hl'*
|
||||||
'highlight' 'hl' string (default (as a single string):
|
'highlight' 'hl' string (default: string of "c:group,..." pairs)
|
||||||
"8:SpecialKey,~:EndOfBuffer,z:TermCursor,
|
|
||||||
Z:TermCursorNC,@:NonText,d:Directory,
|
|
||||||
e:ErrorMsg,i:IncSearch,l:Search,
|
|
||||||
m:MoreMsg,M:ModeMsg,n:LineNr,
|
|
||||||
N:CursorLineNr,r:Question,s:StatusLine,
|
|
||||||
S:StatusLineNC,c:VertSplit,t:Title,
|
|
||||||
v:Visual,w:WarningMsg,W:WildMenu,
|
|
||||||
f:Folded,F:FoldColumn,A:DiffAdd,
|
|
||||||
C:DiffChange,D:DiffDelete,T:DiffText,
|
|
||||||
>:SignColumn,B:SpellBad,P:SpellCap,
|
|
||||||
R:SpellRare,L:SpellLocal,-:Conceal,
|
|
||||||
+:Pmenu,=:PmenuSel,x:PmenuSbar,
|
|
||||||
X:PmenuThumb")
|
|
||||||
global
|
global
|
||||||
This option can be used to set highlighting mode for various
|
This option can be used to set highlighting mode for various
|
||||||
occasions. It is a comma separated list of character pairs. The
|
occasions. It is a comma separated list of character pairs. The
|
||||||
first character in a pair gives the occasion, the second the mode to
|
first character in a pair gives the occasion, the second the mode to
|
||||||
use for that occasion. The occasions are:
|
use for that occasion. The occasions are:
|
||||||
|hl-SpecialKey| 8 Meta and special keys listed with ":map"
|
|hl-SpecialKey| 8 Meta and special keys listed with ":map"
|
||||||
|hl-EndOfBuffer| ~ lines after the last line in the buffer
|
|hl-Whitespace| 0
|
||||||
|
|hl-EndOfBuffer| ~ lines after the last line in the buffer
|
||||||
|hl-TermCursor| z Cursor in a focused terminal
|
|hl-TermCursor| z Cursor in a focused terminal
|
||||||
|hl-TermCursorNC| Z Cursor in an unfocused terminal
|
|hl-TermCursorNC| Z Cursor in an unfocused terminal
|
||||||
|hl-NonText| @ '@' at the end of the window and
|
|hl-NonText| @ '@' at the end of the window and
|
||||||
characters from 'showbreak'
|
characters from 'showbreak'
|
||||||
|hl-Directory| d directories in CTRL-D listing and other special
|
|hl-Directory| d directories in CTRL-D listing and other special
|
||||||
@ -3220,11 +3181,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|hl-ModeMsg| M Mode (e.g., "-- INSERT --")
|
|hl-ModeMsg| M Mode (e.g., "-- INSERT --")
|
||||||
|hl-LineNr| n line number for ":number" and ":#" commands, and
|
|hl-LineNr| n line number for ":number" and ":#" commands, and
|
||||||
when 'number' or 'relativenumber' option is set.
|
when 'number' or 'relativenumber' option is set.
|
||||||
|hl-CursorLineNr| N like n for when 'cursorline' or 'relativenumber' is
|
|hl-CursorLineNr| N like n for when 'cursorline' or 'relativenumber' is
|
||||||
set.
|
set.
|
||||||
|hl-Question| r |hit-enter| prompt and yes/no questions
|
|hl-Question| r |hit-enter| prompt and yes/no questions
|
||||||
|hl-StatusLine| s status line of current window |status-line|
|
|hl-StatusLine| s status line of current window |status-line|
|
||||||
|hl-StatusLineNC| S status lines of not-current windows
|
|hl-StatusLineNC| S status lines of not-current windows
|
||||||
|hl-Title| t Titles for output from ":set all", ":autocmd" etc.
|
|hl-Title| t Titles for output from ":set all", ":autocmd" etc.
|
||||||
|hl-VertSplit| c column used to separate vertically split windows
|
|hl-VertSplit| c column used to separate vertically split windows
|
||||||
|hl-Visual| v Visual mode
|
|hl-Visual| v Visual mode
|
||||||
@ -3248,6 +3209,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|hl-PmenuSbar| x popup menu scrollbar
|
|hl-PmenuSbar| x popup menu scrollbar
|
||||||
|hl-PmenuThumb| X popup menu scrollbar thumb
|
|hl-PmenuThumb| X popup menu scrollbar thumb
|
||||||
|
|
||||||
|
|hl-TabLine| *
|
||||||
|
|hl-TabLineFill| _
|
||||||
|
|hl-TabLineSel| #
|
||||||
|
|
||||||
|
|hl-ColorColumn| o
|
||||||
|
|hl-CursorColumn| !
|
||||||
|
|hl-CursorLine| .
|
||||||
|
|hl-QuickFixLine| q
|
||||||
|
|
||||||
The display modes are:
|
The display modes are:
|
||||||
r reverse (termcap entry "mr" and "me")
|
r reverse (termcap entry "mr" and "me")
|
||||||
i italic (termcap entry "ZH" and "ZR")
|
i italic (termcap entry "ZH" and "ZR")
|
||||||
@ -3776,12 +3746,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
:source $VIMRUNTIME/menu.vim
|
:source $VIMRUNTIME/menu.vim
|
||||||
< Warning: This deletes all menus that you defined yourself!
|
< Warning: This deletes all menus that you defined yourself!
|
||||||
|
|
||||||
*'langnoremap'* *'lnr'*
|
*'langremap'* *'lrm'* *'nolangremap'* *'nolrm'*
|
||||||
'langnoremap' 'lnr' boolean (default on)
|
'langremap' 'lrm' boolean (default off)
|
||||||
global
|
global
|
||||||
When on, setting 'langmap' does not apply to characters resulting from
|
When off, setting 'langmap' does not apply to characters resulting from
|
||||||
a mapping. If setting 'langmap' disables some of your mappings, make
|
a mapping. If setting 'langmap' disables some of your mappings, make
|
||||||
sure this option is set.
|
sure this option is off.
|
||||||
|
|
||||||
*'laststatus'* *'ls'*
|
*'laststatus'* *'ls'*
|
||||||
'laststatus' 'ls' number (default 2)
|
'laststatus' 'ls' number (default 2)
|
||||||
@ -3830,9 +3800,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
use this command to get the tallest window possible: >
|
use this command to get the tallest window possible: >
|
||||||
:set lines=999
|
:set lines=999
|
||||||
< Minimum value is 2, maximum value is 1000.
|
< Minimum value is 2, maximum value is 1000.
|
||||||
If you get less lines than expected, check the 'guiheadroom' option.
|
|
||||||
When you set this option and Vim is unable to change the physical
|
|
||||||
number of lines of the display, the display may be messed up.
|
|
||||||
|
|
||||||
*'linespace'* *'lsp'*
|
*'linespace'* *'lsp'*
|
||||||
'linespace' 'lsp' number (default 0, 1 for Win32 GUI)
|
'linespace' 'lsp' number (default 0, 1 for Win32 GUI)
|
||||||
@ -3932,9 +3899,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
:set lcs=tab:>-,trail:-
|
:set lcs=tab:>-,trail:-
|
||||||
:set lcs=tab:>-,eol:<,nbsp:%
|
:set lcs=tab:>-,eol:<,nbsp:%
|
||||||
:set lcs=extends:>,precedes:<
|
:set lcs=extends:>,precedes:<
|
||||||
< The "NonText" highlighting will be used for "eol", "extends" and
|
< |hl-NonText| highlighting will be used for "eol", "extends" and
|
||||||
"precedes". "SpecialKey" for "nbsp", "space", "tab" and "trail".
|
"precedes". |hl-Whitespace| for "nbsp", "space", "tab" and "trail".
|
||||||
|hl-NonText| |hl-SpecialKey|
|
|
||||||
|
|
||||||
*'lpl'* *'nolpl'* *'loadplugins'* *'noloadplugins'*
|
*'lpl'* *'nolpl'* *'loadplugins'* *'noloadplugins'*
|
||||||
'loadplugins' 'lpl' boolean (default on)
|
'loadplugins' 'lpl' boolean (default on)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_win32.txt* For Vim version 7.4. Last change: 2016 Mar 05
|
*os_win32.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by George Reilly
|
VIM REFERENCE MANUAL by George Reilly
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pattern.txt* For Vim version 7.4. Last change: 2016 Jun 08
|
*pattern.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_gzip.txt* For Vim version 7.4. Last change: 2012 Jul 19
|
*pi_gzip.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_msgpack.txt* For NeoVim version 0.1.
|
*pi_msgpack.txt* Nvim
|
||||||
|
|
||||||
Author: Nikolay Pavlov <kp-pav@yandex.ru>
|
Author: Nikolay Pavlov <kp-pav@yandex.ru>
|
||||||
Copyright: (c) 2015 by Nikolay Pavlov
|
Copyright: (c) 2015 by Nikolay Pavlov
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_netrw.txt* For Vim version 7.4. Last change: 2016 Apr 20
|
*pi_netrw.txt* Nvim
|
||||||
|
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
NETRW REFERENCE MANUAL by Charles E. Campbell
|
NETRW REFERENCE MANUAL by Charles E. Campbell
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_paren.txt* For Vim version 7.4. Last change: 2013 May 08
|
*pi_paren.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_spec.txt* For Vim version 7.4. Last change: 2006 Apr 24
|
*pi_spec.txt* Nvim
|
||||||
|
|
||||||
by Gustavo Niemeyer ~
|
by Gustavo Niemeyer ~
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_tar.txt* For Vim version 7.4. Last change: 2013 Apr 17
|
*pi_tar.txt* Nvim
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Tar File Interface |
|
| Tar File Interface |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_zip.txt* For Vim version 7.4. Last change: 2013 Apr 17
|
*pi_zip.txt* Nvim
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Zip File Interface |
|
| Zip File Interface |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*print.txt* For Vim version 7.4. Last change: 2010 Jul 20
|
*print.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*provider.txt* {Nvim}
|
*provider.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL by Thiago de Arruda
|
NVIM REFERENCE MANUAL by Thiago de Arruda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*quickfix.txt* For Vim version 7.4. Last change: 2016 Jul 17
|
*quickfix.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*quickref.txt* For Vim version 7.4. Last change: 2016 Aug 12
|
*quickref.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -715,7 +715,6 @@ Short explanation of each option: *option-list*
|
|||||||
'guifont' 'gfn' GUI: Name(s) of font(s) to be used
|
'guifont' 'gfn' GUI: Name(s) of font(s) to be used
|
||||||
'guifontset' 'gfs' GUI: Names of multi-byte fonts to be used
|
'guifontset' 'gfs' GUI: Names of multi-byte fonts to be used
|
||||||
'guifontwide' 'gfw' list of font names for double-wide characters
|
'guifontwide' 'gfw' list of font names for double-wide characters
|
||||||
'guiheadroom' 'ghr' GUI: pixels room for window decorations
|
|
||||||
'guioptions' 'go' GUI: Which components and options are used
|
'guioptions' 'go' GUI: Which components and options are used
|
||||||
'guitablabel' 'gtl' GUI: custom label for a tab page
|
'guitablabel' 'gtl' GUI: custom label for a tab page
|
||||||
'guitabtooltip' 'gtt' GUI: custom tooltip for a tab page
|
'guitabtooltip' 'gtt' GUI: custom tooltip for a tab page
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*recover.txt* For Vim version 7.4. Last change: 2014 Mar 27
|
*recover.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*remote.txt* For Vim version 7.4. Last change: 2015 Mar 01
|
*remote.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*remote_plugin.txt* For Nvim. {Nvim}
|
*remote_plugin.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
NVIM REFERENCE MANUAL by Thiago de Arruda
|
NVIM REFERENCE MANUAL by Thiago de Arruda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*repeat.txt* For Vim version 7.4. Last change: 2016 Jul 21
|
*repeat.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*rileft.txt* For Vim version 7.4. Last change: 2006 Apr 24
|
*rileft.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Avner Lottem
|
VIM REFERENCE MANUAL by Avner Lottem
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*russian.txt* For Vim version 7.4. Last change: 2006 Apr 24
|
*russian.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Vassily Ragosin
|
VIM REFERENCE MANUAL by Vassily Ragosin
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*scroll.txt* For Vim version 7.4. Last change: 2006 Aug 27
|
*scroll.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*sign.txt* For Vim version 7.4. Last change: 2016 Aug 12
|
*sign.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur
|
VIM REFERENCE MANUAL by Gordon Prieur
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*spell.txt*
|
*spell.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*sponsor.txt* For Vim version 7.4. Last change: 2008 Jun 21
|
*sponsor.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*starting.txt* For Vim version 7.4. Last change: 2016 Jul 03
|
*starting.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -457,6 +457,8 @@ accordingly. Vim proceeds in this order:
|
|||||||
searched for the "plugin" sub-directory and all files ending in ".vim"
|
searched for the "plugin" sub-directory and all files ending in ".vim"
|
||||||
will be sourced (in alphabetical order per directory), also in
|
will be sourced (in alphabetical order per directory), also in
|
||||||
subdirectories.
|
subdirectories.
|
||||||
|
However, directories in 'runtimepath' ending in "after" are skipped
|
||||||
|
here and only loaded after packages, see below.
|
||||||
Loading plugins won't be done when:
|
Loading plugins won't be done when:
|
||||||
- The 'loadplugins' option was reset in a vimrc file.
|
- The 'loadplugins' option was reset in a vimrc file.
|
||||||
- The |--noplugin| command line argument is used.
|
- The |--noplugin| command line argument is used.
|
||||||
@ -464,13 +466,18 @@ accordingly. Vim proceeds in this order:
|
|||||||
- When Vim was compiled without the |+eval| feature.
|
- When Vim was compiled without the |+eval| feature.
|
||||||
Note that using "-c 'set noloadplugins'" doesn't work, because the
|
Note that using "-c 'set noloadplugins'" doesn't work, because the
|
||||||
commands from the command line have not been executed yet. You can
|
commands from the command line have not been executed yet. You can
|
||||||
use "--cmd 'set noloadplugins'" |--cmd|.
|
use "--cmd 'set noloadplugins'" or "--cmd 'set loadplugins'" |--cmd|.
|
||||||
|
|
||||||
Packages are loaded. These are plugins, as above, but found in the
|
Packages are loaded. These are plugins, as above, but found in the
|
||||||
"start" directory of each entry in 'packpath'. Every plugin directory
|
"start" directory of each entry in 'packpath'. Every plugin directory
|
||||||
found is added in 'runtimepath' and then the plugins are sourced. See
|
found is added in 'runtimepath' and then the plugins are sourced. See
|
||||||
|packages|.
|
|packages|.
|
||||||
|
|
||||||
|
The plugins scripts are loaded, as above, but now only the directories
|
||||||
|
ending in "after" are used. Note that 'runtimepath' will have changed
|
||||||
|
if packages have been found, but that should not add a directory
|
||||||
|
ending in "after".
|
||||||
|
|
||||||
7. Set 'shellpipe' and 'shellredir'
|
7. Set 'shellpipe' and 'shellredir'
|
||||||
The 'shellpipe' and 'shellredir' options are set according to the
|
The 'shellpipe' and 'shellredir' options are set according to the
|
||||||
value of the 'shell' option, unless they have been set before.
|
value of the 'shell' option, unless they have been set before.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*syntax.txt* For Vim version 7.4. Last change: 2016 Aug 10
|
*syntax.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -4899,32 +4899,28 @@ PmenuThumb Popup menu: Thumb of the scrollbar.
|
|||||||
*hl-Question*
|
*hl-Question*
|
||||||
Question |hit-enter| prompt and yes/no questions
|
Question |hit-enter| prompt and yes/no questions
|
||||||
*hl-QuickFixLine*
|
*hl-QuickFixLine*
|
||||||
QuickFixLine The selected |quickfix| item in the quickfix window.
|
QuickFixLine Current |quickfix| item in the quickfix window. Combined with
|
||||||
|hl-CursorLine| is combined with this when the cursor is on
|
|hl-CursorLine| when the cursor is there.
|
||||||
the currently selected quickfix item.
|
|
||||||
*hl-Search*
|
*hl-Search*
|
||||||
Search Last search pattern highlighting (see 'hlsearch').
|
Search Last search pattern highlighting (see 'hlsearch').
|
||||||
Also used for highlighting the current line in the quickfix
|
Also used for similar items that need to stand out.
|
||||||
window and similar items that need to stand out.
|
|
||||||
*hl-SpecialKey*
|
*hl-SpecialKey*
|
||||||
SpecialKey Meta and special keys listed with ":map", also for text used
|
SpecialKey Unprintable characters: text displayed differently from what
|
||||||
to show unprintable characters in the text, 'listchars'.
|
it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
||||||
Generally: text that is displayed differently from what it
|
|
||||||
really is.
|
|
||||||
*hl-SpellBad*
|
*hl-SpellBad*
|
||||||
SpellBad Word that is not recognized by the spellchecker. |spell|
|
SpellBad Word that is not recognized by the spellchecker. |spell|
|
||||||
This will be combined with the highlighting used otherwise.
|
Combined with the highlighting used otherwise.
|
||||||
*hl-SpellCap*
|
*hl-SpellCap*
|
||||||
SpellCap Word that should start with a capital. |spell|
|
SpellCap Word that should start with a capital. |spell|
|
||||||
This will be combined with the highlighting used otherwise.
|
Combined with the highlighting used otherwise.
|
||||||
*hl-SpellLocal*
|
*hl-SpellLocal*
|
||||||
SpellLocal Word that is recognized by the spellchecker as one that is
|
SpellLocal Word that is recognized by the spellchecker as one that is
|
||||||
used in another region. |spell|
|
used in another region. |spell|
|
||||||
This will be combined with the highlighting used otherwise.
|
Combined with the highlighting used otherwise.
|
||||||
*hl-SpellRare*
|
*hl-SpellRare*
|
||||||
SpellRare Word that is recognized by the spellchecker as one that is
|
SpellRare Word that is recognized by the spellchecker as one that is
|
||||||
hardly ever used. |spell|
|
hardly ever used. |spell|
|
||||||
This will be combined with the highlighting used otherwise.
|
Combined with the highlighting used otherwise.
|
||||||
*hl-StatusLine*
|
*hl-StatusLine*
|
||||||
StatusLine status line of current window
|
StatusLine status line of current window
|
||||||
*hl-StatusLineNC*
|
*hl-StatusLineNC*
|
||||||
@ -4943,6 +4939,8 @@ Title titles for output from ":set all", ":autocmd" etc.
|
|||||||
Visual Visual mode selection
|
Visual Visual mode selection
|
||||||
*hl-WarningMsg*
|
*hl-WarningMsg*
|
||||||
WarningMsg warning messages
|
WarningMsg warning messages
|
||||||
|
*hl-Whitespace*
|
||||||
|
Whitespace "nbsp", "space", "tab" and "trail" in 'listchars'
|
||||||
*hl-WildMenu*
|
*hl-WildMenu*
|
||||||
WildMenu current match in 'wildmenu' completion
|
WildMenu current match in 'wildmenu' completion
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*tabpage.txt* For Vim version 7.4. Last change: 2015 Apr 18
|
*tabpage.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*tagsrch.txt* For Vim version 7.4. Last change: 2013 Oct 01
|
*tagsrch.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*term.txt* For Vim version 7.4. Last change: 2015 Nov 24
|
*term.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*tips.txt* For Vim version 7.4. Last change: 2009 Nov 07
|
*tips.txt* Nvim
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user