mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-07-26 00:17:21 +02:00
Compare commits
No commits in common. "e92d6d2f383f079d8721101072d301da5bec5616" and "e1aba0dc5fd8258cc439705cf7c04f18f27faf88" have entirely different histories.
e92d6d2f38
...
e1aba0dc5f
@ -1,15 +0,0 @@
|
||||
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
|
@ -1,4 +0,0 @@
|
||||
root = false
|
||||
|
||||
[*]
|
||||
end_of_line = crlf
|
@ -26,9 +26,7 @@ set $menu bemenu-run | xargs swaymsg exec --
|
||||
set $ScreenLockCmd swaylock -c 000000 -F -k -l -f
|
||||
|
||||
# Preferred graphical text editor
|
||||
#set $TEXTEDITOR pluma
|
||||
# Native .editorconfig support via KTextEditor
|
||||
set $TEXTEDITOR kate
|
||||
set $TEXTEDITOR pluma
|
||||
|
||||
# Font
|
||||
font pango:Noto Sans Mono Regular 10
|
||||
|
37
rc/vimrc
37
rc/vimrc
@ -30,10 +30,8 @@ set modeline
|
||||
|
||||
" These may be difficult with multiple languages especially if Vim already
|
||||
" 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
|
||||
" For accessibility tabs instead of spaces (uncomment for spaces instead of
|
||||
" tabs)
|
||||
"set expandtab
|
||||
|
||||
set autoindent
|
||||
@ -83,24 +81,23 @@ autocmd BufReadPost *
|
||||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
|
||||
" I think leaving line endings to git may be more safe
|
||||
" dos2unix ^M copied from https://stackoverflow.com/a/5361702/1675649
|
||||
"fun! Dos2unixFunction()
|
||||
" let _s=@/
|
||||
" let l = line(".")
|
||||
" let c = col(".")
|
||||
" try
|
||||
" set ff=unix
|
||||
" w!
|
||||
" "%s/\%x0d$//e
|
||||
" catch /E32:/
|
||||
" echo "Sorry, the file is not saved."
|
||||
" endtry
|
||||
" let @/=_s
|
||||
" call cursor(l, c)
|
||||
"endfun
|
||||
"com! Dos2Unix keepjumps call Dos2unixFunction()
|
||||
"au BufReadPost * keepjumps call Dos2unixFunction()
|
||||
fun! Dos2unixFunction()
|
||||
let _s=@/
|
||||
let l = line(".")
|
||||
let c = col(".")
|
||||
try
|
||||
set ff=unix
|
||||
w!
|
||||
"%s/\%x0d$//e
|
||||
catch /E32:/
|
||||
echo "Sorry, the file is not saved."
|
||||
endtry
|
||||
let @/=_s
|
||||
call cursor(l, c)
|
||||
endfun
|
||||
com! Dos2Unix keepjumps call Dos2unixFunction()
|
||||
au BufReadPost * keepjumps call Dos2unixFunction()
|
||||
|
||||
" Highlight all search results
|
||||
set hlsearch
|
||||
|
Loading…
x
Reference in New Issue
Block a user