About: Quick reference of current function   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

To avoid the "Hit ENTER or type command to continue" message, I suggest that you'd better set your command line height to 2 or more, because many function definitions have a long width. Add this to your vimrc: Now, when you are editing a file, exit to normal mode, and type _F to see which is the current function. If you want to know or add some parameters followed by the definition, just type CTRL-O () to jump to the definition, and type `k can jump back. .cs, .pas, .c, .sql filetype is supported with this trick.

AttributesValues
rdfs:label
  • Quick reference of current function
rdfs:comment
  • To avoid the "Hit ENTER or type command to continue" message, I suggest that you'd better set your command line height to 2 or more, because many function definitions have a long width. Add this to your vimrc: Now, when you are editing a file, exit to normal mode, and type _F to see which is the current function. If you want to know or add some parameters followed by the definition, just type CTRL-O () to jump to the definition, and type `k can jump back. .cs, .pas, .c, .sql filetype is supported with this trick.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1084(xsd:integer)
Category
  • LanguageSpecific
Text
  • Taglist
Author
  • TonyLiu
Complexity
  • intermediate
Created
  • 2005(xsd:integer)
ID
  • 273(xsd:integer)
  • 1087(xsd:integer)
NEXT
  • 1088(xsd:integer)
Rating
  • 14(xsd:integer)
abstract
  • To avoid the "Hit ENTER or type command to continue" message, I suggest that you'd better set your command line height to 2 or more, because many function definitions have a long width. Add this to your vimrc: :set cmdheight=2 nmap _F :call CurrentFunc() " side effect: register k and mark k will be changed func! CurrentFunc() exec "normal mk" " c-type code have remarkable definitions from other OO code. let l:extension = expand("%:e") if l:extension == "c" exec "normal ][%b%b" else exec "?private\\|public\\|protected\\|procedure\\|function\\s\\+\.*(" endif "TODO: maybe you need to open your closed fold at first exec "normal v$\"ky`k" exec "echo @k" endfunc " CurrentFunc Now, when you are editing a file, exit to normal mode, and type _F to see which is the current function. If you want to know or add some parameters followed by the definition, just type CTRL-O () to jump to the definition, and type `k can jump back. .cs, .pas, .c, .sql filetype is supported with this trick.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software