From f9a54f3aa05ccf50174fc9623bbc8debf3996d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Fri, 24 Jan 2025 16:39:23 +0100 Subject: [PATCH] Move the vim configuration to a directory within the XDG Base Directory Specification --- {.vim => .config/vim}/indent/c.vim | 0 {.vim => .config/vim}/indent/cpp.vim | 0 {.vim => .config/vim}/indent/css.vim | 0 {.vim => .config/vim}/indent/html.vim | 0 {.vim => .config/vim}/indent/javascript.vim | 0 {.vim => .config/vim}/indent/python.vim | 0 {.vim => .config/vim}/indent/rust.vim | 0 {.vim => .config/vim}/indent/sh.vim | 0 {.vim => .config/vim}/indent/sql.vim | 0 {.vim => .config/vim}/indent/vue.vim | 0 .vimrc => .config/vim/vimrc | 2 +- .gitignore | 2 -- README.md | 6 ++++++ 13 files changed, 7 insertions(+), 3 deletions(-) rename {.vim => .config/vim}/indent/c.vim (100%) rename {.vim => .config/vim}/indent/cpp.vim (100%) rename {.vim => .config/vim}/indent/css.vim (100%) rename {.vim => .config/vim}/indent/html.vim (100%) rename {.vim => .config/vim}/indent/javascript.vim (100%) rename {.vim => .config/vim}/indent/python.vim (100%) rename {.vim => .config/vim}/indent/rust.vim (100%) rename {.vim => .config/vim}/indent/sh.vim (100%) rename {.vim => .config/vim}/indent/sql.vim (100%) rename {.vim => .config/vim}/indent/vue.vim (100%) rename .vimrc => .config/vim/vimrc (98%) diff --git a/.vim/indent/c.vim b/.config/vim/indent/c.vim similarity index 100% rename from .vim/indent/c.vim rename to .config/vim/indent/c.vim diff --git a/.vim/indent/cpp.vim b/.config/vim/indent/cpp.vim similarity index 100% rename from .vim/indent/cpp.vim rename to .config/vim/indent/cpp.vim diff --git a/.vim/indent/css.vim b/.config/vim/indent/css.vim similarity index 100% rename from .vim/indent/css.vim rename to .config/vim/indent/css.vim diff --git a/.vim/indent/html.vim b/.config/vim/indent/html.vim similarity index 100% rename from .vim/indent/html.vim rename to .config/vim/indent/html.vim diff --git a/.vim/indent/javascript.vim b/.config/vim/indent/javascript.vim similarity index 100% rename from .vim/indent/javascript.vim rename to .config/vim/indent/javascript.vim diff --git a/.vim/indent/python.vim b/.config/vim/indent/python.vim similarity index 100% rename from .vim/indent/python.vim rename to .config/vim/indent/python.vim diff --git a/.vim/indent/rust.vim b/.config/vim/indent/rust.vim similarity index 100% rename from .vim/indent/rust.vim rename to .config/vim/indent/rust.vim diff --git a/.vim/indent/sh.vim b/.config/vim/indent/sh.vim similarity index 100% rename from .vim/indent/sh.vim rename to .config/vim/indent/sh.vim diff --git a/.vim/indent/sql.vim b/.config/vim/indent/sql.vim similarity index 100% rename from .vim/indent/sql.vim rename to .config/vim/indent/sql.vim diff --git a/.vim/indent/vue.vim b/.config/vim/indent/vue.vim similarity index 100% rename from .vim/indent/vue.vim rename to .config/vim/indent/vue.vim diff --git a/.vimrc b/.config/vim/vimrc similarity index 98% rename from .vimrc rename to .config/vim/vimrc index b1d88e4..ead4c44 100644 --- a/.vimrc +++ b/.config/vim/vimrc @@ -4,7 +4,7 @@ filetype off " Install all plugins: " $ vim +PlugInstall -call plug#begin('~/.vim/plugged') +call plug#begin('~/.local/vim/plugged') Plug 'bling/vim-airline' " Lean & mean status/tabline for vim that's light as air. Plug 'sjl/badwolf' " A Vim color scheme. Plug 'rust-lang/rust.vim' " Vim configuration for Rust. diff --git a/.gitignore b/.gitignore index 300d96d..e45ea76 100644 --- a/.gitignore +++ b/.gitignore @@ -9,8 +9,6 @@ __pycache__/ *$py.class # Vim -.vim/plugged/* -.vim/.netrwhist *.swp # Emacs diff --git a/README.md b/README.md index 95eafcd..dbed895 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,12 @@ yay -S cardpeek ## vim / neovim +Compatibility workaround for NeoVim: + +``` +ln -s .config/vim/vimrc .vimrc +``` + Plugins are managed by `vim-plug`, which is installed from the AUR. ``` sh