nvim: bindings to edit/reload config

This commit is contained in:
Charles Gould 2020-07-23 17:01:06 -04:00
parent bf67766374
commit 7ebcff5557

View File

@ -18,6 +18,11 @@ Plug 'https://github.com/tpope/vim-sleuth' " heuristically set buffer options
Plug 'https://github.com/vim-airline/vim-airline' " fancy statusline Plug 'https://github.com/vim-airline/vim-airline' " fancy statusline
call plug#end() call plug#end()
" Quickly edit/reload this configuration file
" To return to previous file, type ':edit #'
nnoremap gev :edit $MYVIMRC<Return>
nnoremap gsv :source $MYVIMRC<Return>
" hide line numbers at startup, toggle with F2 " hide line numbers at startup, toggle with F2
set nonumber norelativenumber set nonumber norelativenumber
nnoremap <silent> <F2> :set number! relativenumber!<Return> nnoremap <silent> <F2> :set number! relativenumber!<Return>