mbbill / code_complete Goto Github PK
View Code? Open in Web Editor NEWFunction parameter complete, code snippets, and much more.
Function parameter complete, code snippets, and much more.
Hello Sorry If this is bad style this is really the first time I'm using git/vim scripts
but I was having trouble using the my Snippits to generate my own templates. I found that if I extended any of the current file type templates: '_','cpp','c' it worked fine by when I tried to add my own file type it didn't work. I looked through the code a little and noticed that the expand template function references a variable ft to determine if the opened file has a template associated with it but the ft wasn't referenced any where else in the code so I'm guessing the error has to do with the ft variable.
A quick hack I did to fix this for my self was to add an extra if statement like so:
if has_key(g:template['py'],a:cword)
let s:jumppos = line('.')
return "\<c-w>" . g:template['py'][a:cword]
endif
and then I could get my templates working for python files. I know its bad style to hardcode it like this but I haven't read vim script before so that was my best bet to trying to fix this problem.
Good luck!
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.