Commit Graph

39 Commits

Author SHA1 Message Date
9e18be760c vim:setts: Use the number column for the signcolumn 2025-11-25 17:27:48 +01:00
4802abee17 vim:setts: Revert "Include - in &iskeyword"
Commit 0369218114 ("vim:settings: Include `-` in `&iskeyword`") added
the dash to `&iskeyword` but I didn't give an explanation for the change
and don't remember what led me to it. Today I'm annoyed by it since it
breaks some stuff (e.g. previously the C pointer arrow and syntax
highlighting of negative numbers in Python). The C ftplugin is obsolete
now, so delete it.

This reverts commit 0369218114.
2025-07-20 03:05:10 +02:00
25c00c6efd vim:setts: Use ellipsis for lcs extends & precedes 2025-04-30 17:03:04 +02:00
ad025e7d9d vim:setts: Highlight trailing spaces a bit better
Switch from middle dot to bullet point, since it is a bit bigger.
2025-04-30 17:03:04 +02:00
d3cbc9d560 vim:setts: Change 'tabstop' to 8
I got used to code that is indented with (meant) tabs of width 8.
2025-04-30 17:03:04 +02:00
59f12488b1 vim: Make trailing space highlighting more subtle
I sometimes work in files where I cannot remove trailing whitespaces (at
least not permanently). In these cases the background highlighting of
them is quite strong and can be a bit annoying. To make this more
pleasing, use the foreground to highlight trailing characters, as long
as tabs and trailing spaces are displayed as non-space characters.

For this I also set `trail` in `&listchars`, and while at it, merged the
two lines setting `&listchars` and cleaned up some comments.
2024-12-04 09:02:09 +01:00
d831a4140e vim:setts: Set cindent & preserveindent
For slightly better indentation.
2024-11-16 02:22:40 +01:00
f404c150b1 vim:setts: Decrease 'scrolloff' (15 -> 5)
It's annoying sometimes.
2024-11-06 02:39:46 +01:00
c011f2ed6a vim:setts: Don't auto-open folds when searching
This makes it a lot easier to restrict the search (besides searching in
visual selection, which is quite limited). The cursor will still land on
the closed fold but only once, independent of the number of hits inside
of the fold.
2024-10-28 16:59:03 +01:00
72770f6703 vim:setts: Don't wrap termdebug settings in aucmd 2024-10-16 14:53:39 +02:00
5b84d4ae55 vim:setts: Only one global status line
for more screen real-estate.
2024-09-21 00:37:43 +02:00
c1d91fa934 vim:setts: Re-enable 'wrap'
I don't remember why I turned it off. But currently I enable it a lot.
2024-07-11 19:09:36 +02:00
1075264593 vim:setts: Add / to 'formatoptions'
Do not insert the comment leader on 'o' on trailing inline comments.
2024-07-11 19:09:32 +02:00
f8519555f7 vim:setts: Deactivate 'relativenumber'
I rarely use them and are more an annoyance.

For the case that I want to enable them in a session, move the
numbertoggle augroup into a function and add an autocommand on
`OptionSet relativenumber`.
2023-02-13 15:32:53 +01:00
db6a7e2984 vim:setts: Reactivate 'cursorline' 2023-02-13 15:15:34 +01:00
8fda4ce158 vim:setts: Set conceallevel=1
I want concealable text to be replaced if possible but not hidden
completely (i.e. `=2`) as this makes moving over lines nauseous.
2023-01-04 22:44:41 +01:00
0ef3cd3723 vim:setts: Turn off line wrapping 2022-12-12 11:21:27 +01:00
a290c07acc vim:settings: Improve line wrapping behaviour 2022-11-21 16:38:52 +01:00
3f259d9cd8 vim: Do not include the line break in selections 2022-09-28 00:58:48 +02:00
2f6d8af3f9 vim:settings: Turn on lazyredraw 2022-08-31 02:39:42 +02:00
ba3a54fc44 vim: Move numbertoggle autocmd into settings.vim
Step by step I want to restructure the vim files. The approach to
cleanly divide the config by topics works in zsh pretty well, but is too
vague in vim for my liking.

Especially (the very small) functions and autocommands that have the
purpose of setting options or mapping keys or the interplay of multiple
categories together, make it difficult to decide in which file the
snippets should lay.
2022-08-28 01:06:55 +02:00
794293aa81 vim: Wrap autocmds in augroups
To prevent the piling up of autocommands when reloading the vimrc, wrap
all autocommands in groups.
2022-08-25 04:22:19 +02:00
d1211dbc0d vim:settings: Add block to virtualedit
Let the cursor move beyond the EOL when in visual-block mode.
2022-07-12 21:00:08 +02:00
b2536d7c2f vim:settings: Set inccommand=split
Show partial off-screen effects of a command in a preview window.
2022-07-12 21:00:05 +02:00
a3ede8f8bc vim: Use gitgutter's foldtext()
Use `gitgutter`'s `foldtext()` to display an indicator if a fold
contains lines that have been changed.
This is necessary as {,neo}vim does not display signs next to folded
lines.
2022-06-23 23:58:52 +02:00
bc72d3507c vim: Set nofixendofline
Do not automatically restore missing <EOL> at EOF when writing.
This is rarely a change worth committing and I'd rather prefer vim to
not touch stuff I did not actively modify myself.
2022-06-23 23:56:52 +02:00
99e6ac7002 vim:sets: Recognize numbered lists when formatting
Add `n` to `formatoptions` to recognize numbered lists when formatting.
2022-03-30 13:59:10 +02:00
fc0969abba vim: Drop textwidth autocmd for native way
Instead of needing a manual autocmd that triggers on textwidth changes,
colorcolumn supports offsets to textwidth natively.
2022-03-22 16:18:58 +01:00
0369218114 vim:settings: Include - in &iskeyword 2022-02-24 17:39:48 +01:00
fafc7e1bef vim: Deactivate cursorline
With the highlighting of the word under the cursor this kind of gets in
the way as both are using the same color to highlight.
2022-02-17 15:22:32 +01:00
2cd147cc32 vim: Set colorcolumn to textwidth
Set &colorcolumn to &textwidth instead of hardcoding it to the same
value.
2022-02-12 13:11:44 +01:00
8c37dc2316 vim:vimrc.d:*: Use " instead of # in header lines 2021-07-13 16:52:42 +02:00
28385a0a1e vim: Set termdebug_wide 2021-05-21 10:18:02 +02:00
3aa722842d vim: Use tree style listing in netrw 2021-04-28 01:37:42 +02:00
f746909e3a vim: Enable &autoread + autocmd for regular check 2021-02-17 02:38:15 +01:00
0caa30d6ef vim: Enable mouse in all modes 2021-01-15 12:40:36 +01:00
4a0b9e5cf1 vim: Disable swapfile-warning instead of the files
This should make it possible to actually recover something on a crash
without those warnings.
2020-12-27 23:55:39 +01:00
5b45049070 vim: Disable pesky swap files
For now... Probably until my first crash with unsaved changes...
But right now they just annoy me.
2020-12-24 02:01:11 +01:00
b9f26d7482 vim: Split vimrc into vimrc.d/ 2020-12-23 01:42:42 +01:00