From a11c6b48ee8e4e6c6f3711d387a8a8f25424551a Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 2 Jun 2015 20:28:19 +0100 Subject: handy function in zshrc --- nvimrc | 5 +++-- zshrc | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/nvimrc b/nvimrc index d815ca2..3f7744f 100644 --- a/nvimrc +++ b/nvimrc @@ -23,8 +23,8 @@ Plug 'kien/ctrlp.vim', { 'on' : 'CtrlP' } Plug 'LaTeX-Box-Team/latex-box', { 'for' : 'tex' } Plug 'majutsushi/tagbar' Plug 'mileszs/ack.vim', { 'on' : 'Ack' } -Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' } -Plug 'ryanss/vim-hackernews' +Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' , 'on' : 'YcmGenerateConfig' } +Plug 'ryanss/vim-hackernews', { 'on' : 'HackerNews' } Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'scrooloose/syntastic' Plug 'SirVer/ultisnips' @@ -277,3 +277,4 @@ augroup END "" Experimental let g:notes_directories = ['~/dotfiles/notes'] +" Idea: instant download colorscheme diff --git a/zshrc b/zshrc index 3974cc3..190dcbf 100644 --- a/zshrc +++ b/zshrc @@ -37,7 +37,7 @@ alias books='cd ~/Dropbox/phd/books' alias cdd='cd ~/dotfiles' alias papers='cd ~/Dropbox/phd/papers' alias report='cd ~/Dropbox/phd/reports/9\ months' -alias u='cd ~/Dropbox/phd/papers/spectral/code/finite' +alias u='cd ~/Dropbox/phd' alias uc='cd ~/Dropbox/phd/programs' alias ul='cd ~/Dropbox/phd/literature' alias up='cd ~/Dropbox/phd/presentations' @@ -90,3 +90,16 @@ crontab ~/.crontab TERM=xterm-256color [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh + + +fancy-ctrl-z () { + if [[ $#BUFFER -eq 0 ]]; then + BUFFER="fg" + zle accept-line + else + zle push-input + zle clear-screen + fi +} +zle -N fancy-ctrl-z +bindkey '^Z' fancy-ctrl-z -- cgit v1.2.3