35 lines
801 B
Lua
35 lines
801 B
Lua
--
|
|
-- Configuration Tools
|
|
--
|
|
local ct = require('conftool')
|
|
local defs = require('defs')
|
|
|
|
--
|
|
-- Maps
|
|
--
|
|
-- select all
|
|
ct.map('n', '<Leader>a', '<esc>ggVG<LF>')
|
|
--[[
|
|
-- spawn terminal
|
|
ct.map('n', '<C-M-t>', ':!' .. defs.external_term .. ' . &<LF><LF>')
|
|
-- spwan file manager
|
|
ct.map('n', '<C-M-f>', ':!' .. defs.external_filemgr .. ' . &<LF><LF>')
|
|
]]
|
|
-- spellchecking
|
|
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>')
|
|
ct.map('n', '<Leader>wq', '<cmd>w<LF><cmd>bd<LF>')
|
|
|
|
--
|
|
-- Commands
|
|
--
|
|
-- ct.defcmd('Xrdb', '!xrdb %')
|
|
ct.defcmd('ExTerm', '!' .. defs.external_term .. '&<LF><LF>')
|
|
ct.defcmd('ExFileMgr', '!' .. defs.external_filemgr .. '. &<LF><LF>')
|