Skip to main content

Thread: python specific mapping in vim


hi, trying add mapping .vimrc file allow me quick imports in python. tried following,

autocmd bufread,bufnewfile *.py imap ,snm import scipy sci<cr>import matplotlib mpl<cr>import matplotlib.pyplot plt<cr><cr>

autocmd filetype imap ,snm import scipy as...

, imap... python.vim in ftplugin folder.

in cases mapping not work long not open python file, should. after opening python file becomes available in other buffers well. expected command exclusively available buffers contain python file. missing here?

hi,
mapping global default except make specific buffer. adding <buffer> map command, e.g.:

code:
imap <buffer> ,snm etc.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] python specific mapping in vim


Ubuntu

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい