splice.vim / autoload / splice.py

import vim, os, sys


# Add the library to the Python path.
for p in vim.eval("&runtimepath").split(','):
    plugin_dir = os.path.join(p, "autoload")
    if os.path.exists(os.path.join(plugin_dir, "splicelib")):
       if plugin_dir not in sys.path:
          sys.path.append(plugin_dir)
       break


import splicelib.init as splice


# Wrapper functions ----------------------------------------------------------------

def SpliceInit():
    splice.init()


def SpliceOriginal():
    splice.modes.current_mode.key_original()

def SpliceOne():
    splice.modes.current_mode.key_one()

def SpliceTwo():
    splice.modes.current_mode.key_two()

def SpliceResult():
    splice.modes.current_mode.key_result()


def SpliceGrid():
    splice.modes.key_grid()

def SpliceLoupe():
    splice.modes.key_loupe()

def SpliceCompare():
    splice.modes.key_compare()

def SplicePath():
    splice.modes.key_path()


def SpliceDiff():
    splice.modes.current_mode.key_diff()

def SpliceDiffoff():
    splice.modes.current_mode.key_diffoff()

def SpliceScroll():
    splice.modes.current_mode.key_scrollbind()

def SpliceLayout():
    splice.modes.current_mode.key_layout()

def SpliceNext():
    splice.modes.current_mode.key_next()

def SplicePrev():
    splice.modes.current_mode.key_prev()

def SpliceUse():
    splice.modes.current_mode.key_use()

def SpliceUse1():
    splice.modes.current_mode.key_use1()

def SpliceUse2():
    splice.modes.current_mode.key_use2()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.