summaryrefslogtreecommitdiff
path: root/nvim/init.lua
blob: 2f1179fbdbc0212b477097737d6437af0f00d6b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
vim.cmd.syntax('on')
vim.cmd.filetype({'plugin', 'indent', 'on'})

vim.opt.mouse         = nil
vim.opt.tabstop       = 4
vim.opt.expandtab     = false
vim.opt.number        = true
vim.opt.shiftwidth    = 4
vim.opt.autoindent    = true
vim.opt.spelllang     = {'en', 'de'}
vim.opt.colorcolumn   = {81}
vim.opt.encoding      = 'utf-8'
vim.opt.fileencodings = {'utf-8'}
vim.opt.list          = true
vim.opt.listchars     = {tab = '→ ', nbsp = '␣', trail = '•'}
vim.opt.spell         = true

vim.keymap.set('n', '<Tab>', ':tabn <LF>')
vim.keymap.set('n', '<S-Tab>', ':tabp <LF>')

vim.keymap.set('n', '<F5>', ':%!xxd -r <LF>')
vim.keymap.set('n', '<F6>', ':%!xxd <LF>')