diff --git a/vimrc b/vimrc index ca88472..2f681ed 100644 --- a/vimrc +++ b/vimrc @@ -50,6 +50,11 @@ Plug 'sheerun/vim-polyglot' Plug 'christoomey/vim-tmux-navigator' +" Investigate on custom text object, seems really usefull +" Plug 'kana/vim-textobj-user' +" Plug 'jceb/vim-textobj-uri' | Plug 'kana/vim-textobj-user' +" Plug 'kana/vim-textobj-indent' | Plug 'kana/vim-textobj-user' + call plug#end() " }}} @@ -70,8 +75,6 @@ set noswapfile set mouse=a set mousehide -set path+=** - set wildmode=list:longest,full set wildmenu set wildignore+=*.swp,*.bak,*.jpg,*.gif,*.png,*.git, @@ -121,7 +124,6 @@ set nojoinspaces " Folding {{{ set foldmethod=indent -set foldlevelstart=10 " }}} " Diff settings {{{ @@ -270,6 +272,9 @@ nnoremap aa :Ag vnoremap aa y:Ag " nnoremap AA :Ag nnoremap cc :Commits +nnoremap hf :History +nnoremap hc :History +nnoremap h/ :History "" minibufexpl map t :MBEToggle @@ -303,6 +308,10 @@ let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" +" markdown preview +let g:instant_markdown_autostart = 0 +let g:instant_markdown_slow = 1 +nnoremap lp :InstantMarkdownPreview " Tex let g:tex_flavor = "latex" @@ -326,7 +335,7 @@ augroup END "" txt, mail, tex augroup text autocmd! - autocmd FileType text,markdown,mail,tex set wrap wm=2 textwidth=78 nocindent spell + autocmd FileType text,markdown,mail,tex set wrap wm=2 nocindent spell augroup END "" Python diff --git a/zprofile b/zprofile index ed3d911..698c902 100644 --- a/zprofile +++ b/zprofile @@ -30,3 +30,9 @@ case $OSTYPE in export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools ;; esac + +case $HOSTNAME in + "cassiopeia.uberspace.de" ) + export PATH=/package/host/localhost/nodejs-6/bin:$PATH + ;; +esac diff --git a/zshrc b/zshrc index 22649ca..e4f7767 100644 --- a/zshrc +++ b/zshrc @@ -25,12 +25,24 @@ setopt auto_cd setopt multios setopt cdablevars + +######################## +# vi mode +######################## +bindkey -v +zle -N edit-command-line +autoload -Uz edit-command-line +bindkey -M vicmd 'v' edit-command-line + ######################## # Aliases ######################## alias _=sudo alias g=git alias nohist='unset HISTFILE' + +alias reset='reset && base16_gruvbox-dark-medium' + alias ta='tmux attach -t' alias ts='tmux new-session -s' alias tl='tmux list-sessions' @@ -56,7 +68,6 @@ alias ls='ls --color=tty' # keybindings -bindkey -v export KEYTIMEOUT=1 # prevent 2*ESC-i insert-mode switch failure