Fix some issues with the statusline and update the colourscheme

This commit is contained in:
Kevin MacMartin 2014-12-01 00:31:28 -05:00
parent bc1ffa5b33
commit 1f10a4bd20
4 changed files with 46 additions and 42 deletions

View file

@ -52,7 +52,7 @@ endif
autocmd BufEnter,FileType help* setlocal nocursorline "remove the horizontal cursor line autocmd BufEnter,FileType help* setlocal nocursorline "remove the horizontal cursor line
"load help in an 80 char vertical split if the window is wider than 140 characters, otherwise load horizontally at 33% of the height "load help in an 80 char vertical split if the window is wider than 140 characters, otherwise load horizontally at 33% of the height
autocmd BufEnter,FileType help* if &columns >= 140|wincmd L|vertical resize 80|else|wincmd j|sp|wincmd =|q|wincmd k|endif autocmd BufEnter,FileType help* if (&columns >= 140)|wincmd L|vertical resize 80|else|wincmd j|sp|wincmd =|q|wincmd k|endif
"settings for buffers in diff mode "settings for buffers in diff mode
autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif

View file

@ -174,7 +174,7 @@
" <Ctrl-Y> | (I) -> paste what's been cut during input " <Ctrl-Y> | (I) -> paste what's been cut during input
" "
" (autocompletion) " (autocompletion)
" <Ctrl-m>, | (A) -> enter after emmet 'word' (ie: html:5) " <Alt-m>, | (A) -> enter after emmet 'word' (ie: html:5)
" <Enter> | (I) -> (neocomp) close the popup and <Enter> " <Enter> | (I) -> (neocomp) close the popup and <Enter>
" <Tab> | (I) -> (neocomp) select/cycle popup completion " <Tab> | (I) -> (neocomp) select/cycle popup completion
" <Backspace> | (I) -> (neocomp) close the popup and <Backspace> " <Backspace> | (I) -> (neocomp) close the popup and <Backspace>

View file

@ -17,6 +17,9 @@
" licensed with the MIT license. " licensed with the MIT license.
" "
"use utf-8 encoding to load the script as it contains utf-8 characters
scriptencoding utf-8
"INITIALIZE PLUGINS: {{{ "INITIALIZE PLUGINS: {{{
"create missing plugin config files and directories "create missing plugin config files and directories
if exists('*mkdir')|if !isdirectory(glob("~/.vim/tags_by_filetype"))|call mkdir(glob("~/.vim/tags_by_filetype"),'p')|endif|endif if exists('*mkdir')|if !isdirectory(glob("~/.vim/tags_by_filetype"))|call mkdir(glob("~/.vim/tags_by_filetype"),'p')|endif|endif
@ -58,6 +61,7 @@
let g:user_emmet_install_global=0 let g:user_emmet_install_global=0
let g:use_emmet_complete_tag=1 let g:use_emmet_complete_tag=1
let g:user_emmet_mode='a' let g:user_emmet_mode='a'
let g:user_emmet_leader_key='<A-m>'
autocmd FileType aspnet,html,xhtml,php,css,javascript,json EmmetInstall autocmd FileType aspnet,html,xhtml,php,css,javascript,json EmmetInstall
@ -286,7 +290,7 @@
endfunction endfunction
function! LLReadonly() function! LLReadonly()
return &ft !~? 'help' && &readonly ? 'RO' : '' return &ft !~? 'help' && &readonly ? '🔒' : ''
endfunction endfunction
function! LLFilename() function! LLFilename()
@ -320,7 +324,7 @@
endfunction endfunction
function! LLFiletype() function! LLFiletype()
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : '' return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'none') : ''
endfunction endfunction
function! LLFileencoding() function! LLFileencoding()
@ -414,38 +418,37 @@
endif endif
"ligtline theme {{{ "ligtline theme {{{
let s:base3 = '#eaeaea' let s:base0 = '#262626'
let s:base23 = '#d0d0d0' let s:base1 = '#303030'
let s:base2 = '#c6c6c6' let s:base2 = '#767676'
let s:base1 = '#b2b2b2' let s:base3 = '#949494'
let s:base0 = '#949494' let s:base4 = '#b2b2b2'
let s:base00 = '#767676' let s:base5 = '#c6c6c6'
let s:base01 = '#606060' let s:base6 = '#eaeaea'
let s:base02 = '#4e4e4e'
let s:base023 = '#303030' let s:rcol = '#d75f5f'
let s:darkblue = '#005fff' let s:ycol = '#ffd787'
let s:red = '#d75f5f' let s:bcol = '#87d7ff'
let s:orange = '#ffaf00'
let s:yellow = '#ffd787'
let s:green = '#5faf00'
let s:cyan = '#d7ffff'
let s:blue = '#87d7ff'
let s:p = {'normal':{},'inactive':{},'insert':{},'replace':{},'visual':{},'tabline':{}} let s:p = {'normal':{},'inactive':{},'insert':{},'replace':{},'visual':{},'tabline':{}}
let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ]
let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ] let s:p.normal.left = [[ s:bcol,s:base1 ],[ s:base6,s:base0 ]]
let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] let s:p.normal.right = [[ s:base1,s:base4 ],[ s:base6,s:base0 ]]
let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:darkblue ] ] let s:p.inactive.left = [[ s:base6,s:base0 ],[ s:base4,s:base1 ]]
let s:p.insert.left = [ [ s:base023, s:red ], [ s:base3, s:base01 ] ] let s:p.inactive.right = [[ s:base1,s:base4 ],[ s:base6,s:base0 ]]
let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ] let s:p.insert.left = [[ s:rcol,s:base1 ],[ s:base6,s:base0 ]]
let s:p.visual.left = [ [ s:base023, s:yellow ], [ s:base3, s:base01 ] ] let s:p.replace.left = [[ s:base1,s:rcol ],[ s:base6,s:base0 ]]
let s:p.normal.middle = [ [ s:base1, s:base02 ] ] let s:p.visual.left = [[ s:ycol,s:base1 ],[ s:base6,s:base0 ]]
let s:p.inactive.abmiddle = [ [ s:base0, s:base02 ] ]
let s:p.tabline.left = [ [ s:base2, s:base01 ] ] let s:p.normal.middle = [[ s:base4,s:base1 ]]
let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ] let s:p.inactive.abmiddle = [[ s:base3,s:base1 ]]
let s:p.tabline.middle = [ [ s:base01, s:base1 ] ] let s:p.tabline.left = [[ s:base5,s:base0 ]]
let s:p.tabline.tabsel = [[ s:base5,s:base1 ]]
let s:p.tabline.middle = [[ s:base0,s:base4 ]]
let s:p.tabline.right = copy(s:p.normal.right) let s:p.tabline.right = copy(s:p.normal.right)
let s:p.normal.error = [ [ s:red, s:base023 ] ] let s:p.normal.error = [[ s:rcol,s:base1 ]]
let s:p.normal.warning = [ [ s:yellow, s:base02 ] ] let s:p.normal.warning = [[ s:ycol,s:base1 ]]
let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p) let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p)
"}}} "}}}
"}}} "}}}

View file

@ -56,6 +56,7 @@
"USER INTERFACE: {{{ "USER INTERFACE: {{{
set laststatus=2 showcmd statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "statusline init and config set laststatus=2 showcmd statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "statusline init and config
set noshowmode "don't display mode information handled by lightline
set lazyredraw "don't redraw the screen while macros are executing set lazyredraw "don't redraw the screen while macros are executing
set noequalalways "don't force splits to be equal in size when closing or opening one set noequalalways "don't force splits to be equal in size when closing or opening one
set number "enable line numbers set number "enable line numbers