vim run script nmap
This commit is contained in:
parent
8db9a1f092
commit
318b9ee9f0
@ -178,11 +178,11 @@ 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> :set nocursorline number norelativenumber <CR> G <CR>
|
||||
nnoremap <silent> <Leader>r :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> :set nocursorline number norelativenumber <CR> G <CR>
|
||||
nnoremap <silent> <Leader>r :tabnew % <CR> :terminal go run % <CR> :set nocursorline number norelativenumber <CR> G <CR>
|
||||
elseif (&filetype=='vim')
|
||||
nnoremap <silent> <special> <F10> :so % <CR>
|
||||
nnoremap <silent> <Leader>r :so % <CR>
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user