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.
This commit is contained in:
parent
15ccae62a3
commit
d1507c7cdf
3 changed files with 18 additions and 9 deletions
4
.ashrc
4
.ashrc
|
@ -1,5 +1,7 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
if ! echo $- | grep 'i' > /dev/null; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
is_ssh() {
|
is_ssh() {
|
||||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ] || [ -n "$SSH_TTY" ]; then
|
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ] || [ -n "$SSH_TTY" ]; then
|
||||||
|
|
8
.exrc
8
.exrc
|
@ -1,8 +0,0 @@
|
||||||
set autoindent
|
|
||||||
set number
|
|
||||||
set ruler
|
|
||||||
set tabstop=4
|
|
||||||
set shiftwidth=4
|
|
||||||
set showmatch
|
|
||||||
set exrc
|
|
||||||
set colorcolumn=72,80
|
|
15
.vimrc
Normal file
15
.vimrc
Normal file
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue