mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-22 16:50:38 +01:00
Compare commits
2 Commits
e92d6d2f38
...
3f0aa79a32
Author | SHA1 | Date | |
---|---|---|---|
3f0aa79a32 | |||
6c3a27ffd4 |
@ -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
|
root = true
|
||||||
|
|
||||||
|
# Defaults
|
||||||
[*]
|
[*]
|
||||||
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
# 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
|
end_of_line = lf
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
@ -9,7 +13,32 @@ charset = utf-8
|
|||||||
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = tab
|
indent_size = tab
|
||||||
|
# Opinionated affecting only display, better to not set
|
||||||
#tab_width =
|
#tab_width =
|
||||||
|
|
||||||
|
# Windows line-endings for Windows
|
||||||
[*.{reg,bat,ahk}]
|
[*.{reg,bat,ahk}]
|
||||||
end_of_line = crlf
|
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
|
||||||
|
@ -14,6 +14,7 @@ cat .mikaela/gitconfig > ~/.gitconfig
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
cat .mikaela/keys/authorized_keys > ~/.ssh/authorized_keys
|
cat .mikaela/keys/authorized_keys > ~/.ssh/authorized_keys
|
||||||
cat etc/ssh/ssh_config > ~/.ssh/config
|
cat etc/ssh/ssh_config > ~/.ssh/config
|
||||||
|
cat .editorconfig > ~/.editorconfig
|
||||||
touch ~/.MIKAELA_GREP
|
touch ~/.MIKAELA_GREP
|
||||||
set +x
|
set +x
|
||||||
# vim : set ft=sh :
|
# vim : set ft=sh :
|
||||||
|
14
rc/vimrc
14
rc/vimrc
@ -4,24 +4,24 @@ set nocompatible
|
|||||||
" Show syntax colours
|
" Show syntax colours
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
set showcmd " Show (partial) command in status line.
|
set showcmd " Show (partial) command in status line.
|
||||||
set showmatch " Show matching brackets.
|
set showmatch " Show matching brackets.
|
||||||
set ignorecase " Do case insensitive matching
|
set ignorecase " Do case insensitive matching
|
||||||
set smartcase " Do smart case matching
|
set smartcase " Do smart case matching
|
||||||
"set incsearch " Incremental search
|
"set incsearch " Incremental search
|
||||||
set autowrite " Automatically save before commands like :next and :make
|
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)
|
"set mouse=a " Enable mouse usage (all modes)
|
||||||
|
|
||||||
" Source a global configuration file if available
|
" Source a global configuration file if available
|
||||||
if filereadable("/etc/vim/vimrc.local")
|
if filereadable("/etc/vim/vimrc.local")
|
||||||
source /etc/vim/vimrc.local
|
source /etc/vim/vimrc.local
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set number " Show line numbers.
|
set number " Show line numbers.
|
||||||
|
|
||||||
set ruler " Show the line and column number of the cursor position,
|
set ruler " Show the line and column number of the cursor position,
|
||||||
" separated by a comma.
|
" separated by a comma.
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ set visualbell
|
|||||||
|
|
||||||
" gvim has light background
|
" gvim has light background
|
||||||
"if has('gui_running')
|
"if has('gui_running')
|
||||||
" set background=light
|
" set background=light
|
||||||
"endif
|
"endif
|
||||||
|
|
||||||
" Show hidden characters via
|
" Show hidden characters via
|
||||||
|
Loading…
x
Reference in New Issue
Block a user