vimrc: YCM only if python3 enabled
This commit is contained in:
@@ -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"}}
|
||||
|
||||
Reference in New Issue
Block a user