From 6cbfdc93d9a9436f11a66ee8e2501d11b5e90efb Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sat, 12 Nov 2022 18:20:45 -0700 Subject: update dots + add some config files --- vim/.vimrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 27bec12..ee91e09 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -14,6 +14,7 @@ call plug#begin() Plug 'lervag/vimtex' Plug 'preservim/nerdtree' Plug 'itchyny/vim-gitbranch' + Plug 'tpope/vim-commentary' call plug#end() @@ -32,16 +33,16 @@ set wildmenu set scrolloff=5 set incsearch set ttimeout ttimeoutlen=25 -"set clipboard=unnamedplus set showtabline=2 set undodir=~/.vim/undo-dir set undofile set backupdir=$HOME/.vim/backups set noshowmode +set showcmd +" set clipboard=unnamedplus " lets let g:vimtex_compiler_method = 'arara' -let maplocalleader = "\\" let mapleader = " " let g:gruvbox_contrast_dark = 'soft' let g:gruvbox_termcolors = '16' @@ -62,10 +63,15 @@ nnoremap w :w nnoremap q :q nnoremap ! :q! nnoremap x :wq +nnoremap h :wincmd h +nnoremap j :wincmd j +nnoremap k :wincmd k +nnoremap l :wincmd l nnoremap n :NERDTreeFocus nnoremap t :NERDTreeToggle nnoremap p :wincmd p -nnoremap v :set paste! number! \| :NERDTreeToggle \| :wincmd p +nnoremap v :set paste! number! +nnoremap i :CocCommand clangd.switchSourceHeader " nerdtree stuff " Start NERDTree. If a file is specified, move the cursor to its window. @@ -101,6 +107,7 @@ function! s:check_back_space() abort return !col || getline('.')[col - 1] =~# '\s' endfunction +" lightline config let g:lightline = { \ 'colorscheme': 'gruvbox', \ 'active': { @@ -108,7 +115,7 @@ let g:lightline = { \ [ 'filename', 'readonly', 'modified' ], \ [ 'gitbranch'] ], \ 'right': [ [ 'lineinfo' ], - \ [ 'fileformat', 'fileencoding', 'filetype' ], + \ [ 'fileformat', 'filetype' ], \ [ 'percent' ] ] \ }, \ 'component_function': { -- cgit v1.2.3