" $Id: settings,v 1.6 2021/11/23 02:53:38 nanons Exp $
"
" Miscellaneous ex(1)/vi(1) settings
"
" There are many more settings available, for a full list see:
"
"	$ man -Otag=SET_OPTIONS vi

" Restrict access to external programs, tightening pledge(2) as well
" Can be very counter-productive depending on workflow
set secure

" Automatically indent new lines
" The insert-mode <control-D> binding can be used to delete autoindented
" tabs and spaces
set autoindent

" Jump over the first comment block in source files
set comment

" Use extended regular expressions (same as grep -E or sed -E)
set extended

" Make regular expressions in commands and searches case insensitive,
" unless there is an upper-case letter
set iclower

" Show line numbers
set number

" Number of lines that need to be changed in one command to cause an
" informative message to be displayed at the bottom
set report=1

" Display a row and column indicator on the bottom line
set ruler

" Enable search-as-you-type
set searchincr

" Briefly jump the cursor to a matching bracket/parenthesis when typing
set showmatch matchtime=1

" Display the current mode on the bottom right, and an asterisk
" indicating if the file has been modified
set showmode

" Make the ~ command (which changes the case of a letter) take a motion
" such as the d command
" For example, this allows typing ~G to toggle the case of letters from
" the cursor position to the end of the file, or ~~ to toggle the case
" of the currrent line.
set tildeop

" Display more error messages and beep less
set verbose

" Automatically wrap lines 5 columns from the right of the screen
set wrapmargin=5
