mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 14:37:25 +01:00
Merge branch 'master' into jenipapo
This commit is contained in:
17
vimrc
17
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 <leader>aa :Ag<space>
|
||||
vnoremap <leader>aa y:Ag <c-r>"<cr>
|
||||
nnoremap <leader>AA :Ag <c-r><c-w><cr>
|
||||
nnoremap <leader>cc :Commits<cr>
|
||||
nnoremap <leader>hf :History<cr>
|
||||
nnoremap <leader>hc :History<cr>
|
||||
nnoremap <leader>h/ :History<cr>
|
||||
|
||||
"" minibufexpl
|
||||
map <Leader>t :MBEToggle<cr>
|
||||
@@ -303,6 +308,10 @@ let g:UltiSnipsExpandTrigger="<c-j>"
|
||||
let g:UltiSnipsJumpForwardTrigger="<c-j>"
|
||||
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
|
||||
|
||||
" markdown preview
|
||||
let g:instant_markdown_autostart = 0
|
||||
let g:instant_markdown_slow = 1
|
||||
nnoremap <leader>lp :InstantMarkdownPreview<CR>
|
||||
|
||||
" 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
|
||||
|
||||
6
zprofile
6
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
|
||||
|
||||
13
zshrc
13
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
|
||||
|
||||
Reference in New Issue
Block a user