diff options
Diffstat (limited to 'nvim/init.lua')
-rw-r--r-- | nvim/init.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..3542221 --- /dev/null +++ b/nvim/init.lua @@ -0,0 +1,21 @@ +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.keymap.set('n', '<F7>', ':tabp <LF>') +vim.keymap.set('n', '<F8>', ':tabn <LF>') + +vim.keymap.set('n', '<F5>', ':%!xxd -r <LF>') +vim.keymap.set('n', '<F6>', ':%!xxd <LF>') |