From da20cc4e90cc9b341b0afb74594cd733cfd772d8 Mon Sep 17 00:00:00 2001 From: Jeremy Brudvik Date: Sun, 12 Jan 2025 22:07:33 -0500 Subject: [PATCH] Neovim: Move config from Lua back to VimScript --- home/.config/nvim/init.lua | 14 -------------- home/.config/nvim/init.vim | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 home/.config/nvim/init.lua create mode 100644 home/.config/nvim/init.vim diff --git a/home/.config/nvim/init.lua b/home/.config/nvim/init.lua deleted file mode 100644 index fe7b748..0000000 --- a/home/.config/nvim/init.lua +++ /dev/null @@ -1,14 +0,0 @@ --- Basics -vim.opt.shortmess:append({ I = true }) -- Don't show intro message -vim.opt.number = true -- Enable line numbers -vim.opt.clipboard:append({ 'unnamedplus' }) -- Use the system clipboard - --- Spaces and tabs -vim.opt.expandtab = true -- Insert tabs instead of spaces when using the tab button -vim.opt.softtabstop = 4 -- Size of tabs; coupled with expandtab -> number of spaces -vim.opt.tabstop = 4 -- Visual size of tab characters -vim.opt.shiftwidth = 4 -- How many columns of text are indented with >> or << (or =G) - --- Key mappings -vim.keymap.set('n', '', ':noh') -- "Dismiss" search results -vim.keymap.set('n', '', '') -- Redo diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim new file mode 100644 index 0000000..f74c9c1 --- /dev/null +++ b/home/.config/nvim/init.vim @@ -0,0 +1,14 @@ +set shortmess+=I " Don't show intro message +set number " Enable line numbers +set clipboard+=unnamedplus " Use the system clipboard +set expandtab " Insert tabs instead of spaces when using the tab button +set softtabstop=4 " Size of tabs -- coupled with expandtab -> number of spaces +set tabstop=4 " Visual size of tab characters +set shiftwidth=4 " How many columns of text are indented with >> or << (or =G) + +" Key mappings +nnoremap :noh +nnoremap +nmap gcc +vmap gc +imap gcci