summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2025-07-04 13:44:39 +0800
committerGitHub <noreply@github.com>2025-07-04 05:44:39 +0000
commitbb75610d998cdd9439ab84c2ac92ec2ac456c76d (patch)
treecf2e9148bc471871fbd05e9837d92359258b0c04 /runtime/lua/vim/_meta/options.lua
parentc48dea20f5ad059d0018e9bd7e5a990029eb7043 (diff)
vim-patch:9.1.1507: symlinks are resolved on :cd commands (#34758)
Problem: File paths change from symlink to target path after :cd command when editing files through symbolic links Solution: Add "~" flag to 'cpoptions' to control symlink resolution. When not included (default), symlinks are resolved maintaining backward compatibility. When included, symlinks are preserved providing the improved behavior. (glepnir) related: neovim/neovim#15695 closes: vim/vim#17628 https://github.com/vim/vim/commit/4ade668fb62ebf3f8be537fe451caed6bd1eba9a
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 2c6d3e6048..585a02f330 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -1515,6 +1515,13 @@ vim.bo.ci = vim.bo.copyindent
--- character, the cursor won't move. When not included,
--- the cursor would skip over it and jump to the
--- following occurrence.
+--- *cpo-~*
+--- ~ When included, don't resolve symbolic links when
+--- changing directory with `:cd`, `:lcd`, or `:tcd`.
+--- This preserves the symbolic link path in buffer names
+--- and when displaying the current directory. When
+--- excluded (default), symbolic links are resolved to
+--- their target paths.
--- *cpo-_*
--- _ When using `cw` on a word, do not include the
--- whitespace following the word in the motion.