vim-scripts / showblockname.vim Goto Github PK
View Code? Open in Web Editor NEWShow the name of the code-block (e.g. function) the cursor is in on the cmd line
Home Page: http://www.vim.org/scripts/script.php?script_id=382
Show the name of the code-block (e.g. function) the cursor is in on the cmd line
Home Page: http://www.vim.org/scripts/script.php?script_id=382
This is a mirror of http://www.vim.org/scripts/script.php?script_id=382 Display the name of the current "block" the cursor is in in the command-line area (i.e., with vim's echo). A "block" is context-sensitive, (e.g., function name, variable name if in an initialization, type name if in a typedef, etc.) NOTE: The only languages with specific support as-is are vim scripts, Perl, and C. Support for other languages can be added by modifying the script with appropriate search patterns. Typical use (.vimrc): au CursorHold * call ShowBlockName('quiet') " Show the name of the function we're in on the message line; pnuemonic [[ map <silent> g[[ :call ShowBlockName()<CR> " Disable ShowBlockName (once); to prevent the CursorHold autocommand from " overwriting something in the command window (e.g., SyntaxAttr() output). map <silent> g]] :call ShowBlockName('OFF')<CR> " Tweak commands like [d so that they disable ShowBlockName so " it doesn't obliterate the output of this command. nnoremap [d :call ShowBlockName('[d')<CR> nnoremap [i :call ShowBlockName('[i')<CR> NOTE: This will NOT work if the start-of-block is the first line in a file. THIS SCRIPT USES ShowLine ( vimscript #381 )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.