aboutsummaryrefslogtreecommitdiff
path: root/modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:36:29 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:36:29 -0200
commite573a7090239d4b5cdc0e2e1053433f6341fdba2 (patch)
treee53f5164bb3c37dcf8d2959e06b6e2b722170af0 /modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled
parentadce46f27ce9cd659581153ed7264dbabdc06c19 (diff)
downloaddotfiles-e573a7090239d4b5cdc0e2e1053433f6341fdba2.tar.gz
dotfiles-e573a7090239d4b5cdc0e2e1053433f6341fdba2.tar.bz2
Removing vim to convert it to a submodule
Diffstat (limited to 'modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled')
-rw-r--r--modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled36
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled b/modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled
deleted file mode 100644
index e9704f4..0000000
--- a/modules/vim/vim.dot.link/plugin/startshell_mapping.vim.disabled
+++ /dev/null
@@ -1,36 +0,0 @@
-"plugin from http://got-ravings.blogspot.com/2010/07/vim-pr0n-sample-nerd-tree-plugins.html
-"guard against sourcing the script twice
-if exists("g:loaded_nerdtree_start_shell_mapping")
- finish
-endif
-let g:loaded_nerdtree_start_shell_mapping = 1
-
-"bind 'S' to NERDTreeStartShell()
-call NERDTreeAddKeyMap({
- \ 'key': 'S',
- \ 'callback': 'NERDTreeStartShell',
- \ 'quickhelpText': 'start a :shell in this dir' })
-
-"change to the dir of the current node and start a :shell
-function! NERDTreeStartShell()
-
- "grab the currently selected dir node (returns
- "the parent dir if a file is selected)
- let n = g:NERDTreeDirNode.GetSelected()
-
- "save the cwd so we can restore it after the :shell exits
- let oldCWD = getcwd()
-
- try
-
- ":lcd to to the selected dir and :shell out
- exec 'lcd ' . n.path.str({'format': 'Cd'})
- redraw!
- shell
-
- "make sure we restore the cwd to its original state
- finally
- exec 'lcd ' . oldCWD
- endtry
-
-endfunction