Skip to content

Instantly share code, notes, and snippets.

@t9md
Created April 17, 2017 08:53
Show Gist options
  • Save t9md/1e97b987d1a6303a28252e7047f9e926 to your computer and use it in GitHub Desktop.
Save t9md/1e97b987d1a6303a28252e7047f9e926 to your computer and use it in GitHub Desktop.
vim-load-time-with-editor
vmpFiles = [
"base.coffee"
"input.coffee"
"occurrence-manager.coffee"
"search-input.coffee"
"blockwise-selection.coffee"
"introspection.coffee"
"operation-stack.coffee"
"search-model.coffee"
"cursor-style-manager.coffee"
"main.coffee"
"operator-insert.coffee"
"select-list.coffee"
"developer.coffee"
"mark-manager.coffee"
"operator-transform-string.coffee"
"selection-wrapper.coffee"
"errors.coffee"
"misc-command.coffee"
"operator.coffee"
"settings.coffee"
"flash-manager.coffee"
"mode-manager.coffee"
"pair-finder.coffee"
"status-bar-manager.coffee"
"global-state.coffee"
"motion-search.coffee"
"persistent-selection-manager.coffee"
"text-object.coffee"
"highlight-search-manager.coffee"
"motion.coffee"
"register-manager.coffee"
"utils.coffee"
"hover-manager.coffee"
"mutation-manager.coffee"
"search-history-manager.coffee"
"vim-state.coffee"
]
openFilesSequencially = (files) ->
if files.length
file = files.shift()
filePath = atom.project.resolvePath("lib/" + file)
# console.log filePath
atom.workspace.open(filePath).then ->
openFilesSequencially(files)
fun = (arg) ->
openFilesSequencially(vmpFiles)
disposable?.dispose()
disposable = atom.commands.add 'atom-workspace',
'check-up': -> fun('up')
'check-down': -> fun('down')
'check-right': -> fun('right')
'check-left': -> fun('left')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment