This commit is contained in:
TheK4n 2022-08-05 22:09:00 +03:00
parent e638c1c7ea
commit ab87c4cbe6

View File

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