Update urxvt/nvim to work with powerline fonts
This commit is contained in:
parent
675ad9b1bc
commit
f4bd6cb1b1
2 changed files with 28 additions and 34 deletions
|
@ -1,5 +1,6 @@
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
|
" plugins
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'sickill/vim-monokai'
|
Plug 'sickill/vim-monokai'
|
||||||
|
@ -7,51 +8,42 @@ Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'tpope/vim-sensible'
|
Plug 'tpope/vim-sensible'
|
||||||
Plug 'chrisbra/sudoedit.vim'
|
Plug 'chrisbra/sudoedit.vim'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
"Plug 'ntpeters/vim-better-whitespace'
|
|
||||||
"Plug 'nathanaelkane/vim-indent-guides'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Use UTF-8 encoding
|
" use UTF-8 encoding
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
|
||||||
" View line numbers
|
" view line numbers
|
||||||
set number
|
set number
|
||||||
|
|
||||||
" Display
|
" display
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set expandtab
|
set expandtab
|
||||||
"set softtabstop=4
|
"set softtabstop=4
|
||||||
|
|
||||||
" Show tabs & trailing space
|
" show tabs & trailing space
|
||||||
"set listchars=tab:»·,trail:·
|
|
||||||
set listchars=tab:▸\ ,trail:·,eol:¬
|
set listchars=tab:▸\ ,trail:·,eol:¬
|
||||||
set list
|
set list
|
||||||
|
|
||||||
" Configure vim-airline
|
" vim-airline - monokai + powerline
|
||||||
let g:airline_theme='simple'
|
let g:airline_theme='base16_monokai'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
||||||
" Configure vim-monokai with syntax highlighting
|
" configure vim-monokai with syntax highlighting
|
||||||
colorscheme monokai
|
colorscheme monokai
|
||||||
syntax enable
|
syntax enable
|
||||||
let g:load_doxygen_syntax=1
|
let g:load_doxygen_syntax=1
|
||||||
|
|
||||||
" Configure vim-indent-guides with suitable colours
|
"use system clipboard
|
||||||
"let g:indent_guides_auto_colors=0
|
|
||||||
"hi IndentGuidesOdd ctermbg=235
|
|
||||||
"hi IndentGuidesEven ctermbg=237
|
|
||||||
" Also load on startup
|
|
||||||
"let g:indent_guides_enable_on_vim_startup=1
|
|
||||||
|
|
||||||
"Use system clipboard
|
|
||||||
set clipboard+=unnamedplus
|
set clipboard+=unnamedplus
|
||||||
|
|
||||||
" Disable UDLR keys (prefer HJKL)
|
" disable UDLR keys (prefer HJKL)
|
||||||
noremap <Up> <NOP>
|
noremap <Up> <NOP>
|
||||||
noremap <Down> <NOP>
|
noremap <Down> <NOP>
|
||||||
noremap <Left> <NOP>
|
noremap <Left> <NOP>
|
||||||
noremap <Right> <NOP>
|
noremap <Right> <NOP>
|
||||||
|
|
||||||
" TODO: commenting plugin -> commentary/tcomment/nerdcommenter
|
" TODO: commenting plugin -> commentary/tcomment/nerdcommenter
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
! Colours
|
! monokai colours
|
||||||
URxvt.background: #272822
|
URxvt.background: #272822
|
||||||
URxvt.foreground: #f8f8f2
|
URxvt.foreground: #f8f8f2
|
||||||
URxvt.color0: #272822
|
URxvt.color0: #272822
|
||||||
|
@ -18,22 +18,24 @@ URxvt.color13: #ae81ff
|
||||||
URxvt.color14: #a1efe4
|
URxvt.color14: #a1efe4
|
||||||
URxvt.color15: #f9f8f5
|
URxvt.color15: #f9f8f5
|
||||||
|
|
||||||
! Font
|
! powerline font
|
||||||
URxvt.font: xft:DejaVu Sans Mono:size=10:antialias=true:hinting=true
|
URxvt.font: xft:DejaVu\ Sans\ Mono\ for\ Powerline:size=10:antialias=true:hinting=true
|
||||||
|
|
||||||
! Tighter letter spacing
|
! font config
|
||||||
URxvt.letterSpace: -1
|
xft.autohint: 0
|
||||||
|
xft.lcdfilter: lcddefault
|
||||||
|
xft.hintstyle: hintslight
|
||||||
|
xft.hinting: 1
|
||||||
|
xft.antialias: 1
|
||||||
|
xft.rgba: rgb
|
||||||
|
|
||||||
! Remove internal border
|
! remove scroll bar
|
||||||
URxvt.scrollBar: false
|
URxvt.scrollBar: false
|
||||||
|
|
||||||
! Remove scroll bar
|
! remove internal border
|
||||||
URxvt.internalBorder: 0
|
URxvt.internalBorder: 0
|
||||||
|
|
||||||
! Perl Extensions: Clickable URLs + Simple Tabs
|
! perl extensions: clickable urls
|
||||||
! URxvt.perl-ext-common: default,matcher,tabbed
|
|
||||||
|
|
||||||
! Perl Extensions: Clickable URLs
|
|
||||||
URxvt.perl-ext-common: default,matcher
|
URxvt.perl-ext-common: default,matcher
|
||||||
URxvt.url-launcher: /usr/bin/xdg-open
|
URxvt.url-launcher: /usr/bin/xdg-open
|
||||||
URxvt.matcher.button: 1
|
URxvt.matcher.button: 1
|
||||||
|
|
Loading…
Reference in a new issue