Commit Graph

59 Commits

Author SHA1 Message Date
688f8e18aa vim:ftplug:shell*: Add - to &iskeyword
Add the dash to the keyword character list since command names can (and
do) contain them.
2025-08-06 12:30:35 +02:00
5baad5d7a2 vim:ftplug: Remove broken cuda.vim symlink
c.vim does not exist anymore since commit 4802abee17 (vim:setts:
Revert "Include `-` in `&iskeyword`", 2025-07-20).
2025-08-06 12:30:35 +02: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
5539a5e437 vim:ftplug:asl: Use 2 spaces for indentation 2025-07-09 14:01:15 +02:00
25c00c6efd vim:setts: Use ellipsis for lcs extends & precedes 2025-04-30 17:03:04 +02:00
a73334c8f0 vim: Disable spell checking in .clang-format
Find's a bunch of false positives.

TODO: <COMMENT>
2025-03-11 11:29:11 +01:00
da27170b7e vim:ftplug: Symlink cuda.vim to c.vim 2025-03-05 00:50:16 +01:00
4953434904 c.vim: Use setlocal 2025-03-05 00:50:12 +01:00
459453dc5e fzf.vim: Set w:ignore_non_ascii_chars only once 2025-03-03 16:38:59 +01:00
103355478b fzf.vim: Set filetype to hybrid vim + fzf
This way the Unicode characters are not highlighted. This hopefully
has no weird side-effects.
2025-03-03 16:38:59 +01:00
c348624a00 fzf.vim: Ignore more non-ASCII characters 2025-03-03 16:38:59 +01:00
6531800c4a markdown.vim: Don't set formatoptions
Automatic formatting is annoying and trailing whitespace is nothing I
want ever in my files.
2025-02-05 09:35:20 +01:00
2c55f45783 markdown.vim: Do not fold everything when loading 2025-02-05 09:35:18 +01:00
78917a686e vim:ftplug:man: Enable resizing with hard-wrapping
From :h :Man:

> when running `man` from the shell and with that `MANPAGER` [='nvim
> +Man!'] in your environment, `man` will pre-format the manpage using
> `groff`. Thus, Nvim will inevitably display the manual page as it was
> passed to it from stdin. One of the caveats of this is that the width
> will _always_ be hard-wrapped

Since I actually don't like `g:man_hardwrap=0`/`MANPAGER=999` (e.g.
scrolling can be a mess with very long wrapped lines), add an
autocommand that is meant to reload the manpage through `:edit` after
every resize, so that its hard-wrapping adjusts to the new size.

This is slightly hacky, but does its job quite well.

Move the man.vim into after/ftplugin so that it overwrites the `set
wrap` of the global ftplugin, which I want turned off, since it messes
with the buffer shortly when resizing.
2025-01-25 02:57:38 +01:00
467df52c66 vim:ftplug:man: Fix wrapping due to signcolumn
man(1) will assume it can use the full width of the terminal when
hard-wrapping the lines. When signcolumn is enabled the width is one
cell smaller and thus, lines that have a character in the last column
will be wrapped by vim (i.e. almost all of them).
2025-01-25 01:08:51 +01:00
c5463595c0 vim: Rename aesthetics.vim to looks.vim 2024-11-06 02:44:03 +01:00
965786d19a vim:ftplug:wiki: Fix completion with Tab 2024-11-06 02:37:06 +01:00
fc1e1bdd1e vim:ftplug:fugitiveblame: Disable cword highlighting 2024-11-04 13:22:33 +01:00
2a4812a740 vim:ftplug:qf: Disable spell checking 2024-10-30 13:12:53 +01:00
09f9ffbd8e vim:ftplug:gitcommit: Abbreviate buffer-locally
Abbreviate `cq` only in the current buffer (i.e. the commit message).
2024-10-18 16:13:36 +02:00
890c8526ee vim:ftplug:gitcommit: Abbreviate cq to %d | x 2024-10-18 16:13:36 +02:00
b61894fcc9 vim:ftplug:gitcommit:TODO: Adjust subject length limit 2024-10-16 14:57:38 +02:00
8a101134c7 vim:ftplug:fzf: Complete list of TUI Unicode chars
This excludes more characters than needed.

Fixes: 86af2da785 ("vim:ftplug:fzf:TODO: Look up other Unicode chars")
2024-10-14 11:56:28 +02:00
6a55f616cc vim:ftplug:fzf: Add another Unicode UI character
By the way: Apparently I committed the initial commit of fzf.vim and the
one adding the TODO accidentally together in 86af2da785
("vim:ftplug:fzf:TODO: Look up other Unicode chars").
2024-09-25 10:54:56 +02:00
86af2da785 vim:ftplug:fzf:TODO: Look up other Unicode chars 2024-09-21 00:53:23 +02:00
b299ea510f vim:ftplug:vimwiki: Copy markdown section folding 2024-09-21 00:33:24 +02:00
43bca5f51e vim:ftplug:md: Add ! to MdSectionFold definition 2024-09-21 00:30:40 +02:00
7ce2901078 vim:ftplug:tex: Escape underscores in macro-type 2023-07-16 13:12:18 +02:00
31a267a0e7 vim:wiki: Don't highlight any Unicode rxTableSep
Doesn't matter what character it is.
2023-07-08 02:08:30 +02:00
d27fe12d01 vim:wiki: Don't highlight vert. box drawing char 2023-07-08 02:05:28 +02:00
99d5e1ff21 vim:ftplug:tex: Do not open quickfix on warnings 2023-06-25 23:22:20 +02:00
a0825dac6a vim:ftplugin:tex: Remove options set by default
Quite a few things were obsolete because they were deprecated or already
set by default.
2023-06-24 18:20:03 +02:00
ed829f52e4 vim:plugs: Update vimtex v.2.8 -> v2.13
build_dir was deprecated for out_dir and aux_dir.
2023-06-24 18:18:12 +02:00
73529d673d vim:ftplugin:python: Change textwidth to 88 2023-06-23 23:14:56 +02:00
0ca1baec8c vim:ftplugin:c: Exclude - from 'iskeyword'
They don't work well together (e.g. pointer arrow).
2023-05-21 16:07:51 +02:00
e2a133a29b vim:ftplugin:markdown: Fold by sections 2023-02-13 16:50:50 +01:00
295f33e62c vim:ftplugin: Set options locally
I only want to set the wrap settings for the current buffer/window.
2023-02-13 16:43:30 +01:00
890464b8dd vim:ftplug:tex: Close quickfix window on movement
When continuous compiling on write, the quickfix window can be tedious
when it pops up every time containing errors that will be resolved in
the future or ignored.

Fix this by closing it as soon as the cursor is moved.
2023-01-11 21:42:43 +01:00
fdafdb6154 vim:ftplug:tex: Use tex_build as build directory 2023-01-11 21:42:42 +01:00
47150894c2 vim:ftplugin:markdown,tex: Turn on line-wrap 2022-12-12 11:24:19 +01:00
50640bc294 vim:ftplugin: Remove zsh.vim
zshOption has improved a lot and isn't even called like that anymore.
2022-10-09 19:51:03 +02:00
b63bbc391f vim:ftplugin:python: Set foldmethod locally 2022-07-12 21:00:05 +02:00
39df041443 vim:ftplugin:vim: Use local <buffer> autocmd
Fix the issue that the vim config would always be reloaded on save
(jumping to the BOF; another TODO) even in non `*.vim` buffers, after a
vim file was opened once in the session.

Fix this by defining the autocmd only local to the current buffer.

See also :help autocmd-buflocal
2022-07-12 21:00:04 +02:00
846d0fc6c6 gitmodules: Set foldmethod=expr per modeline
Fold away every submodule entry.

Add section headers.
2022-06-23 23:58:42 +02:00
a8e72814c0 vim:ftplugs: Auto format paragraphs in markdown
We'll see how this goes.
2022-03-30 14:01:01 +02:00
5df9e4d6ee zsh,vim: Add WIP Zettelkasten tooling
Add `zk`, an autoloadable function that creates a new zettel after a
template in the right directory.
Add `zettel` vim ftplugin.
2022-03-28 23:48:51 +02:00
dc76a341a0 vim:ftplugin: Adjust to new colorcolumn settings
Since
a98457e66b ("vim:autocmd: Adjust colorcolumn with &textwidth")
or correctly sine
fc0969abba ("vim: Drop textwidth autocmd for native way")
it is not necessary to add the `textwidth` manually to `colorcolumn`.
The colorcolumns are now also placed *behind* textwidth.
2022-03-28 23:42:22 +02:00
cdd727382c vim:ftplugin:python: Use indent as foldmethod 2022-01-03 01:23:56 +01:00
d4a5edab1a vim: Disable gutentags when editing git-rebase
I do not want the tags file to generate when doing simple git operations
that will not modify the project in itself.
2021-07-01 13:23:23 +02:00
6e3f5a96b3 vim: Disable gutentags when editing git-commits
Disable gutentags as it seems to regenerate the entire tags file when
editing git-commits, leading to a delay when exiting and a message from
git:
"Waiting for your editor to close the file..."
2021-06-30 12:35:57 +02:00