summaryrefslogtreecommitdiffstats
path: root/Docs/cmake-help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'Docs/cmake-help.vim')
-rw-r--r--Docs/cmake-help.vim21
1 files changed, 0 insertions, 21 deletions
diff --git a/Docs/cmake-help.vim b/Docs/cmake-help.vim
deleted file mode 100644
index 17cfa83..0000000
--- a/Docs/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>