This commit is contained in:
TheK4n 2022-07-31 17:50:49 +03:00
parent afb5855c79
commit 8db9a1f092

View File

@ -178,9 +178,9 @@ autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,
" run file by filetype
if (&filetype=='python')
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal python3 % <CR> G <CR>
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal python3 % <CR> :set nocursorline number norelativenumber <CR> G <CR>
elseif (&filetype=='go')
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal go run % <CR> G <CR>
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal go run % <CR> :set nocursorline number norelativenumber <CR> G <CR>
elseif (&filetype=='vim')
nnoremap <silent> <special> <F10> :so % <CR>
endif