From 066229fd7877ac2e20f6d55bca1c538f07bbe443 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 27 Apr 2020 22:42:42 +0200 Subject: [PATCH] vimrc updates * added wl-copy, SpaceCamp theme and mouse scrolling in alacritty --- .vimrc | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index ee63b95..759422c 100644 --- a/.vimrc +++ b/.vimrc @@ -30,6 +30,7 @@ call plug#begin() Plug 'drewtempelmeyer/palenight.vim' Plug 'jacoborus/tender.vim' Plug 'dracula/vim', { 'as': 'dracula' } +Plug 'jaredgorski/SpaceCamp', { 'as': 'spacecamp' } Plug 'lervag/vimtex', { 'for': 'tex' } Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } Plug 'vim-airline/vim-airline' @@ -42,6 +43,7 @@ Plug 'tpope/vim-surround' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-repeat' Plug 'gorodinskiy/vim-coloresque' +Plug 'rhysd/git-messenger.vim' Plug 'Yggdroot/indentLine' Plug 'cespare/vim-toml' Plug 'preservim/nerdcommenter' @@ -58,7 +60,7 @@ let g:airline_powerline_fonts = 1 let g:Powerline_symbols = "fancy" " sth like this probably set as a default but won't hurt here let g:airline_highlighting_cache = 1 let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr', ' :%3v']) -let g:airline_theme = 'onedark' +" let g:airline_theme = 'dracula' let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#formatter = 'unique_tail' @@ -66,7 +68,7 @@ let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowCollapsible = '▾' let g:gitgutter_terminal_reports_focus=0 -"let g:gitgutter_async = 0 +let g:gitgutter_async = 1 let g:gitgutter_sign_allow_clobber=0 let g:deoplete#enable_at_startup = 1 @@ -92,6 +94,11 @@ let g:NERDCustomDelimiters = { 'vim': { 'left': '"','right': '' }, 'c': { 'left' "let g:indentLine_setColors = 0 let g:indentLine_char_list = ['|', '¦', '┆', '┊', ':'] + +let g:git_messenger_close_on_cursor_moved = v:false +let g:git_messenger_always_into_popup = v:true + + let g:syntastic_always_populate_loc_list = 0 let g:syntastic_auto_loc_list = 2 let g:syntastic_loc_list_height = 8 @@ -143,10 +150,17 @@ nmap nt :NERDTreeToggle vmap gb :!git blame % -L=line("'<") ,=line("'>") nmap gb :!git blame % + +" ------ wayland copy +xnoremap "+y y:call system("wl-copy", @") +nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p +nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '', '', 'g')p + + " ------ autocmd ------ " automatically open NERDTree if vim is open on it's own (argc() ==0 ) -autocmd StdinReadPre * let s:std_in=1 -autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +" autocmd StdinReadPre * let s:std_in=1 +" autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif " Reload changes if file changed outside of vim requires autoread augroup load_changed_file @@ -281,7 +295,8 @@ set updatetime=1000 syntax enable colo dracula " new fav highlighting -set mouse=a " enable mouse in n,v,i,c,h modes +set mouse=a " enable mouse in n,v,i,c,h modes +set ttymouse=sgr set laststatus=2 " show powerline status bar set t_Co=256