Merge branch 'master' of gitosis@majnematic.com:davesdots

This commit is contained in:
David Alexander Majnemer 2009-04-12 04:55:01 -05:00
commit f9db9de880
3 changed files with 12 additions and 7 deletions

View file

@ -9,7 +9,7 @@ for dircolors in gdircolors dircolors ; do
done
# gimmie an editor, make it a nice vi clone
for EDITOR in vim elvis vile nvi vi ; do
for EDITOR in vimx vim elvis vile nvi vi ; do
( command -v $EDITOR >/dev/null 2>&1 ) && break
done
export EDITOR
@ -18,6 +18,11 @@ export EDITOR
FCEDIT=$EDITOR
export FCEDIT
# vimx -> vim
if [ "${EDITOR}" = vimx ] ; then
alias vim=vimx
fi
# aliases
alias cd..='cd ..'

10
vimrc
View file

@ -249,10 +249,12 @@ map Y y$
vmap K k
" :W and :Q are annoying
command! -nargs=0 -bang Q q<bang>
command! -nargs=0 -bang W w<bang>
command! -nargs=0 -bang WQ wq<bang>
command! -nargs=0 -bang Wq wq<bang>
if has('user_commands')
command! -nargs=0 -bang Q q<bang>
command! -nargs=0 -bang W w<bang>
command! -nargs=0 -bang WQ wq<bang>
command! -nargs=0 -bang Wq wq<bang>
endif
" just continue
nmap K K<cr>

View file

@ -41,8 +41,6 @@ case $TERM in
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
bindkey '\e[3~' delete-char
bindkey '\eOC' emacs-forward-word
bindkey '\eOD' emacs-backward-word
;;
*rxvt*|Eterm|aterm)
bindkey '\e[c' emacs-forward-word