From f6a105932e69c76e54e4f9e14847af8cd4c3b43b Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 25 Sep 2023 09:34:23 +0100 Subject: [PATCH] vim: misc changes Though mostly on emacs now, thought I should merge these at least. --- vimrc | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/vimrc b/vimrc index 876f6f2..6dbc534 100644 --- a/vimrc +++ b/vimrc @@ -24,7 +24,7 @@ call plug#begin('~/.vim/plugged') Plug 'NLKNguyen/papercolor-theme' Plug 'vim-airline/vim-airline' - Plug 'vim-airline/vim-airline-themes' + " Plug 'vim-airline/vim-airline-themes' Plug 'dracula/vim', { 'as': 'dracula' } Plug 'lifepillar/vim-solarized8' @@ -69,17 +69,33 @@ call plug#begin('~/.vim/plugged') Plug 'rust-lang/rust.vim' Plug 'delphinus/vim-firestore' Plug 'sebdah/vim-delve' + Plug 'guns/vim-clojure-static' Plug 'regedarek/ZoomWin' call plug#end() let g:coc_disable_startup_warning = 1 -if has('macunix') - set guifont=FiraCode-Retina:h14 -else - set guifont="Inconsolata-dz Medium 12" +" set guifont="Inconsolata-dz Medium 12" +if has("gui_running") + if has("gui_gtk3") + :set guifont="Fira Code Medium 11" + elseif has('macunix') + set guifont="FiraCode-Retina:h14,Fira Code Medium,Inconsolata-dz:h12" + elseif has("x11") + " Also for GTK 1 + :set guifont=*-lucidatypewriter-medium-r-normal-*-*-180-*-*-m-*-* + elseif has("gui_win32") + :set guifont=Fira\ Code\ Medium\ 11;Luxi_Mono:h12:cANSI + endif endif + +" set guifont="Fira Code Medium" +" if has('macunix') +" set guifont="Fira Code Medium 11,Inconsolata-dz:h12" +" else +" set guifont="Inconsolata-dz Medium 12" +" endif let mapleader = ' ' let maplocalleader = ',' @@ -146,10 +162,10 @@ nnoremap ,yt :!yarn test nnoremap ,m :Make -colorscheme PaperColor +" colorscheme PaperColor set background=dark " colorscheme dracula -" colorscheme solarized8 +colorscheme solarized8 set ignorecase smartcase set incsearch @@ -268,6 +284,7 @@ augroup END " Automatic typo fixing iab compomemt component iab seahores seahorse +iab KREN_EMERG KERN_EMERG " Disable the command 'K' (keyword lookup) " map K @@ -343,7 +360,6 @@ noremap 2 " Re-source and edit vimrc, respectively nnoremap ,u :source $MYVIMRC nnoremap ,v :edit $MYVIMRC -nnoremap ,v :vsplit $MYVIMRC nnoremap ,i :PlugInstall