execute pyton code by pressing <F9>

pull/1690/head
pateball 4 months ago
parent 9f70f4a641
commit a5d7389b6a

@ -164,6 +164,9 @@ vim.opt.confirm = true
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
-- execute python code
vim.keymap.set('n', '<F9>', '<cmd>:pyf %<CR>')
-- Clear highlights on search when pressing <Esc> in normal mode -- Clear highlights on search when pressing <Esc> in normal mode
-- See `:help hlsearch` -- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')

Loading…
Cancel
Save