minor fixes

This commit is contained in:
doyle 2022-05-20 14:52:23 +10:00
parent 0bd220d83e
commit 14731c0d25
2 changed files with 27 additions and 39 deletions

View File

@ -105,48 +105,35 @@ let g:gruvbox_italic=0
let g:gruvbox_bold=0
colorscheme gruvbox
if has("gui_running")
" NOTE(doyle): Some list chars in gui don't show correctly in terminal so separate logic
" old listchars=tab:>-,eol:¬,trail:■,extends:»,precedes:«
set listchars+=trail:■,extends:»,precedes:«
if s:running_windows
set guifont=JetBrains_Mono:h9,Consolas:h11
else
set guifont=InputMonoCondensed:h10
endif
" NOTE(doyle): Some list chars in gui don't show correctly in terminal so separate logic
" old listchars=tab:>-,eol:¬,trail:■,extends:»,precedes:«
set listchars+=trail:■,extends:»,precedes:«
if s:running_windows
set guifont=JetBrains_Mono:h9,Consolas:h9
else
set guifont=InputMonoCondensed:h9
endif
" Don't show trailing spaces in insert mode
augroup trailing
" Don't show trailing spaces in insert mode
augroup trailing
au!
au InsertEnter * :set listchars-=trail:■
au InsertLeave * :set listchars+=trail:■
augroup END
augroup END
" Increase font size using (Ctrl+Up Arrow) or (Ctrl+Down Arrow) if we are using
" gvim Otherwise font size is determined in terminal
nnoremap <C-Up> :silent! let &guifont = substitute(
" Increase font size using (Ctrl+Up Arrow) or (Ctrl+Down Arrow) if we are using
" gvim Otherwise font size is determined in terminal
nnoremap <C-Up> :silent! let &guifont = substitute(
\ &guifont,
\ ':h\zs\d\+',
\ '\=eval(submatch(0)+1)',
\ 'g')<CR>
nnoremap <C-Down> :silent! let &guifont = substitute(
nnoremap <C-Down> :silent! let &guifont = substitute(
\ &guifont,
\ ':h\zs\d\+',
\ '\=eval(submatch(0)-1)',
\ 'g')<CR>
else
set t_Co=256 " 256 colors
let &t_AB="\e[48;5;%dm" " vodoo magic for CONEMU
let &t_AF="\e[38;5;%dm" " vodoo magic for CONEMU
set listchars+=trail:$,extends:>,precedes:<
" Fix Cmder backspace bug
inoremap <Char-0x07F> <BS>
nnoremap <Char-0x07F> <BS>
endif
" Formatting options (see :h fo-table)
augroup persistent_settings
au!

View File

@ -582,6 +582,7 @@ if not exist "!nvim_exe!" (
call :FileHashCheck sha256 "!nvim_exe!" "!nvim_exe_sha256!" || exit /B
call :MakeBatchShortcutInBinDir "nvim" "!nvim_exe!"
call :MakeBatchShortcutInBinDir "nvim-qt" "!nvim_dir!\bin\nvim-qt.exe"
REM ----------------------------------------------------------------------------
REM Neovide