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 () {
if [ -f $1 ] ; then
case $1 in
*.tar.xz) tar xvf $1 ;;
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;

View File

@ -15,6 +15,7 @@
dump = cat-file -p
d = difftool
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]
default = matching
[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 k 6k
noremap J gt
@ -16,8 +41,11 @@ noremap gg mpgg<Esc>
noremap / mp/
noremap a A
noremap A a
inoremap L $
inoremap H ^
inoremap <C-L> <End>
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 H ^
set animations=true

1
vimrc
View File

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