Browse Source

some improvements

master
RinRi 3 years ago
parent
commit
50ea8549a5
9 changed files with 152 additions and 33 deletions
  1. +1
    -28
      .Xresources
  2. +12
    -0
      .config/nvim/.netrwhist
  3. +112
    -0
      .config/nvim/init.vim
  4. +27
    -5
      .zshrc
  5. BIN
      clear.png
  6. BIN
      cmus.png
  7. BIN
      dunst.png
  8. BIN
      neofetch.png
  9. BIN
      vim.png

+ 1
- 28
.Xresources View File

@@ -1,6 +1,6 @@
! special
*.foreground: #ffffff
*.background: #000000
*.background: #1f1f2b
*.cursorColor: #ffffff

! black
@@ -34,30 +34,3 @@
! white
*.color7: #e3e7de
*.color15: #eeeeec

urxvt.shading: 0
urxvt.transparent: false
URxvt.scrollBar: False
URxvt.font: xft:DejaVuSansMono Nerd Font:size=13

!! Common Keybinds for Navigations
URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007
URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Control-Left: \033[1;5D

!! Copy Paste & Other Extensions
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
URxvt.copyCommand: xclip -i -selection clipboard
URxvt.pasteCommand: xclip -o -selection clipboard
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-s: perl:keyboard-select:search
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.urlLauncher: firefox
URxvt.underlineURLs: true
URxvt.urlButton: 1

+ 12
- 0
.config/nvim/.netrwhist View File

@@ -0,0 +1,12 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =7
let g:netrw_dirhist_7='/etc/runit/runsvdir/default/lightdm/supervise'
let g:netrw_dirhist_6='/etc/runit/runsvdir/default/lightdm'
let g:netrw_dirhist_5='/etc/runit/runsvdir/default/alsa'
let g:netrw_dirhist_4='/etc/alsa/conf.d'
let g:netrw_dirhist_3='/home/rinri/.local/share/osu'
let g:netrw_dirhist_2='/home/rinri/.local/share/osu/files'
let g:netrw_dirhist_1='/home/rinri/.local/share/osu/files/8'
let g:netrw_dirhist_0='/home/rinri/.local/share/osu/files'
let g:netrw_dirhist_9='/home/rinri/.local/share/osu'
let g:netrw_dirhist_8='/home/rinri/.local/share/osu/screenshots'

+ 112
- 0
.config/nvim/init.vim View File

@@ -0,0 +1,112 @@
call plug#begin('~/.vim/plugged')

"{{ The Basics }}
Plug 'gmarik/Vundle.vim' " Vundle
Plug 'joshdick/onedark.vim' " Colors
Plug 'itchyny/lightline.vim' " Lightline statusbar
Plug 'suan/vim-instant-markdown', {'rtp': 'after'} " Markdown Preview
Plug 'frazrepo/vim-rainbow'
"{{ File management }}
Plug 'vifm/vifm.vim' " Vifm
Plug 'scrooloose/nerdtree' " Nerdtree
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' " Highlighting Nerdtree
Plug 'ryanoasis/vim-devicons' " Icons for Nerdtree
"{{ Tim Pope Plugins }}
Plug 'tpope/vim-surround' " Change surrounding marks
"{{ Syntax Highlighting and Colors }}
Plug 'ap/vim-css-color' " Color previews for CSS
"{{ Junegunn Choi Plugins }}
Plug 'junegunn/goyo.vim' " Distraction-free viewing
Plug 'junegunn/limelight.vim' " Hyperfocus on a range
Plug 'junegunn/vim-emoji' " Vim needs emojis!

call plug#end()

" colorscheme
syntax on

" brackets
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O

" markdown
let g:instant_markdown_browser = "st surf"

" Make Vim more useful
set nocompatible
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard+=unnamedplus
" Enhance command-line completion
set wildmenu
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Allow cursor keys in insert mode
" Allow backspace in insert mode
set backspace=indent,eol,start
" Optimize for fast terminal connections
set ttyfast
" Add the g flag to search/replace by default
set gdefault
" Use UTF-8 without BOM
set encoding=utf-8
" Change mapleader
let mapleader=","
" Don’t add empty newlines at the end of files
set binary
set noeol

" 256 colors
set t_Co=256
" Respect modeline in files
set modeline
set modelines=4
" Enable per-directory .vimrc files and disable unsafe commands in them
set exrc
set secure
" Enable line numbers
set number
" Make tabs as wide as two spaces
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
" Highlight searches
set hlsearch
" Ignore case of searches
set ignorecase
" Highlight dynamically as pattern is typed
set incsearch
" Always show status line
set laststatus=2
" Enable mouse in all modes
set mouse=a
" Disable error bells
set noerrorbells
" Don’t reset cursor to start of line when moving around.
set nostartofline
" Show the cursor position
set ruler
" Don’t show the intro message when starting Vim
set shortmess=atI
" Show the current mode
set showmode
" Show the filename in the window titlebar
set title
" Show the (partial) command as it’s being typed
set showcmd
" Use relative line numbers
if exists("&relativenumber")
set relativenumber
au BufReadPost * set relativenumber
endif
" Start scrolling three lines before the horizontal window border
set scrolloff=3

map <Leader>c :w! \| !pdflatex <c-r>%<CR><CR>
map <Leader>t :!st&<CR><CR>
vnoremap <C-c> "+y

+ 27
- 5
.zshrc View File

@@ -6,24 +6,46 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
fi

export LC_CTYPE=ru_RU.UTF-8
export EDITOR=nvim
alias ll="ls -l"
alias la="ls -a"
alias lal="ls -al"
alias huion="xsetwacom set 'HUION Huion Tablet Pen stylus' Area 4384 3990 24384 15240"
alias dxyz="ssh root@rinri-d.xyz"
alias mrcon="mcrcon -H rinri-d.xyz -p -t"
alias vim="nvim"
alias minemus="mpv --no-video https://youtu.be/Dg0IjOzopYU"
alias weebcabin="~/scripts/anime.sh"
alias cal="cal -m"

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=5000
HISTSIZE=10000
SAVEHIST=10000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/rinri/.zshrc'

autoload -Uz compinit
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
# End of lines added by compinstall
source ~/powerlevel10k/powerlevel10k.zsh-theme
_comp_options+=(globdots)

lfcd () {
tmp="$(mktemp)"
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi
}
bindkey -s '^o' 'lfcd\n'

# End of lines added by compinstall
source ~/src/powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

BIN
clear.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 850 KiB Width: 1920  |  Height: 1080  |  Size: 851 KiB

BIN
cmus.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 754 KiB Width: 1920  |  Height: 1080  |  Size: 571 KiB

BIN
dunst.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 737 KiB Width: 1920  |  Height: 1080  |  Size: 549 KiB

BIN
neofetch.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 664 KiB Width: 1920  |  Height: 1080  |  Size: 537 KiB

BIN
vim.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 584 KiB Width: 1920  |  Height: 1080  |  Size: 416 KiB

Loading…
Cancel
Save