I broke up with neovim....vim is my best friend now
This commit is contained in:
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
@@ -0,0 +1,11 @@
|
||||
import sys
|
||||
if sys.version_info < (3,):
|
||||
def u_encode(string):
|
||||
return string.encode('utf8')
|
||||
def u_decode(string):
|
||||
return string.decode('utf8')
|
||||
else:
|
||||
def u_encode(string):
|
||||
return string
|
||||
def u_decode(string):
|
||||
return string
|
||||
@@ -0,0 +1,17 @@
|
||||
import sys
|
||||
from string import Formatter
|
||||
|
||||
|
||||
if sys.version_info < (3,):
|
||||
VIM_PY_CALL = u':py'
|
||||
else:
|
||||
VIM_PY_CALL = u':py3'
|
||||
|
||||
|
||||
class NoneAsEmptyFormatter(Formatter):
|
||||
def get_value(self, key, args, kwargs):
|
||||
v = super().get_value(key, args, kwargs)
|
||||
return '' if v is None else v
|
||||
|
||||
|
||||
fmt = NoneAsEmptyFormatter()
|
||||
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
unicode
|
||||
except NameError:
|
||||
basestring = unicode = str
|
||||
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
from __builtin__ import xrange as range
|
||||
except:
|
||||
pass
|
||||
Reference in New Issue
Block a user