Python neovim.autocmd() Examples
The following are 1
code examples of neovim.autocmd().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
neovim
, or try the search function
.
Example #1
Source File: vim_pudb.py From pudb.vim with MIT License | 5 votes |
def launchdebugtab(self): # if necessary, get the virtual env setup # autocmd FileType python nnoremap <silent> <leader>td :tabnew # term://source ${HOME}/.virtualenvs/$(cat .dbve)/bin/activate # && python -mpudb %<CR>:startinsert<CR> new_term_tab_cmd = 'tabnew term://{} -m pudb.run {}'.format( self.launcher(), self.entrypoint()) __logger__.info('Starting debug tab with command:\n {}'.format( new_term_tab_cmd)) self.nvim.command(new_term_tab_cmd) # we have to wait for the terminal to be opened... self.nvim.command('startinsert')