Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to remap @ to a different key to delete a buffer? #552

Open
mattjmorrison opened this issue Apr 4, 2014 · 1 comment
Open

Comments

@mattjmorrison
Copy link

I would really like the ability to remap the @ to delete a buffer to a different key. The situation is actually a strange one but I don't think I have any other alternative. If you are curious you can read into it here.

The tl;dr is that I'm using vim within tmux and C-Space is my tmux leader, which means that C-@ is also my tmux leader by weird accidental side effect.

I figured that being able to remap @ for ctrlp is going to be much less friction than recompiling tmux and doing something with ctrl characters in xterm.

@ptrin
Copy link

ptrin commented Apr 10, 2014

@mattjmorrison It sounds like you're using the script @kien posted in #280 , not an actual Ctrl-p feature.

Just change the mapping in this function:

func! MyCtrlPMappings()
    nnoremap <buffer> <silent> <c-@> :call <sid>DeleteBuffer()<cr>
endfunc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants