]> code.delx.au - dotfiles/commitdiff
Moved some vim macros into macros.vim
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 23 Oct 2007 12:28:27 +0000 (22:28 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 23 Oct 2007 12:28:27 +0000 (22:28 +1000)
.vim/display.vim
.vim/macros.vim

index 3397c4c68759d3188f1c9c6d53855f6d16f33389..0456e6f8f30326ed22b17061eeb904a03a68ee42 100644 (file)
@@ -33,8 +33,6 @@ set wildmode=longest,list
 
 " Allow splits to have 0 height (use C-W _)
 set wmh=0
-map <C-J> <C-W>j<C-W>_
-map <C-K> <C-W>k<C-W>_
 
 " Always keep one line of context around the cursor
 set scrolloff=1
index 1ceb24c1865f28287282adb9433e43d07d6c794e..ec7037b37c161e67e1c4a0d01a1c73cf9c3b995e 100644 (file)
@@ -24,6 +24,10 @@ noremap Y y$
 nnoremap <C-n> :next<CR>
 nnoremap <C-p> :prev<CR>
 
+" CTRL-J/K to move up and down, collapsing open windows
+map <C-J> <C-W>j<C-W>_
+map <C-K> <C-W>k<C-W>_
+
 " Press CTRL-X after pasting something to fix up formatting
 imap <C-z> <ESC>u:set paste<CR>.:set nopaste<CR>i