vim bind
This commit is contained in:
parent
98e6277812
commit
a82cc432dc
@ -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
|
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,match,case
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" run file by filetype
|
" run file by filetype
|
||||||
if (&filetype=='python')
|
if (&filetype=='python')
|
||||||
nnoremap <silent> <special> <F10> :!python3 % <CR>
|
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal python3 % <CR> G <CR>
|
||||||
elseif (&filetype=='go')
|
elseif (&filetype=='go')
|
||||||
nnoremap <silent> <special> <F10> :!go run % <CR>
|
nnoremap <silent> <special> <F10> :tabnew % <CR> :terminal go run % <CR> G <CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user