vimrc: YCM only if python3 enabled

This commit is contained in:
2023-05-17 11:29:50 +02:00
parent 144ea8b936
commit 5b12de7672
5 changed files with 24 additions and 8 deletions

View File

@@ -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"
}