Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Add vim_bridge as a submodule
Browse files Browse the repository at this point in the history
This allows me to use vim-rst-tables in virtualenvs.
  • Loading branch information
matthew-brett committed Dec 7, 2018
1 parent 39b14d6 commit ee62f9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ftplugin/vim_bridge"]
path = ftplugin/vim_bridge
url = https://github.com/nvie/vim_bridge
6 changes: 6 additions & 0 deletions ftplugin/rst_tables.vim
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ import vim
import sys
PY2 = sys.version_info[0] < 2

from os.path import dirname, join as pjoin

# get the directory this script is in: the vim_bridge python module should be installed there.
our_pth = dirname(vim.eval('expand("<sfile>")'))
sys.path.insert(0, pjoin(our_pth, 'vim_bridge'))

import re
import textwrap
import unicodedata
Expand Down
1 change: 1 addition & 0 deletions ftplugin/vim_bridge
Submodule vim_bridge added at 63076c

0 comments on commit ee62f9e

Please sign in to comment.