My vim settings
  • Vim script 76.2%
  • Python 15.1%
  • Shell 8.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-25 09:01:56 +00:00
.hooks Rename from tests/ to test/ 2026-08-03 13:35:25 +01:00
after Rename from tests/ to test/ 2026-08-03 13:35:25 +01:00
autoload Allow overwriting spellfiles with <Leader>s 2026-11-20 15:04:36 +00:00
bin Ignore color column in focus mode 2026-11-20 15:04:57 +00:00
doc/decisions Rename from tests/ to test/ 2026-08-03 13:35:25 +01:00
ftplugin Move the zizmor linter to the ale submodule 2026-09-30 01:26:33 +01:00
LICENSES Remove support for rst 2025-10-07 14:33:00 +01:00
pack Rebase ALE on latest upstream 2026-11-05 22:28:15 +00:00
syntax Hide more noise in focus mode 2025-11-30 10:41:06 +00:00
test Also remove the __pycache__ directory as well as its entries 2026-09-30 10:24:55 +01:00
.en.utf-8.add Move the Incus commands to a script 2025-10-05 08:39:56 +01:00
.gitignore Handle quotes in spectral output 2026-09-01 12:35:00 +01:00
.gitmodules Remove configuration for Svelte 2026-09-30 01:18:11 +01:00
.lintstagedrc.yaml Include the path inside each file 2025-10-08 12:15:27 +01:00
.prettierignore Run prettier on files in pack/vendored/ 2025-10-08 12:11:14 +01:00
.ruff.toml Add a configuration file for ruff 2025-10-08 12:11:14 +01:00
ansible.cfg Avoid an Ansible warning about interpreter discovery 2025-03-26 22:16:52 +00:00
filetype.vim Add known_large_files to filetype.vim 2026-09-30 01:27:46 +01:00
hosts Rely on default for ansible_python_interpreter 2025-01-07 22:28:19 +00:00
README.md Rename from tests/ to test/ 2026-08-03 13:35:25 +01:00
REUSE.toml Handle quotes in spectral output 2026-09-01 12:35:00 +01:00
site.yaml Remove unnecessary tasks 2026-09-30 10:27:23 +01:00
vimrc Simplify the assignment of s:list_settings 2026-10-12 07:48:00 +01:00

maxwell-k/vimfiles

Quick start on Fedora latest

Command to clone this repository and its sub-modules as ~/.vim:

git clone --recurse-submodules https://codeberg.org/maxwell-k/vimfiles.git ~/.vim

Command to install the appropriate system packages:

sudo dnf install --assumeyes vim-enhanced ansible nodejs fzf git uv

Command to run the playbook:

cd ~/.vim \
&& ansible-playbook site.yaml

Command to set up pre-commit hooks:

git -C ~/.vim config core.hooksPath ~/.vim/.hooks

Command to check everything is working:

test/run

Further details about testing are in test/README.md.

Supported operating systems

Regularly tested on Alpine Linux and Fedora. Infrequently tested on Debian, Ubuntu and Mac OS.

Contents

This repository contains about 1,300 lines of vim script accumulated since 2012. Much of it will not be of interest to anyone but the original author; a few "features" may be:

Decisions

  1. Testable in Linux containers
  2. Ansible playbook that does not use admin privileges
  3. Name the repository vimfiles

Testable in Linux containers manually

There are additional costs — time and resource — to setting up a continuous integration (CI) system. Codeberg, the solution I've chosen for git hosting, does not have a preferred CI system, only a beta for Woodpecker. There's a risk I'll implement one system and then, later I will need to implement another. Configuring a CI system is not time well spent right now. Today the costs or running CI outweigh the benefits.

Regularly running tests manually inside a Linux container ensures that tests pass on a fresh system install.

Ansible playbook that does not use admin privileges

A limited amount of user-specific configuration is in scope for this repository, so that it is more valuable independently.

It is helpful to store some configuration tasks, for example generating help tags, alongside the vim script. I prefer to use Ansible for configuration.

No configuration tasks stored in this repository should use administrator privileges. System configuration is out of scope for this repository.

Name the repository vimfiles

Vim help uses vimfiles as an alternative to .vim, see :help vimfiles. The string dotvim does is only incidentally mentioned in :help.

There's a comparable number of repositories on GitHub called dotvim and vimfiles. More are called dotvim, but better known authors use vimfiles.

Overall I prefer the name vimfiles.

Git configuration

This repository uses approximately twenty git sub-modules. It may be helpful to set git config diff.ignoreSubmodules dirty so that git status completes quickly.

Command to push changes:

git push [email protected]:maxwell-k/vimfiles.git

Running the test suite with Linux containers

Podman and Alpine Linux latest

Command to run the test suite using Podman and the alpine:latest image:

test/podman

Incus and Fedora Linux 43

Command to run the test suite using Incus and the images:fedora/43/cloud image:

test/incus

The script above will use Cloud-init to configure an Incus container before running the tests. The Cloud-init steps include installing packages and running the Ansible playbook site.yaml.

Command to follow Cloud-init output:

incus exec c1 -- tail -f /var/log/cloud-init-output.log