Skip to content

Commit

Permalink
add vim.sh in unix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwu committed Mar 5, 2015
1 parent f208be9 commit 47bfe38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unix/vim.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cwd=$(pwd)
escape_cwd=$(printf "%q" "$(pwd)")
vim \
-u "${cwd}/.vimrc" \
--cmd "let g:exvim_custom_path='${cwd}'" \
--cmd "set runtimepath=${escape_cwd}/vimfiles,\$VIMRUNTIME,${escape_cwd}/vimfiles/after" \
${1:+"$@"}

0 comments on commit 47bfe38

Please sign in to comment.