Compare commits

...

2 Commits

3 changed files with 38 additions and 8 deletions

View File

@ -1,7 +1,11 @@
# Note: I use this file as ~/.editorconfig when something doesn't specify to
# be root before reaching ~, so this contains files not seen in this repo
root = true
# Defaults
[*]
# Future: https://github.com/editorconfig/editorconfig/issues/89
# Linux line endings, this repo/file is unlikely to be used in Windows
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
@ -9,7 +13,32 @@ charset = utf-8
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
indent_style = tab
indent_size = tab
# Opinionated affecting only display, better to not set
#tab_width =
# Windows line-endings for Windows
[*.{reg,bat,ahk}]
end_of_line = crlf
# Let's ensure *nix is lf although it comes from defaults
# above
[*.{bash,sh}]
end_of_line = lf
# Python https://peps.python.org/pep-0008/#indentation
[*.py]
indent_style = space
indent_size = 4
# YAML requires spaces
[*.{yaml,yml}]
indent_style = space
indent_size = 2
# Ruby
#[*.rb]
# Unofficial Ruby Style guide says two spaces, but Wikipedia says it doesn't
# matter so I am going accessibility first and having this commented
# https://rubystyle.guide/#spaces-indentation
#indent_style = space
#indent_size = 2

View File

@ -14,6 +14,7 @@ cat .mikaela/gitconfig > ~/.gitconfig
mkdir -p ~/.ssh
cat .mikaela/keys/authorized_keys > ~/.ssh/authorized_keys
cat etc/ssh/ssh_config > ~/.ssh/config
cat .editorconfig > ~/.editorconfig
touch ~/.MIKAELA_GREP
set +x
# vim : set ft=sh :

View File

@ -4,24 +4,24 @@ set nocompatible
" Show syntax colours
syntax on
set showcmd " Show (partial) command in status line.
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
"set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
source /etc/vim/vimrc.local
endif
set number " Show line numbers.
set number " Show line numbers.
set ruler " Show the line and column number of the cursor position,
" separated by a comma.
set ruler " Show the line and column number of the cursor position,
" separated by a comma.
set background=dark
@ -54,7 +54,7 @@ set visualbell
" gvim has light background
"if has('gui_running')
" set background=light
" set background=light
"endif
" Show hidden characters via
@ -69,7 +69,7 @@ set encoding=utf-8
set fileencoding=utf-8
" Remove BOMs. They broke things yesterday and now they wasted my time
" at school!
" at school!
" via https://techwelkin.com/how-to-remove-byte-order-mark-bom-characters
set nobomb