From d1507c7cdf7d572a106556db891b18fd874a4566 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 6 Jan 2024 09:31:03 -0500 Subject: [PATCH] Use .vimrc instead of .exrc. Also fix .ashrc. I have the entire Alpine Linux repository mirrored. I might as well use the fancy vi implementation. Syntax highlighting is kinda nice. --- .ashrc | 4 +++- .exrc | 8 -------- .vimrc | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) delete mode 100644 .exrc create mode 100644 .vimrc diff --git a/.ashrc b/.ashrc index da00576..4e5db3b 100644 --- a/.ashrc +++ b/.ashrc @@ -1,5 +1,7 @@ # If not running interactively, don't do anything -[[ $- != *i* ]] && return +if ! echo $- | grep 'i' > /dev/null; then + return +fi is_ssh() { if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ] || [ -n "$SSH_TTY" ]; then diff --git a/.exrc b/.exrc deleted file mode 100644 index 12721a1..0000000 --- a/.exrc +++ /dev/null @@ -1,8 +0,0 @@ -set autoindent -set number -set ruler -set tabstop=4 -set shiftwidth=4 -set showmatch -set exrc -set colorcolumn=72,80 diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..efedc42 --- /dev/null +++ b/.vimrc @@ -0,0 +1,15 @@ +" Supported by almost all vi implementations. +set autoindent +set number +set ruler +set tabstop=4 +set shiftwidth=4 +set expandtab +set showmatch +set exrc + +" Supported only by vim. If running a non-vim vi, remove all comments +" and everything below this line. +set syntax=on +set colorcolumn=72,80,100 +