execute pyton code by pressing <F9>

This commit is contained in:
pateball 2025-04-04 21:58:18 +02:00
parent 9f70f4a641
commit a5d7389b6a
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ vim.opt.confirm = true
-- [[ Basic Keymaps ]]
-- 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
-- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')