How to rename a file using vim motions. #1897
Unanswered
ChrisTaylorDeveloper
asked this question in
Q&A
Replies: 1 comment
-
require('neo-tree').setup({
event_handlers = {
{
event = "neo_tree_popup_input_ready",
---@param args { bufnr: integer, winid: integer }
handler = function(args)
-- map <esc> to enter normal mode (by default closes prompt)
-- don't forget `opts.buffer` to specify the buffer of the popup.
vim.keymap.set("i", "<esc>", vim.cmd.stopinsert, { noremap = true, buffer = args.bufnr })
end,
}
}
})mentioned in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I position my cursor over a file and hit
rI can rename the file but I need to use the arrow keys to move my cursor backwards and forwards along the filename. How can I rename a file using elementary vim motions e.g.wandb.Beta Was this translation helpful? Give feedback.
All reactions