vimrc updates
* added wl-copy, SpaceCamp theme and mouse scrolling in alacritty
This commit is contained in:
parent
88e5f06ff7
commit
066229fd78
25
.vimrc
25
.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 <Leader>nt :NERDTreeToggle<CR>
|
||||
vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
|
||||
nmap gb :!git blame %<CR>
|
||||
|
||||
|
||||
" ------ wayland copy
|
||||
xnoremap "+y y:call system("wl-copy", @")<cr>
|
||||
nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
|
||||
nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>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
|
||||
|
Loading…
Reference in New Issue
Block a user