Compare commits

...

3 Commits

4 changed files with 30 additions and 2 deletions

View File

@ -8,6 +8,7 @@
- link:
~/.bashrc: bash/bashrc
~/.bash_profile: bash/profile
~/.config/git/attributes: git/attributes
~/.config/git/config: git/config
~/.config/git/ignore_global: git/ignore
~/.config/geany/keybindings.conf: geany/keybindings.conf

12
git/attributes Normal file
View File

@ -0,0 +1,12 @@
# Automatically normalize line endings for all text-based files
#* text=auto
# Documents
*.doc diff=pandoc
*.DOC diff=pandoc
*.docx diff=pandoc
*.DOCX diff=pandoc
*.odt diff=pandoc
*.ODT diff=pandoc
*.pdf diff=pdf
*.PDF diff=pdf

View File

@ -8,6 +8,7 @@
default = matching
[core]
excludesfile = ~/.config/git/ignore
attributesfile = ~/.config/git/attributes
[color]
ui = auto
[color "status"]
@ -20,7 +21,7 @@
[diff]
mnemonicPrefix = true
tool = vimdiff
[diff "rst"]
[diff "pandoc"]
textconv = pandoc --to=rst
[diff "pdf"]
textconv = pdf2txt
@ -31,5 +32,13 @@
lg = !"git lg1"
lga = !"git lg --all"
s = status --short
st = status
pushf = push --force-with-lease # Look mom, no --force
dif = diff
diffc = diff --cached
difc = diff --cached
alias = "! git config --get-regexp ^alias\\. "

View File

@ -31,6 +31,7 @@ if has("patch-7.4.710")
else
set listchars=tab:→\ ,nbsp:␣,trail:•,eol,precedes,extends
endif
set showbreak=\\
"Folding
"augroup vimrc
@ -39,10 +40,15 @@ endif
"augroup END
" search for visually hightlighted text
vnoremap <c-f> y<ESC>/<c-r>"<CR>
vnoremap <c-f> y<ESC>/<c-r>"<CR>
set grepprg=grep\ -nH\ $*
" Disable any mousing
if has("mouse")
set mouse=
endif
" Don't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"