From 94ab7ed41c165f43ed1f276048b523ee82dd3721 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 26 Aug 2023 14:25:57 +0200 Subject: [PATCH] update --- neovim/.config/nvim/init.vim | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 7e7784a..372d266 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -1,15 +1,13 @@ call plug#begin('~/.config/nvim/plugins') Plug 'cloudhead/neovim-fuzzy' +Plug 'jnurmine/Zenburn' Plug 'mhinz/vim-signify' -Plug 'overcache/NeoSolarized' Plug 'LnL7/vim-nix' -Plug 'neovimhaskell/haskell-vim' call plug#end() if ($TERM=~"xterm-256color" || $TERM=~"screen-256color") - colorscheme NeoSolarized - set background=light - set termguicolors + colorscheme zenburn + "set termguicolors endif filetype plugin indent on @@ -30,7 +28,6 @@ set nofoldenable set nojoinspaces set nowrap set number -set printoptions=paper:A4,syntax:n,number:y set shiftwidth=2 set showbreak=↪\ set splitbelow @@ -52,9 +49,7 @@ nnoremap gB :bp nnoremap gb :bn " https://github.com/neovim/neovim/pull/13268 -if matchstr(execute('version'), 'NVIM v0.\zs[^\n]') > 5 - unmap Y -endif +unmap Y function! s:StripTrailing() let l = line(".") @@ -68,4 +63,8 @@ augroup vimrc autocmd BufWritePre * call s:StripTrailing() autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown autocmd FileType go setlocal noexpandtab sw=8 + autocmd BufReadPost * + \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' + \ | exe "normal! g`\"" + \ | endif augroup END