This commit is contained in:
2025-06-07 14:39:08 +08:00
parent d25bf6d7b1
commit 9b1e5c7069
5 changed files with 92 additions and 101 deletions

View File

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