Added
Signed-off-by: Marcin Wozniak <y0rune@aol.com>
This commit is contained in:
parent
b57512dc46
commit
59b3677186
@ -3,3 +3,4 @@ sudo rm -rf /var/tmp/binpkgs/*
|
|||||||
sudo rm -rf /var/tmp/genkernel/*
|
sudo rm -rf /var/tmp/genkernel/*
|
||||||
sudo rm -rf /tmp/*
|
sudo rm -rf /tmp/*
|
||||||
sudo rm -rf /var/cache/genkernel/*
|
sudo rm -rf /var/cache/genkernel/*
|
||||||
|
sudo eclean-dist -d
|
||||||
|
13
.vimrc
13
.vimrc
@ -14,9 +14,6 @@ au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
|||||||
" plugins
|
" plugins
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' }
|
Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' }
|
||||||
Plug 'nmante/vim-latex-live-preview'
|
|
||||||
Plug 'lervag/vimtex'
|
|
||||||
Plug 'junegunn/goyo.vim'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Status-line
|
" Status-line
|
||||||
@ -37,7 +34,6 @@ set incsearch
|
|||||||
set noshowmode
|
set noshowmode
|
||||||
set cursorline
|
set cursorline
|
||||||
set cmdheight=1
|
set cmdheight=1
|
||||||
let g:livepreview_previewer = 'mupdf'
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
@ -84,18 +80,9 @@ hi CursorLine ctermbg=235
|
|||||||
|
|
||||||
" map
|
" map
|
||||||
nnoremap S :%s//g<Left><Left>
|
nnoremap S :%s//g<Left><Left>
|
||||||
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
|
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
nnoremap <silent> <C-t> :tabnew <CR>
|
nnoremap <silent> <C-t> :tabnew <CR>
|
||||||
nnoremap <F11> :Goyo <CR>
|
|
||||||
nnoremap <F7> :tabprevious<CR>
|
nnoremap <F7> :tabprevious<CR>
|
||||||
nnoremap <F8> :tabnext<CR>
|
nnoremap <F8> :tabnext<CR>
|
||||||
nnoremap <F2> :GoRun<CR>
|
|
||||||
|
|
||||||
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
|
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
|
||||||
|
|
||||||
" latex
|
|
||||||
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!
|
|
||||||
autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw!
|
|
||||||
autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw!
|
|
||||||
autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw!
|
|
||||||
|
101
.vimrc-gentoo
Normal file
101
.vimrc-gentoo
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
" settings
|
||||||
|
if ! filereadable(system('echo -n "$HOME/.vim/autoload/plug.vim"'))
|
||||||
|
silent !mkdir -p $HOME/.vim/autoload/
|
||||||
|
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.vim/autoload/plug.vim
|
||||||
|
autocmd VimEnter * PlugInstall
|
||||||
|
endif
|
||||||
|
|
||||||
|
set laststatus=2
|
||||||
|
set shiftwidth=4
|
||||||
|
set softtabstop=4
|
||||||
|
set tabstop=4
|
||||||
|
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
||||||
|
|
||||||
|
" plugins
|
||||||
|
call plug#begin('~/.vim/plugged')
|
||||||
|
Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' }
|
||||||
|
Plug 'nmante/vim-latex-live-preview'
|
||||||
|
Plug 'lervag/vimtex'
|
||||||
|
Plug 'junegunn/goyo.vim'
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
" Status-line
|
||||||
|
set statusline=
|
||||||
|
set statusline+=%#IncSearch#
|
||||||
|
set statusline+=\ %y
|
||||||
|
set statusline+=\ %r
|
||||||
|
set statusline+=%#CursorLineNr#
|
||||||
|
set statusline+=\ %F
|
||||||
|
set statusline+=%= "Right side settings
|
||||||
|
set statusline+=%#Search#
|
||||||
|
set statusline+=\ %l/%L
|
||||||
|
set statusline+=\ [%c]
|
||||||
|
|
||||||
|
set nocompatible
|
||||||
|
set hlsearch
|
||||||
|
set incsearch
|
||||||
|
set noshowmode
|
||||||
|
set cursorline
|
||||||
|
set cmdheight=1
|
||||||
|
let g:livepreview_previewer = 'mupdf'
|
||||||
|
syntax on
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
set encoding=utf-8
|
||||||
|
|
||||||
|
" line numbers
|
||||||
|
set number
|
||||||
|
set ruler
|
||||||
|
set title
|
||||||
|
|
||||||
|
" indent
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
set shiftwidth=4
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
" editing
|
||||||
|
runtime! macros/matchit.vim
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
|
" visual feedback
|
||||||
|
set laststatus=2
|
||||||
|
set showmode
|
||||||
|
set showcmd
|
||||||
|
|
||||||
|
" off mouse
|
||||||
|
set mouse-=a
|
||||||
|
|
||||||
|
" disable pcspkr beep
|
||||||
|
set visualbell
|
||||||
|
set t_vb=
|
||||||
|
|
||||||
|
" searching
|
||||||
|
set incsearch
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" cursor
|
||||||
|
let &t_SI = "\<esc>[6 q"
|
||||||
|
let &t_EI = "\<esc>[2 q"
|
||||||
|
|
||||||
|
" colors
|
||||||
|
colorscheme desert
|
||||||
|
hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE
|
||||||
|
hi CursorLine ctermbg=235
|
||||||
|
|
||||||
|
" map
|
||||||
|
nnoremap S :%s//g<Left><Left>
|
||||||
|
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
|
||||||
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
|
nnoremap <silent> <C-t> :tabnew <CR>
|
||||||
|
nnoremap <F11> :Goyo <CR>
|
||||||
|
nnoremap <F7> :tabprevious<CR>
|
||||||
|
nnoremap <F8> :tabnext<CR>
|
||||||
|
nnoremap <F2> :GoRun<CR>
|
||||||
|
|
||||||
|
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
|
||||||
|
|
||||||
|
" latex
|
||||||
|
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!
|
||||||
|
autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw!
|
||||||
|
autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw!
|
||||||
|
autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw!
|
1
.zshrc
1
.zshrc
@ -84,6 +84,7 @@ alias vpnd="sudo /root/.local/bin/protonvpn d"
|
|||||||
alias prolog="swipl"
|
alias prolog="swipl"
|
||||||
alias tv="~/MEGA/tv/tv.sh"
|
alias tv="~/MEGA/tv/tv.sh"
|
||||||
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
|
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
|
||||||
|
alias vim="vim -u $HOME/.vimrc-gentoo"
|
||||||
|
|
||||||
# Cleaning-up
|
# Cleaning-up
|
||||||
export KODI_DATA="$HOME/.config/kodi"
|
export KODI_DATA="$HOME/.config/kodi"
|
||||||
|
Loading…
Reference in New Issue
Block a user