mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-22 08:40:37 +01:00
Compare commits
6 Commits
e1aba0dc5f
...
e92d6d2f38
Author | SHA1 | Date | |
---|---|---|---|
e92d6d2f38 | |||
9c3ce2dea0 | |||
40cba20ed4 | |||
ebab6a7829 | |||
1881c9b88f | |||
3098d286ef |
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
||||||
|
end_of_line = lf
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
charset = utf-8
|
||||||
|
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = tab
|
||||||
|
#tab_width =
|
||||||
|
|
||||||
|
[*.{reg,bat,ahk}]
|
||||||
|
end_of_line = crlf
|
4
Windows/.editorconfig
Normal file
4
Windows/.editorconfig
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
root = false
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = crlf
|
@ -26,7 +26,9 @@ set $menu bemenu-run | xargs swaymsg exec --
|
|||||||
set $ScreenLockCmd swaylock -c 000000 -F -k -l -f
|
set $ScreenLockCmd swaylock -c 000000 -F -k -l -f
|
||||||
|
|
||||||
# Preferred graphical text editor
|
# Preferred graphical text editor
|
||||||
set $TEXTEDITOR pluma
|
#set $TEXTEDITOR pluma
|
||||||
|
# Native .editorconfig support via KTextEditor
|
||||||
|
set $TEXTEDITOR kate
|
||||||
|
|
||||||
# Font
|
# Font
|
||||||
font pango:Noto Sans Mono Regular 10
|
font pango:Noto Sans Mono Regular 10
|
||||||
|
37
rc/vimrc
37
rc/vimrc
@ -30,8 +30,10 @@ set modeline
|
|||||||
|
|
||||||
" These may be difficult with multiple languages especially if Vim already
|
" These may be difficult with multiple languages especially if Vim already
|
||||||
" knows what to do
|
" knows what to do
|
||||||
"set tabstop=4 "four spaces is likely a tab
|
set tabstop=4 "four spaces is likely a tab
|
||||||
"set shiftwidth=4
|
"set shiftwidth=4
|
||||||
|
" For accessibility tabs instead of spaces (uncomment for spaces instead of
|
||||||
|
" tabs)
|
||||||
"set expandtab
|
"set expandtab
|
||||||
|
|
||||||
set autoindent
|
set autoindent
|
||||||
@ -81,23 +83,24 @@ autocmd BufReadPost *
|
|||||||
\ exe "normal! g`\"" |
|
\ exe "normal! g`\"" |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
|
" I think leaving line endings to git may be more safe
|
||||||
" dos2unix ^M copied from https://stackoverflow.com/a/5361702/1675649
|
" dos2unix ^M copied from https://stackoverflow.com/a/5361702/1675649
|
||||||
fun! Dos2unixFunction()
|
"fun! Dos2unixFunction()
|
||||||
let _s=@/
|
" let _s=@/
|
||||||
let l = line(".")
|
" let l = line(".")
|
||||||
let c = col(".")
|
" let c = col(".")
|
||||||
try
|
" try
|
||||||
set ff=unix
|
" set ff=unix
|
||||||
w!
|
" w!
|
||||||
"%s/\%x0d$//e
|
" "%s/\%x0d$//e
|
||||||
catch /E32:/
|
" catch /E32:/
|
||||||
echo "Sorry, the file is not saved."
|
" echo "Sorry, the file is not saved."
|
||||||
endtry
|
" endtry
|
||||||
let @/=_s
|
" let @/=_s
|
||||||
call cursor(l, c)
|
" call cursor(l, c)
|
||||||
endfun
|
"endfun
|
||||||
com! Dos2Unix keepjumps call Dos2unixFunction()
|
"com! Dos2Unix keepjumps call Dos2unixFunction()
|
||||||
au BufReadPost * keepjumps call Dos2unixFunction()
|
"au BufReadPost * keepjumps call Dos2unixFunction()
|
||||||
|
|
||||||
" Highlight all search results
|
" Highlight all search results
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user