Skip to content

Commit

Permalink
- Improved <Plug>(unite_select_next_line) and <Plug>(unite_select_pre…
Browse files Browse the repository at this point in the history
…vious_line).
  • Loading branch information
Shougo committed Nov 2, 2010
1 parent 77f6e98 commit 6b88df0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autoload/unite/mappings.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: mappings.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 29 Oct 2010
" Last Modified: 02 Nov 2010
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -56,8 +56,10 @@ function! unite#mappings#define_default_mappings()"{{{
inoremap <expr><buffer> <Plug>(unite_delete_backward_line) repeat("\<C-h>", col('.')-(len(b:unite.prompt)+1))
inoremap <expr><buffer> <Plug>(unite_delete_backward_word) col('.') <= (len(b:unite.prompt)+1) ? '' : "\<C-w>"
inoremap <expr><buffer> <Plug>(unite_delete_backward_path) col('.') <= (len(b:unite.prompt)+1) ? '' : <SID>delete_backward_path()
inoremap <expr><buffer> <Plug>(unite_select_next_line) pumvisible() ? "\<C-n>" : line('.') == line('$') ? "\<C-Home>\<End>\<Down>" : "\<Home>\<Down>"
inoremap <expr><buffer> <Plug>(unite_select_previous_line) pumvisible() ? "\<C-p>" : line('.') == 2 ? "\<C-End>\<Home>" : line('.') == 3 ? "\<End>\<Up>" : "\<Home>\<Up>"
inoremap <expr><buffer> <Plug>(unite_select_next_line) pumvisible() ? "\<C-n>" : line('.') == line('$') ? "\<C-Home>\<End>\<Down>"
\ : line('.') == 2 ?"\<Home>\<Down>\<Down>" : "\<Home>\<Down>"
inoremap <expr><buffer> <Plug>(unite_select_previous_line) pumvisible() ? "\<C-p>" : line('.') == 2 ? "\<C-End>\<Home>"
\ : line('.') == 4 ?"\<End>\<Up>\<Up>" : "\<Home>\<Up>"
inoremap <expr><buffer> <Plug>(unite_select_next_page) pumvisible() ? "\<PageDown>" : repeat("\<Down>", winheight(0))
inoremap <expr><buffer> <Plug>(unite_select_previous_page) pumvisible() ? "\<PageUp>" : repeat("\<Up>", winheight(0))
inoremap <silent><buffer> <Plug>(unite_do_default_action) <C-o>:call unite#mappings#do_action(b:unite.context.default_action)<CR>
Expand Down
3 changes: 3 additions & 0 deletions doc/unite.txt
Expand Up @@ -292,6 +292,9 @@ BUGS *unite-bugs*
==============================================================================
CHANGELOG *unite-changelog*

2010-11-02
- Improved <Plug>(unite_select_next_line) and <Plug>(unite_select_previous_line).

2010-11-01
- Improved redraw.
- Fixed parents.
Expand Down

0 comments on commit 6b88df0

Please sign in to comment.