commit a80dcc58f5738a267a737cfa99af3bef80751235 (patch)
parent a3d24b76f6890a9529e9d802eabe41406468acf4
Author: Alex Karle <alex@karle.co>
Date: Sun, 14 Jun 2020 23:04:22 -0400
vi: Add more OpenBSD nvi settings
As stated in the comment, I use vi as my $EDITOR, which means I mostly
get thrown into it when I want to do a quick edit, or when I'm
interacting with another program (i.e. mutt, git, etc).
In these cases, I'm almost always writing prose, or doing quick code
edits, so I like to have hard wrapping at 72 characters (emails,
commits) and tabs expanded to spaces.
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/vi/exrc b/vi/exrc
@@ -1,4 +1,13 @@
+" .exrc -- For OpenBSD's nvi
+" Mostly used for quick edits or prose (emails, commit messages, etc)
+" So default to 72 hard wrapping and spaces over tabs
set ruler
set autoindent
set searchincr
set showmode
+set expandtab
+set shiftwidth=4
+set tabstop=4
+set wraplen=72
+
+map gg 1G