Added git size command, extract now works with tar.xz. Vimperatorrc now auto-unmaps commands and <C-{b,w,d}> work

This commit is contained in:
Austen Adler 2014-07-23 19:19:52 -04:00
parent f76bb9c2af
commit 590f7546fe
4 changed files with 33 additions and 2 deletions

1
bashrc
View File

@ -121,6 +121,7 @@ function tsh(){
extract () { extract () {
if [ -f $1 ] ; then if [ -f $1 ] ; then
case $1 in case $1 in
*.tar.xz) tar xvf $1 ;;
*.tar.bz2) tar xvjf $1 ;; *.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;; *.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;; *.bz2) bunzip2 $1 ;;

View File

@ -15,6 +15,7 @@
dump = cat-file -p dump = cat-file -p
d = difftool d = difftool
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' - cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
size = "!git diff --cached --binary | wc -c | numfmt --to=iec-i"
[push] [push]
default = matching default = matching
[core] [core]

View File

@ -1,3 +1,28 @@
nunmap j
nunmap k
unmap J
unmap K
unmap <C-j>
unmap <C-k>
unmap gH
unmap gt
unmap gT
unmap Y
unmap !!
unmap <C-o>
unmap <C-i>
unmap G
unmap gg
unmap /
unmap a
unmap A
iunmap <C-L>
iunmap <C-H>
iunmap <C-b>
iunmap <C-w>
vunmap L
vunmap H
nnoremap j 6j nnoremap j 6j
nnoremap k 6k nnoremap k 6k
noremap J gt noremap J gt
@ -16,8 +41,11 @@ noremap gg mpgg<Esc>
noremap / mp/ noremap / mp/
noremap a A noremap a A
noremap A a noremap A a
inoremap L $ inoremap <C-L> <End>
inoremap H ^ inoremap <C-H> <Home>
inoremap <C-b> <C-Left>
inoremap <C-w> <C-Right>
inoremap <C-d><C-d> <Home><S-End><BS>
vnoremap L $ vnoremap L $
vnoremap H ^ vnoremap H ^
set animations=true set animations=true

1
vimrc
View File

@ -67,6 +67,7 @@ vnoremap j gj
vnoremap k gk vnoremap k gk
vnoremap H ^ vnoremap H ^
vnoremap L $h vnoremap L $h
vnoremap ; :
nnoremap gj j nnoremap gj j
nnoremap gk k nnoremap gk k
nnoremap j gj nnoremap j gj