fix
This commit is contained in:
parent
e638c1c7ea
commit
ab87c4cbe6
@ -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>
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user