From ce2409ddf1bae9f5f86e06abf944e023801caae7 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Sun, 11 Apr 2021 13:50:44 +0200 Subject: [PATCH] feat: make it cleaner --- vim/vimrc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index be5036b..71472e4 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,5 +1,5 @@ " Install vim-plug if not found -if empty(glob('~/.vim/autoload/plug.vim')) +if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif @@ -15,6 +15,7 @@ call plug#begin('~/.vim/plugged') " General Plug 'ojroques/vim-oscyank' Plug 'tpope/vim-obsession' +Plug 'tmux-plugins/vim-tmux-focus-events' " Look Plug 'vim-airline/vim-airline' Plug 'sonph/onehalf', { 'rtp': 'vim' } @@ -48,7 +49,7 @@ let g:coc_global_extensions = [ \ 'coc-yaml', \ 'coc-json', \ 'coc-git', - \ 'coc-pyright' + \ 'coc-pyright' \ ] if isdirectory('./node_modules') && isdirectory('./node_modules/prettier') let g:coc_global_extensions += ['coc-prettier'] @@ -127,9 +128,10 @@ set incsearch " search as you type set ignorecase set smartcase set mouse=a +set ttymouse=sgr set spell spelllang=en_us set updatetime=300 -set cmdheight=2 +set cmdheight=1 set hidden set shortmess+=c @@ -168,4 +170,17 @@ set cursorline set hlsearch " highlight all results set signcolumn=yes " always show git diff column colorscheme onehalflight + +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif +let g:airline_symbols.branch = '' +let g:airline_symbols.dirty=' ' +let g:airline_symbols.linenr = '☰ ' +let g:airline_symbols.maxlinenr = ' ' +let g:airline_left_sep='' +let g:airline_right_sep='' + +let g:airline_detect_spell=0 +let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]' let g:airline_theme = 'onehalflight'