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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user