vimrc: YCM only if python3 enabled
This commit is contained in:
@@ -43,7 +43,7 @@ source_existing ~/.bash_prompt.kuba
|
||||
source_existing ~/.python-venv.kuba/bin/activate
|
||||
|
||||
if command -v ipython &> /dev/null; then
|
||||
alias p=ipython
|
||||
alias p=ipython --pylab
|
||||
elif command -v python &> /dev/null; then
|
||||
alias p=python
|
||||
fi
|
||||
|
||||
@@ -108,3 +108,18 @@ pdftoclipboard() {
|
||||
|
||||
pdftoppm -png -r "$dpi" "$file" | xclip -sel clip -t image/png -i
|
||||
}
|
||||
|
||||
gitgrepsed() {
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage gitgrepsed SEARCH REPLACE
|
||||
|
||||
Search and replace in git repository.
|
||||
Alias for git grep -l \$SEARCH | xargs sed -i "s/\$SEARCH/\$REPLACE/g"
|
||||
"
|
||||
return
|
||||
fi
|
||||
|
||||
search="$1"
|
||||
replace="$2"
|
||||
git grep -l "$search" | xargs sed -i "s/$search/$replace/g"
|
||||
}
|
||||
|
||||
@@ -7,5 +7,6 @@ local loadscript = pathJoin(path, '.' .. myModuleName() .. '.sh');
|
||||
|
||||
execute{cmd='source ' .. loadscript, modeA={"load"}}
|
||||
execute{cmd='unset -f npz_preview npz_previewi ' ..
|
||||
'rsync_wrap rsync_wrap_huge selc selv cliipc clipv watch_modify pdftoclipboard' ..
|
||||
'rsync_wrap rsync_wrap_huge selc selv cliipc clipv watch_modify pdftoclipboard gitgrepsed' ..
|
||||
'rsync_wrap rsync_wrap_huge selc selv cliipc clipv watch_modify' ..
|
||||
';', modeA={"unload"}}
|
||||
|
||||
@@ -15,13 +15,8 @@ Host aino
|
||||
User jakub
|
||||
Port 22209
|
||||
|
||||
Host tahoe
|
||||
HostName tahoe.fy.chalmers.se
|
||||
User jakub
|
||||
Port 22209
|
||||
|
||||
Host sharknado
|
||||
HostName 130.239.81.182
|
||||
HostName 130.238.29.144
|
||||
User ubuntu
|
||||
IdentityFile ~/.ssh/jupyterhub_rsa
|
||||
|
||||
|
||||
5
.vimrc
5
.vimrc
@@ -36,6 +36,7 @@ if filereadable(expand(vundle_dir) . "/README.md")
|
||||
Plugin 'tell-k/vim-autopep8'
|
||||
Plugin 'jpalardy/vim-slime'
|
||||
Plugin 'preservim/tagbar'
|
||||
Plugin 'wellle/context.vim'
|
||||
|
||||
call vundle#end() " required
|
||||
else
|
||||
@@ -343,6 +344,10 @@ nmap <F2> :NERDTreeToggle<CR>
|
||||
nmap <F3> :NERDTreeFind<CR>
|
||||
map <F5> :call CurtineIncSw()<CR>
|
||||
|
||||
let g:context_enabled = 0
|
||||
map <F6> :ContextToggle<CR>
|
||||
map cp :ContextPeek<CR>
|
||||
|
||||
" Julialang
|
||||
let g:latex_to_unicode_auto = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user