Add powerline font to Xresources, add vim lightline + bufferline, clean vimrc

This commit is contained in:
Riyyi
2018-02-05 15:46:43 +01:00
parent 4ce8a193de
commit 394409a4cf
4 changed files with 63 additions and 15 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ Xft.antialias: 1
Xft.rgba: rgb Xft.rgba: rgb
! Terminal config ! Terminal config
URxvt*font: xft:DejaVu Sans Mono:size=9:antialias=true URxvt*font: xft:DejaVu Sans Mono for Powerline:size=9
URxvt*boltfont: xft:DejaVu Sans Mono:bold:size=9:antialias=true URxvt*boltfont: xft:DejaVu Sans Mono:bold:size=9
URxvt*letterSpace: -1 URxvt*letterSpace: -1
URxvt*scrollBar: false URxvt*scrollBar: false
URxvt*saveLines: 2000 URxvt*saveLines: 2000
+1
View File
@@ -41,6 +41,7 @@ All packages that are manually installed via pacman -S, dependencies not include
zsh-completions zsh-completions
libx264 libx264
ttf-dejavu ttf-dejavu
ttf-dejavu-sans-mono-powerline-git (AUR)
firefox firefox
libnotify libnotify
pulseaudio pulseaudio
+58 -13
View File
@@ -2,33 +2,78 @@
set nobackup set nobackup
set nocompatible set nocompatible
" Setup paths
set viminfo+=n~/.cache/vim_history
"" General "" General
filetype plugin on filetype plugin on
" Behavior
set clipboard=unnamedplus
set encoding=utf-8
set fileencoding=utf-8
set hidden
set history=1000
set undolevels=1000
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
set wildignore=*.bak,*.swp,*.o,*.info,*.aux,*.log,*.dvi,*.bbl,*.blg,*.brf,*.cb,*.ind,*.idx,*.ilg,*.inx,*.out,*.toc,*.png,*.jpg
" Editing
set number
set ruler
set background=dark
colorscheme hybrid_reverse
set cursorline
autocmd! ColorScheme * hi clear CursorLine
" Indentation " Indentation
set autoindent set autoindent
filetype indent on filetype indent on
set backspace=indent,eol,start set backspace=indent,eol,start
set shiftround
set tabstop=4 set tabstop=4
set softtabstop=4 set softtabstop=4
set shiftwidth=4 set shiftwidth=4
set expandtab
" Now we set some defaults for the editor " UI
set history=1000 " keep 50 lines of command line history set laststatus=2
set ruler " show the cursor position all the time set noshowmode
set nowrap
" Suffixes that get lower priority when doing tab completion for filenames. " Plugins
" These are files we are not likely to want to edit or read. let g:lightline = {}
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg let g:lightline.colorscheme = 'Tomorrow_Night_Bright'
let g:lightline.separator = {'left': "\ue0b0", 'right': "\ue0b2"}
let g:lightline.subseparator = {'left': "\ue0b1", 'right': "\ue0b3"}
" Default clipboard register "+ (CLIPBOARD buffer in X) let g:lightline.tabline = {'left': [['buffers']], 'right': [['close']]}
set clipboard=unnamedplus let g:lightline.component_expand = {'buffers': 'lightline#bufferline#buffers'}
let g:lightline.component_type = {'buffers': 'tabsel'}
set background=dark let g:lightline#bufferline#min_buffer_count = 2
colorscheme hybrid_reverse
"" Autocommands
" Remove trailing whitespace in the following filetypes
autocmd FileType c,cpp,ino,java,py,php,sh,tex autocmd BufWritePre <buffer> %s/\s\+$//e
"" Keybindings
" Tab/Shift+Tab functionality
nnoremap <Tab> >>_
nnoremap <S-Tab> <<_
inoremap <S-Tab> <C-D>
vnoremap <Tab> >gv
vnoremap <S-Tab> <gv
" Buffer switching
nnoremap <C-h> :bprevious<CR>
nnoremap <C-l> :bnext<CR>
nmap <Leader>1 <Plug>lightline#bufferline#go(1)
" Autoremove trailing whitespace in the following filetypes
autocmd FileType c,cpp,ino,sh,java,php autocmd BufWritePre <buffer> %s/\s\+$//e
+2
View File
@@ -1,3 +1,5 @@
start: start:
https://github.com/itchyny/lightline.vim.git
https://github.com/mgee/lightline-bufferline.git
opt: opt:
https://github.com/kristijanhusak/vim-hybrid-material.git https://github.com/kristijanhusak/vim-hybrid-material.git