diff --git a/init.vim b/init.vim index 378cebc..1cfa304 100644 --- a/init.vim +++ b/init.vim @@ -32,15 +32,30 @@ tnoremap " clear search with F2 nnoremap noh -" clear trailing spaces with F3 -nnoremap :%s/\s *$//g +" Use "," as leader +let mapleader = "," -" show Vim's true competitor with Ctrl-F1 -nnoremap :!open https://youtu.be/jn40Ugz0vuk +" Switch between Windows with: Leader w +nnoremap w + +" Show next buffer with: Leader n +nnoremap n :bn + +" Delete buffer with: Leader d +nnoremap d :bd + +" clear trailing spaces with: Leader t s +nnoremap ts :%s/\s *$//g + +" Reload config with: Leader R +nnoremap R :source ~/.config/nvim/init.vim + +" show Vim's true competitor with: Leader r c m +nnoremap rcm :!open https://youtu.be/jn40Ugz0vuk " COLORSCHEME -" set colorscheme to onedark.vim for nvim and airline +" set colorscheme to onedark.im for nvim and airline packadd! onedark.vim colorscheme onedark let g:airline_theme='onedark'