Skip to content

Instantly share code, notes, and snippets.

@xymox12
Last active December 16, 2015 20:19
Show Gist options
  • Save xymox12/5491850 to your computer and use it in GitHub Desktop.
Save xymox12/5491850 to your computer and use it in GitHub Desktop.
Config files for using eugeneching / consolas-powerline-vim Font and the new Powerline
{
"common": {
"term_truecolor": false,
"dividers": {
"left": {
"hard": "⮀ ",
"soft": "⮁ "
},
"right": {
"hard": " ⮂",
"soft": " ⮃"
}
},
"spaces": 1
},
"ext": {
"ipython": {
"colorscheme": "default",
"theme": "in",
"local_themes": {
"rewrite": "rewrite",
"out": "out",
"in2": "in2"
}
},
"shell": {
"colorscheme": "default",
"theme": "default"
},
"tmux": {
"colorscheme": "default",
"theme": "default"
},
"vim": {
"colorscheme": "default",
"theme": "default",
"local_themes": {
"cmdwin": "cmdwin",
"help": "help",
"quickfix": "quickfix"
}
},
"wm": {
"colorscheme": "default",
"theme": "default"
}
}
}

Glyphs for Consolas for Powerline

I couldn't get the Consolas font to build with FontForge, so I reverted to Eugeneching's great work on creating a font for the previous verion of Powerline. I am sure the is a simpler way - but this is what has worked (on the whole) for me with GVim Portable

Font and tools to help insert unicode characters

Use unicodeinput app to help insert the characters into your config files.

Vim default json

path: powerline\powerline\config_files\themes\vim\default.json

  • Git branch: U+2B60
  • Line number: U+2B6

Config json

path: powerline\powerline\config_files\config.json

###Dividers

  • Hard left: U+2B80
  • Soft left: U+2B81
  • Hard right: U+2B82
  • Soft right: U+2B83

Other characters in the font

  • F: U+2b62
  • T: U+2b63
  • Lock: U+2b64
{
"segment_data": {
"branch": {
"before": "⭠ "
},
"modified_indicator": {
"args": { "text": "+" }
},
"line_percent": {
"args": { "gradient": true },
"after": "%"
},
"line_current_symbol": {
"contents": "⭡ "
}
},
"segments": {
"left": [
{
"name": "mode",
"exclude_modes": ["nc"]
},
{
"name": "paste_indicator",
"exclude_modes": ["nc"],
"priority": 10
},
{
"name": "branch",
"exclude_modes": ["nc"],
"priority": 30
},
{
"name": "readonly_indicator",
"draw_soft_divider": false,
"after": " "
},
{
"name": "file_directory",
"priority": 40,
"draw_soft_divider": false
},
{
"name": "file_name",
"draw_soft_divider": false
},
{
"name": "file_vcs_status",
"before": " ",
"draw_soft_divider": false
},
{
"name": "modified_indicator",
"before": " "
},
{
"type": "string",
"highlight_group": ["background"],
"draw_soft_divider": false,
"draw_hard_divider": false,
"width": "auto"
}
],
"right": [
{
"name": "file_format",
"draw_soft_divider": false,
"exclude_modes": ["nc"],
"priority": 60
},
{
"name": "file_encoding",
"exclude_modes": ["nc"],
"priority": 60
},
{
"name": "file_type",
"exclude_modes": ["nc"],
"priority": 60
},
{
"name": "line_percent",
"priority": 50,
"width": 4,
"align": "r"
},
{
"type": "string",
"name": "line_current_symbol",
"highlight_group": ["line_current_symbol", "line_current"]
},
{
"name": "line_current",
"draw_soft_divider": false,
"width": 3,
"align": "r"
},
{
"name": "virtcol_current",
"draw_soft_divider": false,
"priority": 20,
"before": ":",
"width": 3,
"align": "l"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment