Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

vim run python current file

autocmd Filetype python nnoremap <buffer> <F5> :w<CR>:ter python2 "%"<CR>
autocmd Filetype python nnoremap <buffer> <F6> :w<CR>:vert ter python3 "%"<CR>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vim #run #python #current #file
ADD COMMENT
Topic
Name
4+7 =