diff --git a/bashrc b/bashrc index b98c6a8..079f893 100644 --- a/bashrc +++ b/bashrc @@ -101,14 +101,14 @@ alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git function mcl(){ mkdir "$@"&&cl "$@"; } function cl(){ cd "$@" && ls; } function k(){ + echo "$@" if [ -d "$@" ] ; then cd "$@" && ls + elif [ "$@" == "-" ] ; then + cd - && ls else vim "$@" fi - #elif [ -f "$@" ] ; then - # vim "$@" - #fi } complete -f k function ovim(){ vim +"SessionOpen $@"; } diff --git a/vimrc b/vimrc index 2542380..998c69f 100644 --- a/vimrc +++ b/vimrc @@ -97,6 +97,7 @@ inoremap <> <> inoremap {} {}O inoremap {% {% %} inoremap [] [] +inoremap ;;; A inoremap ;; m`A;``a inoremap ;; A;o nnoremap ;; m"A;`"