From 10eb7b8868675cd8f96fc54c69a47c2ed3cf3009 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 26 Feb 2024 16:14:38 +0100 Subject: nvim: Switch from Vimscript to Lua Spending time learning Lua has more advantages than learning Vimscript since Lua is used in many applications while Vimscript is just for editor configuration. --- nvim/init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nvim/init.lua (limited to 'nvim/init.lua') 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', '', ':tabp ') +vim.keymap.set('n', '', ':tabn ') + +vim.keymap.set('n', '', ':%!xxd -r ') +vim.keymap.set('n', '', ':%!xxd ') -- cgit v1.2.3-70-g09d2