summaryrefslogtreecommitdiff
path: root/lua/binds.lua
blob: c2990f065481a8e4fbfe667493124c9f58123618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--
-- 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>')

--
-- Commands
--
ct.defcmd('Xrdb', '!xrdb %')
ct.defcmd('ExTerm', '!' .. defs.external_term .. '&<LF><LF>')
ct.defcmd('ExFileMgr', '!' .. defs.external_filemgr .. '. &<LF><LF>')