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

Open search results vertically goes to left most instead of right. #241

Closed
yujinyuz opened this issue Mar 26, 2018 · 2 comments
Closed

Open search results vertically goes to left most instead of right. #241

yujinyuz opened this issue Mar 26, 2018 · 2 comments

Comments

@yujinyuz
Copy link

I have enabled

set splitright

on my ~/.vimrc

But every time I do a search and press v to open the file vertically, it goes to the left most pane and not opening a new pane to the right.

Can anyone help me with this?

@IlyaUmanets
Copy link

@yujinyuz, hey, how did you manage it?

@Integralist
Copy link

Looks like s:ack_mappings will extend the data structure using g:ack_mappings if set...

" help Ack mappings to respect my split settings
let g:ack_mappings = {
  \ "h": "<C-W><CR>:exe 'wincmd ' (&splitbelow ? 'J' : 'K')<CR><C-W>p<C-W>J<C-W>p",
  \ "v": "<C-W><CR>:exe 'wincmd ' (&splitright ? 'L' : 'H')<CR><C-W>p<C-W>J<C-W>p"}

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

3 participants