diff options
author | Teddy Wing | 2016-08-01 18:47:37 -0400 |
---|---|---|
committer | Teddy Wing | 2016-08-01 18:53:10 -0400 |
commit | 9ac192a643aed50382819e208073b26a25c81f69 (patch) | |
tree | 0b9f7f41b4a15817c7b9ca0eb80530e0233c3e9b /projects | |
parent | 00b2b0947c857cd16658bee1d7a977db73b29270 (diff) | |
download | dotvim-9ac192a643aed50382819e208073b26a25c81f69.tar.bz2 |
Add command to post mentor logs to The Firehose Project
It finally became tedious to have to manually execute my custom script
that posts a mentor log to The Firehose Project in a new shell. Create a
new command that will run the script directly within Vim so I don't have
to leave the editor.
Actual file paths are stored in `projects/file-paths.vim`.
Need to set the `BUNDLE_GEMFILE` so that the Ruby gems required by the
script get loaded.
The absolute path of the current file gets passed to the script for
posting.
Diffstat (limited to 'projects')
-rw-r--r-- | projects/the_firehose_project.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/the_firehose_project.vim b/projects/the_firehose_project.vim new file mode 100644 index 0000000..d04d008 --- /dev/null +++ b/projects/the_firehose_project.vim @@ -0,0 +1,2 @@ +" Post a mentor log +command! FirehosePostMentorLog execute "!BUNDLE_GEMFILE=$VIM_PROJECT_PATH_FIREHOSE_POST_A_MENTOR_SESSION/Gemfile bundle exec ruby $VIM_PROJECT_PATH_FIREHOSE_POST_A_MENTOR_SESSION/main.rb " . shellescape(expand('%:p')) |