mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
vim: diy statusline
This commit is contained in:
parent
e51cef27d6
commit
6b6482e9ee
1 changed files with 40 additions and 22 deletions
62
root/.vimrc
62
root/.vimrc
|
|
@ -1,11 +1,11 @@
|
||||||
""" Common
|
""" Common
|
||||||
|
|
||||||
set nocompatible
|
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
set nocompatible
|
||||||
|
set mouse=a
|
||||||
|
|
||||||
set number
|
set number
|
||||||
|
set fillchars=eob:\ " No more ~
|
||||||
set mouse=a
|
|
||||||
|
|
||||||
set nowrap
|
set nowrap
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
@ -15,8 +15,12 @@
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
|
|
||||||
let mapleader = ' '
|
let mapleader = ' '
|
||||||
|
set ttimeoutlen=10
|
||||||
|
|
||||||
nnoremap <SPACE> <Nop>
|
nnoremap <SPACE> <Nop>
|
||||||
|
|
||||||
|
nnoremap <Esc> :nohl<CR>
|
||||||
|
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
""" Plugins
|
""" Plugins
|
||||||
|
|
@ -30,48 +34,62 @@
|
||||||
|
|
||||||
""" Themes
|
""" Themes
|
||||||
Plug 'tribela/vim-transparent'
|
Plug 'tribela/vim-transparent'
|
||||||
Plug 'pgdouyon/vim-yin-yang'
|
|
||||||
Plug 'widatama/vim-phoenix'
|
Plug 'widatama/vim-phoenix'
|
||||||
""" Plug 'Lokaltog/vim-monotone'
|
|
||||||
""" Plug 'alexanderheldt/monokrom.vim'
|
|
||||||
|
|
||||||
""" Statusline
|
Plug 'Lokaltog/vim-monotone'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'alexanderheldt/monokrom.vim'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'pgdouyon/vim-yin-yang'
|
||||||
|
|
||||||
""" Navigation
|
""" Navigation
|
||||||
Plug 'justinmk/vim-sneak'
|
Plug 'justinmk/vim-sneak'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
""" Sneak
|
||||||
|
|
||||||
let g:sneak#label = 1
|
let g:sneak#label = 1
|
||||||
|
|
||||||
""" Appearance
|
|
||||||
|
|
||||||
""" colorscheme monotone
|
|
||||||
autocmd ColorScheme * hi Sneak guifg=black guibg=white ctermfg=black ctermbg=white
|
autocmd ColorScheme * hi Sneak guifg=black guibg=white ctermfg=black ctermbg=white
|
||||||
autocmd ColorScheme * hi SneakScope guifg=black guibg=white ctermfg=black ctermbg=white
|
autocmd ColorScheme * hi SneakScope guifg=black guibg=white ctermfg=black ctermbg=white
|
||||||
autocmd ColorScheme * hi SneakLabel guifg=black guibg=white ctermfg=black ctermbg=white
|
autocmd ColorScheme * hi SneakLabel guifg=black guibg=white ctermfg=black ctermbg=white
|
||||||
|
|
||||||
|
""" Appearance
|
||||||
|
|
||||||
colorscheme phoenix
|
colorscheme phoenix
|
||||||
PhoenixOrange
|
PhoenixOrange
|
||||||
|
|
||||||
set ttimeoutlen=10
|
" Cursor
|
||||||
|
|
||||||
let &t_SI.="\e[5 q"
|
let &t_SI.="\e[5 q"
|
||||||
let &t_SR.="\e[3 q"
|
let &t_SR.="\e[3 q"
|
||||||
let &t_EI.="\e[2 q"
|
let &t_EI.="\e[2 q"
|
||||||
|
|
||||||
highlight EndOfBuffer ctermfg=16
|
|
||||||
|
|
||||||
""" Statusline
|
""" Statusline
|
||||||
|
|
||||||
let g:airline_theme='minimalist'
|
hi StatusLine ctermbg=none ctermfg=white cterm=bold
|
||||||
let g:airline_section_x = airline#section#create(['%l:%v'])
|
|
||||||
let g:airline_section_y = airline#section#create([''])
|
|
||||||
let g:airline_section_z = airline#section#create(['%p%%'])
|
|
||||||
let g:airline#extensions#whitespace#enabled = 1
|
|
||||||
|
|
||||||
set laststatus=2
|
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
set laststatus=2
|
||||||
|
|
||||||
|
set statusline=
|
||||||
|
set statusline+=%#StatusLine#
|
||||||
|
set statusline+=%{mode()}
|
||||||
|
|
||||||
|
set statusline+=%#LineNr#
|
||||||
|
set statusline+=\ %y
|
||||||
|
|
||||||
|
set statusline+=%#StatusLine#
|
||||||
|
set statusline+=\ %f
|
||||||
|
set statusline+=\ %m
|
||||||
|
|
||||||
|
set statusline+=%=
|
||||||
|
|
||||||
|
set statusline+=%#LineNr#
|
||||||
|
set statusline+=\ %{&fileformat}
|
||||||
|
set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
|
||||||
|
|
||||||
|
set statusline+=%#StatusLine#
|
||||||
|
set statusline+=\ %l:%c
|
||||||
|
set statusline+=\ %p%%
|
||||||
|
|
||||||
|
|
||||||
""" Copy'n'paste
|
""" Copy'n'paste
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue