Skip to content

Instantly share code, notes, and snippets.

@JustLinuxUser
Created November 14, 2024 20:44
Show Gist options
  • Save JustLinuxUser/66d7709bdcbadb9f85fecdad2aba9918 to your computer and use it in GitHub Desktop.
Save JustLinuxUser/66d7709bdcbadb9f85fecdad2aba9918 to your computer and use it in GitHub Desktop.
vim.o.tabstop = 4 -- A TAB character looks like 4 spaces
vim.o.expandtab = false -- Pressing the TAB key will insert spaces instead of a TAB character
vim.o.softtabstop = 0 -- Number of spaces inserted instead of a TAB character
vim.o.shiftwidth = 4 -- Number of spaces inserted when indenting
vim.o.listchars = "tab:⇥ ,eol:󰘌,trail:■"
vim.g.mapleader = " " -- Leader key
vim.o.nu = true
vim.o.rnu = true
vim.o.undofile = true
vim.o.cmdheight = 0
-- vim.o.fixendofile = false
vim.o.eol = false
vim.o.eof = false
vim.g.c_syntax_for_h = 1 -- C dev here
vim.opt.scrolloff = 8
--vim.cmd("colorscheme tokyonight-night")
vim.keymap.set("n", "<Esc>", ":noh<CR>")
vim.keymap.set("v", "<space>y", "\"+y");
vim.keymap.set("n", "<space>y", "\"+y");
vim.keymap.set("v", "<space>p", "\"+p");
vim.keymap.set("n", "<space>p", "\"+p");
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]) -- budget lsp rename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment