Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mbbill/code_complete

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Created by: Ming Bai

Script type: Utility

Description

Demo

It shows what this script can do.

In insert mode, when you type <tab> (default value of g:completekey) after function name with a ( , function parameters will be append behind, use <tab> key again to switch between parameters.

This key is also used to complete code snippets.

Example:

press <tab> after function name and (

foo ( <tab>

becomes:

foo ( `<first param>`,`<second param>` )

press <tab> after code template

if <tab>

becomes:

if( `<...>` )
{
    `<...>`
}

Code Snippets

Custom snippet files can be used. The default file is my_snippets.vim and is loaded by default. To add more custom snippet files (see my_snippets.vim for the structure), use one of the following variables in your vimrc:

let g:user_defined_snippets = "snippets/custom_snippets.vim"
let g:user_defined_snippets = ["snippets/c_snippets.vim", "snippets/js_snippets.vim"]

About

Function parameter complete, code snippets, and much more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Morty Proxy This is a proxified and sanitized view of the page, visit original site.