1
0
Fork 0
This commit is contained in:
Von Random 2019-11-15 19:39:48 +03:00
parent 2460959bce
commit 13dc4b614f
4 changed files with 16 additions and 18 deletions

View file

@ -2,18 +2,18 @@
autocmd BufRead *vimplugrc set ft=vim autocmd BufRead *vimplugrc set ft=vim
" enable plugins " enable plugins
execute 'source' fnameescape(plugdir) . '/vim-plug/plug.vim' execute 'source' fnameescape(plug)
silent!call plug#begin(plugdir) silent!call plug#begin(plugdir)
" plugin manager for self updates " plugin manager for self updates
Plug 'junegunn/vim-plug' Plug 'junegunn/vim-plug'
" general plugins " general plugins
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align' Plug 'junegunn/vim-easy-align'
Plug 'lifepillar/vim-solarized8'
Plug 'mhinz/vim-signify' Plug 'mhinz/vim-signify'
Plug 'neilhwatson/vim_cf3' Plug 'NLKNguyen/papercolor-theme'
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
@ -39,18 +39,17 @@ nmap <Leader>fb :Buffers<CR>
nmap <Leader>fl :Lines<CR> nmap <Leader>fl :Lines<CR>
nmap <Leader>ft :Filetypes<CR> nmap <Leader>ft :Filetypes<CR>
" lightline
set noshowmode
let g:lightline = {}
let g:lightline.separator = { 'left': "\ue0b0", 'right': "\ue0b2" }
let g:lightline.subseparator = { 'left': "\ue0b1", 'right': "\ue0b3" }
" vimwiki " vimwiki
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}] let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
" color theme " color theme
if $TERM !~ '^linux' if $TERM !~ '^linux'
let &bg = "light" set bg=light
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" colorscheme PaperColor
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
let g:solarized_use16 = 1
let g:solarized_italics = 1
let g:solarized_extra_hi_groups = 1
colorscheme solarized8
endif endif

4
vimrc
View file

@ -9,7 +9,6 @@ set belloff=all colorcolumn=80 formatoptions+=j relativenumber breakindent
set keymap=russian-jcukenwintype iminsert=0 imsearch=0 set keymap=russian-jcukenwintype iminsert=0 imsearch=0
set title titlestring=[%{hostname()}]\ %t\ -\ vim set title titlestring=[%{hostname()}]\ %t\ -\ vim
let g:netrw_liststyle = 1
let g:sh_indent_case_labels = 1 let g:sh_indent_case_labels = 1
" mappings " mappings
@ -32,7 +31,8 @@ noremap! <C-Space> <C-^>
" plugins " plugins
let plugrc = expand('$HOME/.vimplugrc') let plugrc = expand('$HOME/.vimplugrc')
let plugdir = expand('$HOME/.vim/plugged') let plugdir = expand('$HOME/.vim/plugged')
if filereadable(plugrc) && v:version >= 703 let plug = plugdir . '/vim-plug/plug.vim'
if filereadable(plugrc) && filereadable(plug) && v:version >= 703
execute 'source' fnameescape(plugrc) execute 'source' fnameescape(plugrc)
endif endif

View file

@ -4,11 +4,11 @@ Xft.antialias: true
Xft.rgba: rgb Xft.rgba: rgb
Xft.hinting: true Xft.hinting: true
Xft.hintstyle: hintslight Xft.hintstyle: hintslight
!Xft.dpi: 192 Xft.dpi: 192
#define TERMINUS -xos4-terminus-bold-*-*-*-14-*-*-*-*-*-iso10646-1 #define TERMINUS -xos4-terminus-bold-*-*-*-14-*-*-*-*-*-iso10646-1
#define TERMINUS_SMALL -xos4-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1 #define TERMINUS_SMALL -xos4-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1
#define FONT xft:Fira Code Retina:size=10 #define FONT xft:Fantasque Sans Mono:size=11
! solarized light ! solarized light
#define COLORFG #657b83 #define COLORFG #657b83
@ -37,7 +37,6 @@ Xft.hintstyle: hintslight
! {{{ urxvt ! {{{ urxvt
! fonts ! fonts
URxvt.font: FONT URxvt.font: FONT
URxvt.italicFont: FONT
! misc ! misc
URxvt.intensityStyles: false URxvt.intensityStyles: false

2
zshrc
View file

@ -72,7 +72,7 @@ bindkey '^x^e' edit-command-line
# }}} # }}}
# {{{ prompt # {{{ prompt
prompt_ln1='[ %(!.%F{red}.%F{blue})%n%f %m:%d ]' prompt_ln1='[ %(!.%F{red}.%F{blue})%n%f %m:%d ]'
prompt_ln2=$'\n%(!.%F{red}.%F{blue})=>>%f ' prompt_ln2=$'\n%(!.%F{red}.%F{blue})$>%f '
prompt_state_file="/tmp/zsh_gitstatus_$$.tmp" prompt_state_file="/tmp/zsh_gitstatus_$$.tmp"
PROMPT="$prompt_ln1$prompt_ln2" PROMPT="$prompt_ln1$prompt_ln2"
PROMPT2='%_%(!.%F{red}.%F{blue})>%f ' PROMPT2='%_%(!.%F{red}.%F{blue})>%f '