From b81a02695865d7573f045578a98493d22901aeb9 Mon Sep 17 00:00:00 2001 From: randomuser Date: Wed, 30 Mar 2022 21:45:56 -0500 Subject: [PATCH] more neovim stuff! --- nvim/colors/earth.vim | 2 ++ nvim/init.vim | 25 +++++++++++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/nvim/colors/earth.vim b/nvim/colors/earth.vim index dec85e8..da43b28 100644 --- a/nvim/colors/earth.vim +++ b/nvim/colors/earth.vim @@ -41,3 +41,5 @@ hi VertSplit ctermbg=NONE ctermfg=white cterm=NONE hi StatusLine ctermbg=black ctermfg=white cterm=NONE gui=NONE hi StatusLineNC ctermbg=white ctermfg=black cterm=NONE gui=NONE + +hi SpellBad ctermbg=NONE ctermfg=red cterm=NONE diff --git a/nvim/init.vim b/nvim/init.vim index d91ebf4..5f7b6fb 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -7,20 +7,34 @@ let mapleader = " " " defined settings set number set encoding=utf8 +set list set lcs=tab:->,trail:_,eol:^ set clipboard=unnamedplus +set spell +set spelllang=en_us colorscheme earth -" shortcuts +" shortcuts {{{ +" toggle line numbers and listchars nnoremap ym :set number!:set list! - +" weather nnoremap w :!curl -s wttr.in/?0T +" vimrc thing nnoremap rr :source ~/.config/nvim/init.vim nnoremap re :edit ~/.config/nvim/init.vim -nnoremap m :make - +" show the file explorer +nnoremap fs :Lexplore +" show the shortcuts in the vimrc +nnoremap ke :e ~/.config/nvim/init.vim gg/" shortcutszt +" jk to escape insert mode inoremap jk inoremap :echo "use jk instead!"2gsi +" go back to the previous error, then correct +inoremap u[s1z=`]au +inoremap zgi +nnoremap zg + +" }}} " autocmds au Filetype python setl et ts=4 sw=4 @@ -32,3 +46,6 @@ set statusline+=\ set statusline+=%r%m%q set statusline+=%= set statusline+=%y\ %B\ %l:%c:%p + +" netrw +let g:netrw_banner=0