I am writing a vim plugin that at one point define a buffer only mapping :
function! s:DoStuff() tabnew " ... nnoremap <buffer> q :tabclose<CR> endfunction call s:DoStuff()
Then I call my file for testing with :
vim -u plugin.vim
But when in my newly created tab and I hit
q I get :
Instead of inserting
tabclose and actually closing the tab. When I hit
enter to excute the command I get an error :
Do you have an idea ?
I am on OS X with tmux and MacVim 7.4.383.