From 713c32f3c0f364b5d6a4c91b2e7052c16116fe1c Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 3 Oct 2017 00:00:02 +0100 Subject: [PATCH] Adding new stuff --- .bash_aliases | 1 + .vimrc | 15 ++++++++++++++- .zshrc | 4 +++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 317b24c..ef9cd1f 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -30,6 +30,7 @@ alias svali_papka=download_github_folder alias omg="sudo service NetworkManager restart" alias zsh_fix="mv ~/.zsh_history ~/.zsh_history_bad; strings ~/.zsh_history_bad > ~/.zsh_history;fc -R ~/.zsh_history; rm ~/.zsh_history_bad" alias whatismyip="curl ifconfig.co" +alias rmswp="find ~/.vim/tmp/ -iname \"*swp\" -delete" function download_github_folder() { svn checkout $(echo $1 | sed "s/\/tree\/[a-zA-Z]\+/\/trunk/") diff --git a/.vimrc b/.vimrc index ea29e5e..0a99d42 100644 --- a/.vimrc +++ b/.vimrc @@ -4,6 +4,20 @@ " Load rename plugin so ~/.vim/Rename.vim +" let g:EclimCompletionMethod = 'omnifunc' +" Java Autocomplete +let g:acp_behaviorJavaEclimLength=3 +function MeetsForJavaEclim(context) + return g:acp_behaviorJavaEclimLength >= 0 && + \ a:context =~ '\k\.\k\{' . g:acp_behaviorJavaEclimLength . ',}$' +endfunction +let g:acp_behavior = { + \ 'java': [{ + \ 'command': "\\", + \ 'completefunc' : 'eclim#java#complete#CodeComplete', + \ 'meets' : 'MeetsForJavaEclim', + \ }] + \ } " Rezise splits "nnoremap :vertical resize -20 @@ -448,4 +462,3 @@ set matchtime=3 nnoremap :syntax sync fromstart autocmd FileType markdown syntax sync fromstart - diff --git a/.zshrc b/.zshrc index 07abbe1..c60034e 100644 --- a/.zshrc +++ b/.zshrc @@ -61,6 +61,7 @@ HIST_STAMPS="dd.mm.yyyy" plugins=() source $ZSH/oh-my-zsh.sh +tmux source-file /home/viktor/.tmux.conf # User configuration @@ -103,6 +104,7 @@ j () { # . ~/.bash_completion +# Slows down shell. # source $ZSH/custom/plugins/zsh-git-prompt/zshrc.sh @@ -126,4 +128,4 @@ eval "$(pyenv init -)" export VIRTUALENVWRAPPER_PYTHON=python export WORKON_HOME=$HOME/.virtualenvs -source /usr/local/bin/virtualenvwrapper.sh +# source /usr/local/bin/virtualenvwrapper.sh