Tip #402: Just using space-bar: jump between splitted windows and open them wide
tip karma |
Rating 11/8, Viewed by 656
|
created: |
|
January 14, 2003 9:30 |
|
complexity: |
|
basic |
author: |
|
Klaus Horsten |
|
as of Vim: |
|
6.0 |
Jump between splitted windows and open them wide.
Use only the space-bar for this.
Press space-bar once and you jump to the next window.
Press it twice and the window opens wide for better reading - this works
for horizontal and vertically open windows.
Put this in your vimrc:
"Jump between windows
map <space> <c-W>w
"Open window wide
map <space><space> :call OpenSplittedWindowWide()<cr>
function OpenSplittedWindowWide()
normal ^W|
normal ^W20+
endfunction
Note:
^W must be generated by vim (must be one character).
-------------------------------
The first tip is not new I know it - to jump between windows using the space-bar.
But the combination jumping and opening wide with just using the space-bar this is new.
If not, please apologize, I cannot know all the tips and possibilites published.
<<A mapping for easy switching between buffers |
Request for tip - interleaving '.' and '@:' >>
Additional Notes
|