From 6b88df039693d9c19333fc7aa9ec1db7863653ed Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 2 Nov 2010 12:41:44 +0900 Subject: [PATCH] - Improved (unite_select_next_line) and (unite_select_previous_line). --- autoload/unite/mappings.vim | 8 +++++--- doc/unite.txt | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/autoload/unite/mappings.vim b/autoload/unite/mappings.vim index 647288a7..f3560c4c 100644 --- a/autoload/unite/mappings.vim +++ b/autoload/unite/mappings.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: mappings.vim " AUTHOR: Shougo Matsushita -" 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 @@ -56,8 +56,10 @@ function! unite#mappings#define_default_mappings()"{{{ inoremap (unite_delete_backward_line) repeat("\", col('.')-(len(b:unite.prompt)+1)) inoremap (unite_delete_backward_word) col('.') <= (len(b:unite.prompt)+1) ? '' : "\" inoremap (unite_delete_backward_path) col('.') <= (len(b:unite.prompt)+1) ? '' : delete_backward_path() - inoremap (unite_select_next_line) pumvisible() ? "\" : line('.') == line('$') ? "\\\" : "\\" - inoremap (unite_select_previous_line) pumvisible() ? "\" : line('.') == 2 ? "\\" : line('.') == 3 ? "\\" : "\\" + inoremap (unite_select_next_line) pumvisible() ? "\" : line('.') == line('$') ? "\\\" + \ : line('.') == 2 ?"\\\" : "\\" + inoremap (unite_select_previous_line) pumvisible() ? "\" : line('.') == 2 ? "\\" + \ : line('.') == 4 ?"\\\" : "\\" inoremap (unite_select_next_page) pumvisible() ? "\" : repeat("\", winheight(0)) inoremap (unite_select_previous_page) pumvisible() ? "\" : repeat("\", winheight(0)) inoremap (unite_do_default_action) :call unite#mappings#do_action(b:unite.context.default_action) diff --git a/doc/unite.txt b/doc/unite.txt index 82ca1720..e0bc8281 100644 --- a/doc/unite.txt +++ b/doc/unite.txt @@ -292,6 +292,9 @@ BUGS *unite-bugs* ============================================================================== CHANGELOG *unite-changelog* +2010-11-02 +- Improved (unite_select_next_line) and (unite_select_previous_line). + 2010-11-01 - Improved redraw. - Fixed parents.