Coder Social home page Coder Social logo

code_complete's People

Contributors

a3f avatar adah1972 avatar huhumt avatar mbbill avatar mzlogin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

code_complete's Issues

My Snippits Configuration Problem

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.