You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.10.0-dev-c379d72
Operating system/version
NixOS unstable (current)
Describe the bug
Doing some backwards char operator movement with T/F includes the current character, which deviates from the native neovim T/F behavior, and can be unexpected for anyone used to how vim char operators behave.
Steps To Reproduce
Imagine the following line and cursor position:
abcdefg
^
Command: dTb
Result:
abg
^
The above (f being deleted as well) also happens with dF command, although that includes the target b, as expected. This affects other commands as well, like yank.
Expected Behavior
Same as vim's, current character is kept:
abfg
^
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{ "folke/flash.nvim", opts= {} },
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0-dev-c379d72
Operating system/version
NixOS unstable (current)
Describe the bug
Doing some backwards char operator movement with T/F includes the current character, which deviates from the native neovim T/F behavior, and can be unexpected for anyone used to how vim char operators behave.
Steps To Reproduce
dTb
f
being deleted as well) also happens withdF
command, although that includes the targetb
, as expected. This affects other commands as well, like yank.Expected Behavior
Same as vim's, current character is kept:
Repro
The text was updated successfully, but these errors were encountered: