From 3e2df5c6f2f97e1eac37a448b5fe5ad34d276649 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 25 Nov 2023 11:00:23 +0000 Subject: [PATCH] vimrc: import --- dotfiles/Makefile | 2 +- dotfiles/vimrc | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 dotfiles/vimrc diff --git a/dotfiles/Makefile b/dotfiles/Makefile index dcf640d..9f478bb 100644 --- a/dotfiles/Makefile +++ b/dotfiles/Makefile @@ -13,7 +13,7 @@ PREFIX= $(HOME) -FILES= Xdefaults gitconfig mg nexrc profile shrc tmux.conf xinitrc +FILES= Xdefaults gitconfig mg nexrc profile shrc tmux.conf vimrc xinitrc all: install diff --git a/dotfiles/vimrc b/dotfiles/vimrc new file mode 100644 index 0000000..7c755f1 --- /dev/null +++ b/dotfiles/vimrc @@ -0,0 +1,30 @@ +" env +" Written in 2023 by Lucas +" CC0 1.0 Universal/Public domain - No rights reserved +" +" To the extent possible under law, the author(s) have dedicated all +" copyright and related and neighboring rights to this software to the +" public domain worldwide. This software is distributed without any +" warranty. You should have received a copy of the CC0 Public Domain +" Dedication along with this software. If not, see +" . + +" Options from .nexrc. +set autoindent +set ignorecase smartcase +set nowrap +set ruler +set showmatch +set showmode +set wrapscan + +" VIM-specific options. +set backspace=eol,indent +set encoding=utf-8 +set rulerformat=%l,%v +set wildmode=list:longest +syntax off + +filetype on +autocmd FileType python setl expandtab shiftwidth=4 +autocmd FileType css,html,javascript,typescript,json,yaml,hcl,terraform setl expandtab shiftwidth=2