Internationa1 / write-as.vim

A simple VIM plugin that allows one to upload blogposts to write.as directly from the buffer.
Other
14 stars 3 forks source link

Support vim which is compiled with +python3 -python #1

Closed makyo closed 6 years ago

makyo commented 6 years ago

If vim is compiled with py3 and not py2, the plugin will fail to run because:

  1. has('python') is false
  2. python << EOF fails
  3. strings.join() is deprecated in py3

This branch addresses each of these in turn. Apologies for the s:hd hack; it's ugly but avoids duplicating the Python snippet.