-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vim setup and general style improvements.
- Loading branch information
1 parent
6ebece5
commit cbd2c9a
Showing
13 changed files
with
414 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
|
||
change-mode-for-execution() { | ||
chmod +x "$EXECUTABLE" | ||
# | ||
# Interface | ||
# | ||
|
||
bell() { | ||
local -r BELL_FILEPATH='/usr/share/sounds/freedesktop/stereo/complete.oga' | ||
2>&1 paplay --volume=41000 "${BELL_FILEPATH}" | ||
} | ||
|
||
wait_for_enter() { | ||
read -n 1 -s -r -p "Press any key to continue" | ||
printf "\r" | ||
} | ||
|
||
wait_for_user_intervention() { | ||
local -r msg="${*}" | ||
notify-send "$0" "${msg}" | ||
run_quiet bell | ||
wait_for_enter | ||
} | ||
|
||
# | ||
# OS management | ||
# | ||
|
||
ensure_directory_exists() { | ||
if [ ! -d "${1}" ]; then | ||
mkdir -p "${1}" | ||
fi | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
davidhalter jedi-vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
powerline fonts | ||
morhetz gruvbox | ||
flazz vim-colorschemes | ||
tpope vim-commentary | ||
tpope vim-dispatch | ||
tpope vim-fugitive | ||
takac vim-hardtime | ||
vim-syntastic syntastic | ||
scrooloose nerdtree | ||
vim-airline vim-airline | ||
vim-airline vim-airline | ||
jeffkreeftmeijer vim-numbertoggle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
|
||
if 'VIRTUAL_ENV' in os.environ: | ||
project_base_dir = os.environ['VIRTUAL_ENV'] | ||
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') | ||
|
||
exec(open(activate_this).read(), dict(__file__=activate_this)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
ensure_python_vim_directories_exist() { | ||
ensure_directory_exists "${VIM_CONFIG_DIR}/python" | ||
} | ||
|
||
copy_python_virtual_env_script() { | ||
cp "${PYTHON_DIR}/enable_virtual_env_autocomplete.py" \ | ||
"${VIM_CONFIG_DIR}/python" | ||
} | ||
|
||
ping_for_jedi_vim_setup() { | ||
local -r msg=$(echo 'User action needed: Run "git submodule' \ | ||
'update --init --recursive".') | ||
wait_for_user_intervention "${msg}" | ||
} | ||
|
Oops, something went wrong.