Last active
May 19, 2026 05:56
-
-
Save grom358/57e96b0b2d9139512e16d1dad32179c1 to your computer and use it in GitHub Desktop.
vim init.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vim.g.mapleader = ' ' | |
| vim.g.maplocalleader = ' ' | |
| -- enable line numbers | |
| vim.o.number = true | |
| -- enable mouse mode | |
| vim.o.mouse = 'a' | |
| -- sync clipboard between OS and neovim | |
| vim.schedule(function() vim.o.clipboard = 'unnamedplus' end) | |
| -- enable break indent | |
| -- vim.o.breakindent = true | |
| -- enable undo/redo changes even after closing and reopening a file | |
| vim.o.undofile = true | |
| -- case-insensitive search UNLESS \C or one or more capital lettters in the search term | |
| -- vim.o.ignorecase = true | |
| -- vim.o.smartcase = true | |
| -- keep signcolumn on by default | |
| -- vim.o.signcolumn = 'yes' | |
| -- decrease update time | |
| vim.o.updatetime = 250 | |
| -- decrease mapped sequence wait time | |
| vim.o.timeoutlen = 300 | |
| -- configure how new splits should be opened | |
| -- vim.o.splitright = true | |
| -- vim.o.splitbelow = true | |
| -- display whitespace characters | |
| vim.o.list = true | |
| vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } | |
| -- preview substitutions live as you type | |
| -- vim.o.inccommand = 'split' | |
| -- highlight line cursor is on | |
| -- vim.o.cursorline = true | |
| -- minimal number of screen lines to keep above and below the cursor | |
| vim.o.scrolloff = 10 | |
| -- if performing an operation that would fail due to unsaved changes in the buffer (like :q) | |
| -- instead raise a dialog asking if you wish to save the current file(s) | |
| vim.o.confirm = true | |
| -- clear highlights on search | |
| vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment