Return to “General”

Post

Re: @JP: what VIM configration are you using?

#4
I was specifically interested in the nice status line. Thanks to google I already found some things. What I liked about the status line were those graphical like symbols.

My research led me to believe he's maybe using https://github.com/Lokaltog/powerline which is now a generic statusbar for vim, zsh, etc. which originated from https://github.com/Lokaltog/vim-powerline .

And then there's another spin off from vim-powerline (because it's development is basically discontinued) which is https://github.com/bling/vim-airline .

HTH :)
Post

Re: @JP: what VIM configration are you using?

#5
drLight wrote:Just watched the latest video and saw you using VIM :-)

I wondered what kind of configuration you where using, especially for the status line? Or, any other aspect you would like to share about it?

thx :-)
:) I use:

Droid Sans Mono 10

Custom Theme:

Code: Select all

" Maintainer:   Josh Parnell
" Version:      1.3
" Last Change:  3.23.2014

set background=dark
hi clear

if exists("syntax_on")
  syntax reset
endif

let colors_name = "space2"

" Vim >= 7.0 specific colors
if version >= 700
  hi CursorLine     guibg=#151515 gui=bold ctermbg=234
  hi CursorColumn   guibg=#151515 gui=bold ctermbg=234
  hi MatchParen     guifg=#d0ffc0 guibg=#151515 gui=bold ctermfg=157 ctermbg=237 cterm=bold
  hi Pmenu          guifg=#ffffff guibg=#151515 gui=bold ctermfg=255 ctermbg=238
  hi PmenuSel       guifg=#000000 guibg=#b1d631 gui=bold ctermfg=0   ctermbg=148
endif

" General colors
hi Cursor           gui=bold guifg=#151515 guibg=#ff5030 ctermbg=241
hi Normal           gui=bold guifg=#e2e2e5 guibg=#151515 ctermfg=253 ctermbg=234
hi NonText          gui=bold guifg=#808080 guibg=#151515 ctermfg=244 ctermbg=235
hi LineNr           gui=bold guifg=#383838 guibg=#151515 ctermfg=244 ctermbg=232
hi StatusLine       gui=bold guifg=#d3d3d5 guibg=#303030 ctermfg=253 ctermbg=238
hi StatusLineNC     gui=bold guifg=#939395 guibg=#303030 ctermfg=246 ctermbg=238
hi VertSplit        gui=bold guifg=#444444 guibg=#303030 ctermfg=238 ctermbg=238
hi Folded           gui=bold guibg=#384048 guifg=#a0a8b0 ctermbg=4   ctermfg=248
hi Title            gui=bold guifg=#f6f3e8 guibg=NONE    ctermfg=254 cterm=bold
hi Visual           gui=bold guifg=#faf4c6 guibg=#3c414c ctermfg=254 ctermbg=4
hi SpecialKey       gui=bold guifg=#808080 guibg=#343434 ctermfg=244 ctermbg=236

let c1 = '#2090d0'
let c2 = '#606060'
let c3 = '#ff5030'
let c4 = c1
let c5 = '#90c010'

" Syntax highlighting
exe "hi Boolean          gui=bold ctermfg=148 guifg=" . c1
exe "hi Identifier       gui=bold ctermfg=148 guifg=" . c1
exe "hi Special          gui=bold ctermfg=208 guifg=" . c1

exe "hi String           gui=bold ctermfg=148 guifg=" . c2
exe "hi Constant         gui=bold ctermfg=208 guifg=" . c2
exe "hi Number           gui=bold ctermfg=208 guifg=" . c2

exe "hi Statement        gui=bold ctermfg=103 guifg=" . c3
exe "hi PreProc          gui=bold ctermfg=230 guifg=" . c3

exe "hi Type             gui=bold ctermfg=103 guifg=" . c4

exe "hi Function         gui=bold ctermfg=255 guifg=" . c5
exe "hi Keyword          gui=bold ctermfg=208 guifg=" . c5

exe "hi Todo             gui=bold,underline guibg=#151515 guifg=#ff0000"
exe "hi Comment          gui=bold ctermfg=244 guifg=#505050"
Note the colors only work in gvim, I copied this and modified from another scheme, so the command-line colors aren't the same. I always use gvim :)

Powerline : https://github.com/Lokaltog/vim-powerline with modified color scheme to match the one given above :)
“Whether you think you can, or you think you can't--you're right.” ~ Henry Ford
Post

Re: @JP: what VIM configuration are you using?

#15
For those who would like to prepare self for LTSL coding I just created Docker image with vim and vim-airline installed.
I doesn't use vim-powerline because it requires additional Python package that will increase image size.

Do following steps to try it:
  1. Install Docker:

    Code: Select all

    sudo apt-get install docker.io
  2. Pull Docker image and run a container:

    Code: Select all

    sudo docker run -i -t --name my-vim-with-plugins -v <path_to_ltsl_scripts>:/home/dev/src haron/vim-with-plugins
    where <path_to_ltsl_scripts> is a path to the folder with LTSL scripts or folder with files you would like to edit
If you want to start container with bash prompt and not directly with vim you should do following:

Code: Select all

sudo docker run -i -t --name my-vim-with-plugins -v <path_to_ltsl_scripts>:/home/dev/src haron/vim-with-plugins /bin/bash
To start container created before (for example after computer restart) run:

Code: Select all

sudo docker start my-vim-with-plugins
To enter container you have exited before run:

Code: Select all

sudo docker attach my-vim-with-plugins
I didn't install font and theme mentioned by Josh but it looks similar.

Probably we should create Docker image for LTSL specifically (fonts+theme+syntax highlighting).

PS. Image now works not very correct (for example Ctrl+P combination doesn't work right now). I'm still working on configuration and if anyone will have some ideas or patches don't hesitate to send them to me.

Online Now

Users browsing this forum: No registered users and 12 guests

cron