This commit is contained in:
2023-01-24 12:41:40 +08:00
parent e3416f0e72
commit 0f73cb3fed
9 changed files with 208 additions and 35 deletions

View File

@@ -8,7 +8,7 @@ local defs = require('defs')
-- Maps
--
-- select all
ct.map('n', '<C-a>', '<esc>ggVG<LF>')
ct.map('n', '<Leader>a', '<esc>ggVG<LF>')
--[[
-- spawn terminal
ct.map('n', '<C-M-t>', ':!' .. defs.external_term .. ' . &<LF><LF>')
@@ -16,11 +16,18 @@ ct.map('n', '<C-M-t>', ':!' .. defs.external_term .. ' . &<LF><LF>')
ct.map('n', '<C-M-f>', ':!' .. defs.external_filemgr .. ' . &<LF><LF>')
]]
-- spellchecking
ct.map('n', '<C-s>', ':set spell!<LF>')
ct.map('n', '<Leader>s', ':set spell!<LF>')
-- Buffer Navigation
ct.map('n', '<Leader>w', ':bnext<LF>')
ct.map('n', '<Leader>W', ':bprevious<LF>')
-- close buffer
ct.map('n', '<Leader>q', ':bd<LF>')
--
-- Commands
--
ct.defcmd('Xrdb', '!xrdb %')
ct.defcmd('ExTerm', '!' .. defs.external_term .. '&<LF><LF>')
ct.defcmd('ExFileMgr', '!' .. defs.external_filemgr .. '&<LF><LF>')
ct.defcmd('ExFileMgr', '!' .. defs.external_filemgr .. '. &<LF><LF>')