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

Why edit ctrlp.vim file to map key not work for me? #784

Open
woshichuanqilz opened this issue Jan 26, 2020 · 0 comments
Open

Why edit ctrlp.vim file to map key not work for me? #784

woshichuanqilz opened this issue Jan 26, 2020 · 0 comments

Comments

@woshichuanqilz
Copy link

already check this link ,

It is work for me.

But why I change the ctrlp.vim in autoload dir like this not work for me.


" Keymaps
let [s:lcmap, s:prtmaps] = ['nn <buffer> <silent>', {
	\ 'PrtBS()':              ['<bs>', '<c-]>'],
	\ 'PrtDelete()':          ['<del>'],
	\ 'PrtDeleteWord()':      ['<c-w>'],
	\ 'PrtClear()':           ['<c-u>'],
	\ 'PrtSelectMove("j")':   ['<c-j>', '<down>'],
	\ 'PrtSelectMove("k")':   ['<c-k>', '<up>'],
	\ 'PrtSelectMove("t")':   ['<Home>', '<kHome>'],
	\ 'PrtSelectMove("b")':   ['<End>', '<kEnd>'],
	\ 'PrtSelectMove("u")':   ['<PageUp>', '<kPageUp>'],
	\ 'PrtSelectMove("d")':   ['<PageDown>', '<kPageDown>'],
	\ 'PrtHistory(-1)':       ['<c-n>'],
	\ 'PrtHistory(1)':        ['<c-p>'],
	\ 'AcceptSelection("e")': ['<cr>', '<2-LeftMouse>'],
	\ 'AcceptSelection("h")': ['<c-x>', '<c-cr>', '<c-s>'],
	\ 'AcceptSelection("t")': ['<c-t>'],
"add this line here"
	\ 'AcceptSelection("t")': ['<cr>'], 
	\ 'AcceptSelection("v")': ['<c-v>', '<RightMouse>'],


@woshichuanqilz woshichuanqilz changed the title how to use cr in ctrlp panel to open a new file in new tab not current buffer? Why edit ctrlp.vim file to map key not work for me? Jan 26, 2020
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

1 participant