vim
This commit is contained in:
parent
afb5855c79
commit
8db9a1f092
@ -178,9 +178,9 @@ autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,
|
|||||||
|
|
||||||
" run file by filetype
|
" run file by filetype
|
||||||
if (&filetype=='python')
|
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')
|
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')
|
elseif (&filetype=='vim')
|
||||||
nnoremap <silent> <special> <F10> :so % <CR>
|
nnoremap <silent> <special> <F10> :so % <CR>
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user