summaryrefslogtreecommitdiffstats
path: root/Auxiliary/cmake-help.vim
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-17 13:07:21 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-17 13:11:13 (GMT)
commitf21a823598c672efd73de09b826acaeba231946c (patch)
tree177c8837f5524193073b1529b7d60aa7c3c9922b /Auxiliary/cmake-help.vim
parent0966f1c5489591ba049b43f9e56a9f4e34778789 (diff)
downloadCMake-f21a823598c672efd73de09b826acaeba231946c.zip
CMake-f21a823598c672efd73de09b826acaeba231946c.tar.gz
CMake-f21a823598c672efd73de09b826acaeba231946c.tar.bz2
Aux: Drop vim files prior to import of third-party version
Diffstat (limited to 'Auxiliary/cmake-help.vim')
-rw-r--r--Auxiliary/cmake-help.vim21
1 files changed, 0 insertions, 21 deletions
diff --git a/Auxiliary/cmake-help.vim b/Auxiliary/cmake-help.vim
deleted file mode 100644
index 17cfa83..0000000
--- a/Auxiliary/cmake-help.vim
+++ /dev/null
@@ -1,21 +0,0 @@
-nmap ,hc :call OpenCmakeHelp()<CR>
-
-function! OpenCmakeHelp()
- let s = getline( '.' )
- let i = col( '.' ) - 1
- while i > 0 && strpart( s, i, 1 ) =~ '[A-Za-z0-9_]'
- let i = i - 1
- endwhile
- while i < col('$') && strpart( s, i, 1 ) !~ '[A-Za-z0-9_]'
- let i = i + 1
- endwhile
- let start = match( s, '[A-Za-z0-9_]\+', i )
- let end = matchend( s, '[A-Za-z0-9_]\+', i )
- let ident = strpart( s, start, end - start )
- execute "vertical new"
- execute "%!cmake --help-command ".ident
- set nomodified
- set readonly
-endfunction
-
-autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt,*.cmake.in nmap <F1> :call OpenCmakeHelp()<CR>