disabling f1 key in vim

This commit is contained in:
Andrew Davidson 2023-07-20 10:13:41 -07:00
parent 3e1f37b045
commit e12faa4bf2
Signed by: amd
SSH key fingerprint: SHA256:wVzFOuz2n/yUVVBFkpZQ0AOX6guwdUUzSeKWr8aLUiU

View file

@ -1,7 +1,6 @@
" ==================== Plugins ==================== " ==================== Plugins ====================
call plug#begin() call plug#begin()
" Git integration " Git integration
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
@ -193,6 +192,9 @@ map q: :q
" Allow saving of files as sudo when I forgot to start vim using sudo. " Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null % cmap w!! w !sudo tee > /dev/null %
" Disable F1 key
nmap <F1> <nop>
" Go shortcuts just for .go files " Go shortcuts just for .go files
autocmd FileType go nmap <leader>r <Plug>(go-run) autocmd FileType go nmap <leader>r <Plug>(go-run)
autocmd FileType go nmap <leader>t <Plug>(go-test) autocmd FileType go nmap <leader>t <Plug>(go-test)