This commit is contained in:
TheK4n 2022-07-30 11:13:14 +03:00
parent 98e6277812
commit a82cc432dc

View File

@ -120,11 +120,12 @@ set t_Co=256
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,match,case
" run file by filetype
if (&filetype=='python')
nnoremap <silent> <special> <F10> :!python3 % <CR>
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal python3 % <CR> G <CR>
elseif (&filetype=='go')
nnoremap <silent> <special> <F10> :!go run % <CR>
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal go run % <CR> G <CR>
endif