On 12/09/11 18:29, Ven Tadipatri wrote:
1)Hold ctrl+w, release w, then hit the -/_ key -- the font
size changes. You can undo this by doing ctrl+w, then shift
and the +/= key. I think this is some terminal hotkey, not
something in vi (I'm using CentOS).
yes, this is a terminal-specific thing. I tried in an xterm and
my default rxvt and neither changed the font (similar
non-occurrence when remoted into vim/gvim running on a Win32 box
at work). I don't know if you're using Gnome Terminal or some
other terminal emulator, but control-+ and control+- are common
keychords for increasing/decreasing the font in other
applications such as Firefox, Chrome, etc.
2)Hold ctrl+w, release both keys, then hold shift, and press
the -/_ key...ok, wait that was not a new window, rather it
maximizes the current window/buffer (could someone refresh me
on the register/buffer/window distinction?)
Register
--------
something akin to the copy/paste hold space. Can contain other
things like the current file name, the alternate file name,
expression-evaluation, etc. Populated with things like
"aY puts the current line in register "a"
and the lettered (a-z) registers can be appended-to by using the
upper-case version when populating them such as
"AY
Managed primarily through yanks/deletes into a register name
(though certain ones such as the filename ones are managed by Vim)
Buffer
------
An internal representation of a file. Also contains things like
undo history, etc.
Window
------
A view into a buffer. Can split the current display/tab into
multiple windows, with zero or more views into your various
buffers. Split windows can be resized, closed, or maximized to
the extent of the containing session/instance (the gvim window or
the terminal), modulo various settings controlling the min window
height/width, console height, visibility of GUI chrome (menu,
toolbar, scrollbars, etc). Managed primarily through the
control+W family of commands.
Tab
---
Contains multiple windows in an individual Vim session. Managed
primarily through the :tab* family of commands.
Session/Instance
----------------
One copy of Vim running in memory. Gvim can be
maximized/minimized/resized/pinned/shaded per your OS/GUI
controls; terminal vim only gets min/max/resize/pin/shade
happening via the containing terminal window. Managed by your
OS/shell.
So your control-W concerns with -/+ only seem to be an issue if
your containing environment (e.g. Gnome Terminal) intercepts them
and does unexpected things with them :) Allow me to recommend
xterm or rxvt :)
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php