mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
Add xmap function
This commit is contained in:
parent
682a63b9d1
commit
1682cfd4ea
|
@ -29,6 +29,10 @@ function tmap(shortcut, command, options)
|
||||||
keymap("t", shortcut, command, options)
|
keymap("t", shortcut, command, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function xmap(shortcut, command, options)
|
||||||
|
keymap("x", shortcut, command, options)
|
||||||
|
end
|
||||||
|
|
||||||
-- Unmap arrow keys in normal mode to remove bad habits
|
-- Unmap arrow keys in normal mode to remove bad habits
|
||||||
nmap("<Down>", "<nop>")
|
nmap("<Down>", "<nop>")
|
||||||
nmap("<Left>", "<nop>")
|
nmap("<Left>", "<nop>")
|
||||||
|
@ -109,4 +113,3 @@ nmap("<leader>Q", ":bufdo bdelete<CR>")
|
||||||
-- a message saying that dbext plugin isn't installed
|
-- a message saying that dbext plugin isn't installed
|
||||||
-- See :h ft-sql.txt
|
-- See :h ft-sql.txt
|
||||||
vim.g.omni_sql_no_default_maps = 1
|
vim.g.omni_sql_no_default_maps = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue