From 03a8b6427cd64f015be52b4e355844d3805b5d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 7 Dec 2020 12:18:19 +0100 Subject: [PATCH] Added new vim conf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .config/nvim/init.vim | 39 ++++++++------------------------------- .local/bin/cleaner | 2 +- .zshrc | 3 +++ 3 files changed, 12 insertions(+), 32 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 19669ed..4e787cc 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 @@ -153,6 +133,3 @@ autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" " 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 diff --git a/.local/bin/cleaner b/.local/bin/cleaner index c115d50..755f014 100755 --- a/.local/bin/cleaner +++ b/.local/bin/cleaner @@ -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 diff --git a/.zshrc b/.zshrc index 9b1bef2..fc8648e 100644 --- a/.zshrc +++ b/.zshrc @@ -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