Class: Window

Inherits:
Object
  • Object
show all
Defined in:
lib/ver/layout/vim.rb

Instance Method Summary collapse

Instance Method Details

#closeObject

Close this window to hide it, asks if buffer was modified, will do nothing if current window is last window on screen.



37
38
# File 'lib/ver/layout/vim.rb', line 37

def close
end

#close!Object

Same as #close, but will not ask anything.



41
42
# File 'lib/ver/layout/vim.rb', line 41

def close!
end

#go_above(n = nil) ⇒ Object

Focus the nth window above. Uses insert cursor position to select between alternatives.



55
56
# File 'lib/ver/layout/vim.rb', line 55

def go_above(n = nil)
end

#go_below(n = nil) ⇒ Object

Focus the nth window below. Uses insert cursor position to select between alternatives.



50
51
# File 'lib/ver/layout/vim.rb', line 50

def go_below(n = nil)
end

#go_left(n = nil) ⇒ Object

Focus the nth window to the left. Uses insert cursor position to select between alternatives.



60
61
# File 'lib/ver/layout/vim.rb', line 60

def go_left(n = nil)
end

#go_right(n = nil) ⇒ Object

Focus the nth window to the right. Uses insert cursor position to select between alternatives.



65
66
# File 'lib/ver/layout/vim.rb', line 65

def go_right(n = nil)
end

#new_horizontal(n = nil) ⇒ Object

Create a new window and start editing an empty file in it. Make new window N high (default is to use half the existing height). Reduces the current window height to create room.



18
19
# File 'lib/ver/layout/vim.rb', line 18

def new_horizontal(n = nil)
end

#new_vertical(n = nil) ⇒ Object

Like #new_horizontal but split vertically.



22
23
# File 'lib/ver/layout/vim.rb', line 22

def new_vertical(n = nil)
end

#onlyObject

Make this the only window on the screen. All other windows are #closed.



45
46
# File 'lib/ver/layout/vim.rb', line 45

def only
end

#quitObject

Quit current window. When quitting the last window (not counting symbolic ones), exit VER. Asks before unsaved changes are abandoned.



28
29
# File 'lib/ver/layout/vim.rb', line 28

def quit
end

#quit!Object

Same as #quit, but doesn’t ask if buffer was modified.



32
33
# File 'lib/ver/layout/vim.rb', line 32

def quit!
end

#split_horizontal(n = nil) ⇒ Object

Split current window in two. The result is two viewports on the same file. Make new window N high (default is to use half the height of the current window). Reduces the current window height to create room (and others, if the ‘equalalways’ option is set, ‘eadirection’ isn’t “hor”, and one of the mis higher than the current or the new window.



8
9
# File 'lib/ver/layout/vim.rb', line 8

def split_horizontal(n = nil)
end

#split_vertical(n = nil) ⇒ Object

Like #split_horizontal, but split vertically.



12
13
# File 'lib/ver/layout/vim.rb', line 12

def split_vertical(n = nil)
end