aboutsummaryrefslogtreecommitdiff
path: root/vim/nerdtree_plugin/exec_menuitem.vim
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2013-06-05 09:34:53 -0500
committerBen Beltran <ben@freshout.us>2013-06-05 09:34:53 -0500
commite23d7a9f7363bdc69e95a1df31e093db15459fcf (patch)
treeca013667439bad6c4fc672b790c1a14d0d71566f /vim/nerdtree_plugin/exec_menuitem.vim
parent547f6d2a3743174ff385ba239665b5de1964a043 (diff)
A whole bunch of new additions to the submodules
Diffstat (limited to 'vim/nerdtree_plugin/exec_menuitem.vim')
-rw-r--r--vim/nerdtree_plugin/exec_menuitem.vim41
1 files changed, 0 insertions, 41 deletions
diff --git a/vim/nerdtree_plugin/exec_menuitem.vim b/vim/nerdtree_plugin/exec_menuitem.vim
deleted file mode 100644
index e7a7c53..0000000
--- a/vim/nerdtree_plugin/exec_menuitem.vim
+++ /dev/null
@@ -1,41 +0,0 @@
-" ============================================================================
-" File: exec_menuitem.vim
-" Description: plugin for NERD Tree that provides an execute file menu item
-" Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
-" Last Change: 22 July, 2009
-" License: This program is free software. It comes without any warranty,
-" to the extent permitted by applicable law. You can redistribute
-" it and/or modify it under the terms of the Do What The Fuck You
-" Want To Public License, Version 2, as published by Sam Hocevar.
-" See http://sam.zoy.org/wtfpl/COPYING for more details.
-"
-" ============================================================================
-if exists("g:loaded_nerdtree_exec_menuitem")
- finish
-endif
-let g:loaded_nerdtree_exec_menuitem = 1
-
-call NERDTreeAddMenuItem({
- \ 'text': '(!)Execute file',
- \ 'shortcut': '!',
- \ 'callback': 'NERDTreeExecFile',
- \ 'isActiveCallback': 'NERDTreeExecFileActive' })
-
-function! NERDTreeExecFileActive()
- let node = g:NERDTreeFileNode.GetSelected()
- return !node.path.isDirectory && node.path.isExecutable
-endfunction
-
-function! NERDTreeExecFile()
- let treenode = g:NERDTreeFileNode.GetSelected()
- echo "==========================================================\n"
- echo "Complete the command to execute (add arguments etc):\n"
- let cmd = treenode.path.str({'escape': 1})
- let cmd = input(':!', cmd . ' ')
-
- if cmd != ''
- exec ':!' . cmd
- else
- echo "Aborted"
- endif
-endfunction