aboutsummaryrefslogtreecommitdiffstats
path: root/os.vim
diff options
context:
space:
mode:
Diffstat (limited to 'os.vim')
-rw-r--r--os.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/os.vim b/os.vim
new file mode 100644
index 0000000..0852e2d
--- /dev/null
+++ b/os.vim
@@ -0,0 +1,12 @@
+" Vim auto-load script
+" Author: Peter Odding <peter@peterodding.com>
+" Last Change: March 15, 2011
+" URL: http://peterodding.com/code/vim/misc/
+
+" Check whether Vim is running on Microsoft Windows.
+
+function! xolox#misc#os#is_win()
+ return has('win16') || has('win32') || has('win64')
+endfunction
+
+" vim: ts=2 sw=2 et