aboutsummaryrefslogtreecommitdiffstats
path: root/os.vim
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2013-04-28 15:08:19 +0200
committerPeter Odding <peter@peterodding.com>2013-04-28 15:08:19 +0200
commita7ed49ed589cfe5f84bfeda317d03a874002e1a9 (patch)
treead03ea51d3b2d9154e630c19f3dc2d68f1ddfbd7 /os.vim
parenta744d4c5f0c6086251aab66ec68cb9299869b1e9 (diff)
downloadvim-easytags-a7ed49ed589cfe5f84bfeda317d03a874002e1a9.tar.gz
Change the repository layout to that of a proper Vim plug-in
Diffstat (limited to 'os.vim')
-rw-r--r--os.vim30
1 files changed, 0 insertions, 30 deletions
diff --git a/os.vim b/os.vim
deleted file mode 100644
index 451ca57..0000000
--- a/os.vim
+++ /dev/null
@@ -1,30 +0,0 @@
-" Vim auto-load script
-" Author: Peter Odding <peter@peterodding.com>
-" Last Change: November 24, 2011
-" URL: http://peterodding.com/code/vim/misc/
-
-let g:xolox#misc#os#version = '0.1'
-
-" Check whether Vim is running on Microsoft Windows.
-
-function! xolox#misc#os#is_win()
- return has('win16') || has('win32') || has('win64')
-endfunction
-
-" Execute an external command (hiding the console on Windows when possible).
-
-function! xolox#misc#os#exec(cmdline, ...)
- try
- " Try using my shell.vim plug-in.
- return call('xolox#shell#execute', [a:cmdline, 1] + a:000)
- catch /^Vim\%((\a\+)\)\=:E117/
- " Fall back to system() when we get an "unknown function" error.
- let output = call('system', [a:cmdline] + a:000)
- if v:shell_error
- throw printf("os.vim %s: Command %s failed: %s", g:xolox#misc#os#version, a:cmdline, xolox#misc#str#trim(output))
- endif
- return split(output, "\n")
- endtry
-endfunction
-
-" vim: ts=2 sw=2 et