Compare commits

..

2 Commits

Author SHA1 Message Date
6c1bbf8dac
Added
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-12-07 12:33:12 +01:00
03a8b6427c
Added new vim conf
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-12-07 12:18:19 +01:00
3 changed files with 16 additions and 36 deletions

View File

@ -18,42 +18,14 @@ Plug 'preservim/nerdtree'
Plug 'nmante/vim-latex-live-preview'
Plug 'lervag/vimtex'
Plug 'junegunn/goyo.vim'
Plug 'prettier/vim-prettier', { 'do': 'npm install --force' }
Plug 'iamcco/markdown-preview.nvim', { 'do': 'npm install --force' }
" Bash
Plug 'vim-scripts/bash-support.vim'
" Complete
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'vim-syntastic/syntastic'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
" Ruby
Plug 'takkii/Bignyanco'
Plug 'uplus/deoplete-solargraph'
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'vim-ruby/vim-ruby'
Plug 'tpope/vim-rails'
"
" Problem with vim-prettier
" git checkout -b test origin/feature/issue-232-add-support-for-prettier-2.x;
" npm install --force
"
" Problem autocomplete
" pip3 install --user pynvim
" pip3 install msgpack --user
call plug#end()
" NerdTree
let NERDTreeShowHidden=1
" Deoplete
let g:deoplete#enable_at_startup=1
call deoplete#custom#option({
\ 'auto_complete_delay': 500,
\ 'smart_case': v:true,
\ 'max_list' : 10,
\ })
" Status-line
set statusline=
set statusline+=%#IncSearch#
@ -65,6 +37,14 @@ set statusline+=%= "Right side settings
set statusline+=%#Search#
set statusline+=\ %l/%L
set statusline+=\ [%c]
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
set nocompatible
set hlsearch
@ -145,14 +125,11 @@ autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm
autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw!
" mutt
"autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
"autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
"autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
"autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e
" Autoformating markdown
autocmd BufWritePost *.md :Prettier

View File

@ -1,8 +1,8 @@
#!/bin/bash
set -x
sudo rm -rf /var/tmp/portage/*
sudo rm -rf /var/tmp/binpkgs/*
sudo rm -rf /var/tmp/genkernel/*
sudo rm -rf /tmp/*
sudo rm -rf /var/cache/genkernel/*
sudo emerge -a --depclean
sudo emerge -a @preserved-rebuild

3
.zshrc
View File

@ -33,6 +33,9 @@ FPATH=/usr/local/share/zsh/site-functions:$FPATH
#set bell-style none &>> /dev/null
#setxkbmap pl &>> /dev/null
bindkey "^l" clear-screen
bindkey "^?" backward-kill-word
export GPG_TTY=$(tty)
export TERM=xterm-256color
export SHELL=/bin/bash