Nvim: new mapping for making files unexecutable
This commit is contained in:
parent
8a50b2b7b9
commit
48274c2037
1 changed files with 2 additions and 1 deletions
|
@ -43,5 +43,6 @@ vim.api.nvim_set_keymap("n", "<leader>p", "\"+p", {})
|
|||
-- opening explorer
|
||||
vim.api.nvim_set_keymap("n", "<leader>N", ":20Lexplore<cr>", {})
|
||||
|
||||
-- make current file executable
|
||||
-- make current file (un)executable
|
||||
vim.api.nvim_set_keymap("n", "<leader>x", ":exec 'w'<cr> <bar> <cmd>!chmod +x %<cr>", { silent = true })
|
||||
vim.api.nvim_set_keymap("n", "<leader>X", ":exec 'w'<cr> <bar> <cmd>!chmod -x %<cr>", { silent = true })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue