remove the magic from the <c-j>/<c-k> mappings

previoulsy, <c-k>/<c-j> did magic stuff if the selected node was a file.
i.e. jumped to the parent/parents next sibling. I chose to remove this
behaviour as it is more confusing than helpful.
This commit is contained in:
Martin Grenfell
2008-06-22 00:35:50 +12:00
parent 5ce5c62611
commit 6343639193
2 changed files with 3 additions and 16 deletions

View File

@@ -3001,18 +3001,7 @@ endfunction
function! s:JumpToSibling(forward)
let currentNode = s:GetSelectedNode()
if !empty(currentNode)
if !currentNode.path.isDirectory
if a:forward
let sibling = currentNode.parent.FindSibling(1)
else
let sibling = currentNode.parent
endif
else
let sibling = currentNode.FindSibling(a:forward)
endif
let sibling = currentNode.FindSibling(a:forward)
if !empty(sibling)
call s:PutCursorOnNode(sibling, 1, 0)