1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-22 16:03:50 +01:00
This commit is contained in:
Valentin Brandl 2017-05-12 14:20:02 +02:00
parent e76ae88dfb
commit 320b8f807e
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
3 changed files with 27 additions and 4 deletions

View File

@ -38,6 +38,9 @@ Plug 'sickill/vim-pasta' " context aware pasting
Plug 'junegunn/goyo.vim' " distraction free writing
Plug 'bronson/vim-trailing-whitespace' " highlight unwanted whitespaces
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
" Python
Plug 'davidhalter/jedi-vim', { 'for': 'python' } " python autocomplete
@ -55,7 +58,13 @@ function! BuildYCM(info)
endif
endfunction
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') }
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
endif
if has('vim')
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') }
endif
" Plug 'artur-shaik/vim-javacomplete2'

View File

@ -386,7 +386,7 @@ let g:notes_directories = ['~/Dokumente/Notes']
let g:polyglot_disabled = ['latex'] " disable latex in polyglot to use vimtex
" you complete me
let g:ycm_rust_src_path = '/usr/src/rust/src'
let g:ycm_rust_src_path = '~/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src'
let g:ycm_python_binary_path = 'python'
" " javacomplete2
@ -404,4 +404,8 @@ let g:ycm_python_binary_path = 'python'
" nmap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
" imap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
if has('nvim')
let g:deoplete#enable_at_startup = 1
endif
" vim: set filetype=vim ts=8 sw=2 tw=120 noet :

View File

@ -8,6 +8,7 @@ antigen bundle zsh-users/zsh-syntax-highlighting
# autosuggestions based on the history
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle git
antigen bundle gitignore
antigen bundle tmux
antigen bundle tmuxinator
# cargo autocomplete
@ -43,7 +44,7 @@ export JAVA_OPTS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true"
export EDITOR=/usr/bin/vim
# map vi to vim
alias vi=$EDITOR
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
@ -77,11 +78,20 @@ source /etc/profile.d/vte.sh
export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red
export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan
unsetopt autopushd
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$HOME/.rvm/bin:$PATH"
# export PATH=/home/me/.gem/ruby/2.4.0/bin:$PATH
# Linuxbrew
# export PATH="/home/me/.linuxbrew/bin:$PATH"
# export MANPATH="/home/me/.linuxbrew/share/man:$MANPATH"
# export INFOPATH="/home/me/.linuxbrew/share/info:$INFOPATH"
fpath=(~/.zsh/completions $fpath)
# vim: set filetype=zsh ts=4 sw=4 tw=0 et :