Subdomain Posts
Recent Posts
None | 1 sec ago
None | 23 sec ago
C# | 35 sec ago
None | 42 sec ago
None | 48 sec ago
Delphi | 52 sec ago
C# | 1 min ago
FreeBasic | 1 min ago
None | 1 min ago
None | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Dick Moores on the 23rd of Aug 2008 09:03:21 AM Download | Raw | Embed | Report
  1. "From http://vim.wikia.com/wiki/Disable_F1_built-in_help_key
  2. inoremap <F1> <Esc>
  3. noremap <F1> :call SophHelp()<cr>
  4.  
  5. function! MapF1()
  6.   if buftype == "help"
  7.     exec 'quit'
  8.   else
  9.     exec 'help'
  10.   endif
  11. endfunction
  12.  
  13. function! SophHelp()
  14.   if &buftype=="help" && match( strpart( getline("."), col(".")-1,1), "\\S")<0
  15.     bw
  16.   else
  17.     try
  18.       exec "help ".expand("<cWORD>")
  19.     catch /:E149:/
  20.       exec "help ".expand("<cword>")
  21.     endtry
  22.   endif
  23. endfunc
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: