From: Peng Li Date: Thu, 23 Jul 2015 05:40:19 +0000 (+0800) Subject: update to top X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=3c1631f21494d88e50fc25f7bc1c23f0ec434982;hp=88cfb3b972bc00b9d3fb95645c99bcb5e1c2be05;p=dotfiles.git update to top --- diff --git a/vim/vimrc b/vim/vimrc index 0ced4ca..70c6942 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -149,7 +149,7 @@ nmap = = nnoremap zz nnoremap zz -nnoremap +"nnoremap nnoremap nnoremap nnoremap gt @@ -463,15 +463,18 @@ map ee (easymotion-w) map el (easymotion-lineforward) map eh (easymotion-linebackward) +"" space for easymotion map n (easymotion-sn) map j (easymotion-j) map k (easymotion-k) map b (easymotion-b) map w (easymotion-w) -map e (easymotion-w) +"map e (easymotion-w) map l (easymotion-lineforward) map h (easymotion-linebackward) + + "" }}} " vim-latex --------------------------------------------------------------- {{{ "set grepprg=grep\ -nH\ $* @@ -507,7 +510,7 @@ autocmd FileType qf nnoremap q :q | setlocal nowrap | setl autocmd FileType help nnoremap q :q | vertical resize 85; autocmd FileType c,cpp setlocal foldmethod=syntax | \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") | - \ inoremap { {}kA | + \ inoremap { {}kA| \ nnoremap :let word=expand(""):wincmd o:vsp:exec("tag ". word)zzzr:wincmd w autocmd FileType python setlocal foldmethod=indent @@ -629,7 +632,7 @@ nnoremap \d :call DiffToggle() " }}} "nnoremap @=(foldlevel('.')?'za':"\") -nnoremap @=(foldlevel('.')?'za':"\") +"nnoremap @=(foldlevel('.')?'za':"\") "noremap d @=(&diff)?':diffoff':":VCSVimDiff" " https://bitbucket.org/sjl/dotfiles/src/tip/vim/vimrc diff --git a/zsh/zshrc b/zsh/zshrc index 518238f..8557823 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -211,3 +211,4 @@ export ZSHHOME="$HOME/.zsh" [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh alias emacs='TERM=xterm-256color emacs -nw' +alias tw='open -a /Applications/TextWrangler.app'