<C-s> for shits and giggles

This commit is contained in:
cscherr 2025-08-25 09:22:34 +02:00
parent 5129a923f0
commit 1f014b6177
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7
3 changed files with 35 additions and 34 deletions

View file

@ -2,7 +2,7 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ';' vim.g.maplocalleader = ';'
-- vim.g.python3_host_prog = '/usr/bin/python3' -- vim.g.python3_host_prog = '/usr/bin/python3'
vim.opt.mouse = 'a' -- mouse does annoying things for me if it's not 'a' vim.opt.mouse = 'a' -- mouse does annoying things for me if it's not 'a'
vim.opt.signcolumn = 'yes' vim.opt.signcolumn = 'yes'
vim.opt.clipboard = '' -- don't just use the system clipboard vim.opt.clipboard = '' -- don't just use the system clipboard
vim.opt.wrap = false vim.opt.wrap = false
@ -19,13 +19,13 @@ vim.o.exrc = true -- load local configs in plugin dir
-- Tabs and Indents -- Tabs and Indents
-- === -- ===
vim.opt.textwidth = 80 -- Text width maximum chars before wrapping vim.opt.textwidth = 80 -- Text width maximum chars before wrapping
vim.opt.tabstop = 4 -- The number of spaces a tab is vim.opt.tabstop = 4 -- The number of spaces a tab is
vim.opt.shiftwidth = 4 -- Number of spaces to use in auto(indent) vim.opt.shiftwidth = 4 -- Number of spaces to use in auto(indent)
vim.opt.smarttab = true -- Tab insert blanks according to 'shiftwidth' vim.opt.smarttab = true -- Tab insert blanks according to 'shiftwidth'
vim.opt.autoindent = true -- Use same indenting on new lines vim.opt.autoindent = true -- Use same indenting on new lines
vim.opt.smartindent = true -- Smart autoindenting on new lines vim.opt.smartindent = true -- Smart autoindenting on new lines
vim.opt.shiftround = true -- Round indent to multiple of 'shiftwidth' vim.opt.shiftround = true -- Round indent to multiple of 'shiftwidth'
-- Timing -- Timing
-- === -- ===
@ -37,19 +37,19 @@ vim.opt.updatetime = 250 -- Idle time to write swap and trigger CursorHold
-- Searching -- Searching
-- === -- ===
vim.opt.ignorecase = true -- Search ignoring case vim.opt.ignorecase = true -- Search ignoring case
vim.opt.smartcase = true -- Keep case when searching with * vim.opt.smartcase = true -- Keep case when searching with *
vim.opt.infercase = true -- Adjust case in insert completion mode vim.opt.infercase = true -- Adjust case in insert completion mode
vim.opt.incsearch = true -- Incremental search vim.opt.incsearch = true -- Incremental search
vim.opt.hlsearch = true -- highlight searched stuff vim.opt.hlsearch = true -- highlight searched stuff
-- Formatting -- Formatting
-- === -- ===
vim.opt.wrap = false -- No wrap by default vim.opt.wrap = false -- No wrap by default
vim.opt.linebreak = true -- Break long lines at 'breakat' vim.opt.linebreak = true -- Break long lines at 'breakat'
vim.opt.breakat = '\\ \\ ;:,!?' -- Long lines break chars vim.opt.breakat = '\\ \\ ;:,!?' -- Long lines break chars
vim.opt.startofline = false -- Cursor in same column for few commands vim.opt.startofline = false -- Cursor in same column for few commands
vim.opt.splitbelow = true -- Splits open bottom right vim.opt.splitbelow = true -- Splits open bottom right
vim.opt.splitright = true vim.opt.splitright = true
vim.opt.breakindentopt = { shift = 2, min = 20 } vim.opt.breakindentopt = { shift = 2, min = 20 }
vim.opt.formatoptions = 'trowcnlm1jp' -- see :h fo-table & :h formatoptions vim.opt.formatoptions = 'trowcnlm1jp' -- see :h fo-table & :h formatoptions
@ -74,15 +74,15 @@ vim.opt.foldminlines = 5
vim.o.guifont = 'FiraCode Nerd Font:h15' vim.o.guifont = 'FiraCode Nerd Font:h15'
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.opt.shortmess = 'xsTOInfFitloCaAs' vim.opt.shortmess = 'xsTOInfFitloCaAs'
vim.opt.showmode = true -- Show mode in cmd window vim.opt.showmode = true -- Show mode in cmd window
vim.opt.scrolloff = 6 -- Keep at least n lines above/below vim.opt.scrolloff = 6 -- Keep at least n lines above/below
vim.opt.sidescrolloff = 10 -- Keep at least n lines left/right vim.opt.sidescrolloff = 10 -- Keep at least n lines left/right
vim.opt.numberwidth = 2 -- Minimum number of columns to use for the line number vim.opt.numberwidth = 2 -- Minimum number of columns to use for the line number
vim.opt.number = true -- Show line numbers vim.opt.number = true -- Show line numbers
vim.opt.relativenumber = false -- Show relative line numbers vim.opt.relativenumber = false -- Show relative line numbers
vim.opt.ruler = true -- Default status ruler vim.opt.ruler = true -- Default status ruler
vim.opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default vim.opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default
vim.opt.laststatus = 3 -- Always show laststatus vim.opt.laststatus = 3 -- Always show laststatus
-- Sets how neovim will display certain whitespace characters in the editor. -- Sets how neovim will display certain whitespace characters in the editor.
-- See `:help 'list'` -- See `:help 'list'`
@ -92,7 +92,7 @@ vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
if vim.g.started_by_firenvim == true then if vim.g.started_by_firenvim == true then
opt.showtabline = 1 -- Don't show tabline in firenvim, unless multitab opt.showtabline = 1 -- Don't show tabline in firenvim, unless multitab
opt.laststatus = 1 -- Don't show laststatus in firenvim opt.laststatus = 1 -- Don't show laststatus in firenvim
opt.wrap = true opt.wrap = true
end end
@ -116,15 +116,15 @@ if vim.g.neovide == true then
vim.g.neovide_fullscreen = true vim.g.neovide_fullscreen = true
end end
vim.opt.helpheight = 0 -- Disable help window resizing vim.opt.helpheight = 0 -- Disable help window resizing
vim.opt.winwidth = 30 -- Minimum width for active window vim.opt.winwidth = 30 -- Minimum width for active window
vim.opt.winminwidth = 1 -- Minimum width for inactive windows vim.opt.winminwidth = 1 -- Minimum width for inactive windows
vim.opt.winheight = 1 -- Minimum height for active window vim.opt.winheight = 1 -- Minimum height for active window
vim.opt.winminheight = 1 -- Minimum height for inactive window vim.opt.winminheight = 1 -- Minimum height for inactive window
vim.opt.showcmd = false -- show command in status line vim.opt.showcmd = false -- show command in status line
vim.opt.cmdheight = 0 vim.opt.cmdheight = 0
vim.opt.cmdwinheight = 5 -- Command-line lines vim.opt.cmdwinheight = 5 -- Command-line lines
vim.opt.equalalways = true -- Resize windows on split or close vim.opt.equalalways = true -- Resize windows on split or close
vim.opt.colorcolumn = '80' -- Column highlight at textwidth's max character-limit vim.opt.colorcolumn = '80' -- Column highlight at textwidth's max character-limit
@ -132,8 +132,8 @@ vim.opt.cursorline = true
vim.opt.cursorlineopt = { 'number', 'screenline' } vim.opt.cursorlineopt = { 'number', 'screenline' }
vim.opt.pumheight = 10 -- Maximum number of items to show in the popup menu vim.opt.pumheight = 10 -- Maximum number of items to show in the popup menu
vim.opt.pumwidth = 10 -- Minimum width for the popup menu vim.opt.pumwidth = 10 -- Minimum width for the popup menu
vim.opt.pumblend = 10 -- Popup blend vim.opt.pumblend = 10 -- Popup blend
-- Spelling correction -- Spelling correction
-- === -- ===

View file

@ -8,6 +8,7 @@ vim.keymap.set('n', '<leader>tn', '<cmd> set nu! <cr>', { desc = '[T]oggle line
vim.keymap.set('n', '<leader>trn', '<cmd> set rnu! <cr>', { desc = '[T]oggle [R]elative line [N]umbers' }) vim.keymap.set('n', '<leader>trn', '<cmd> set rnu! <cr>', { desc = '[T]oggle [R]elative line [N]umbers' })
vim.keymap.set('n', '<leader>tw', '<cmd> set wrap! <cr>', { desc = '[T]oggle [W]rap' }) vim.keymap.set('n', '<leader>tw', '<cmd> set wrap! <cr>', { desc = '[T]oggle [W]rap' })
vim.keymap.set('n', '<leader>ts', '<cmd> set spell! <cr>', { desc = '[T]oggle [S]pellcheck' }) vim.keymap.set('n', '<leader>ts', '<cmd> set spell! <cr>', { desc = '[T]oggle [S]pellcheck' })
vim.keymap.set('n', '<C-s>', '<cmd>wa!<cr><cmd>wa!<cr><cmd>wa!<cr><cmd>wa!<cr>', { desc = 'Speichern um jeden Preis' })
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Movements -- Movements

View file

@ -140,7 +140,7 @@ gedroppt
Dekonstruktor/! Dekonstruktor/!
dealloziiert dealloziiert
Dealloziierung Dealloziierung
Dealloziieren #ealloziieren
vvvv vvvv
TODO TODO
vvvv vvvv