home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / editor-faq / vim / text0003.txt < prev   
Encoding:
Text File  |  1998-02-10  |  3.8 KB  |  104 lines

  1.  
  2. 6.10 Why does my Caps Lock affect all the keys characters for all the keys
  3. instead of just the letters?
  4.  
  5. It's actually caused by Windows 95. When CapsLock is down, it acts just as
  6. if Shift were being held down: everything gets shifted, not just the
  7. alphabetical keys.
  8.  
  9. 6.11 How do I change Vim's window size in Windows?
  10.  
  11. If ``:set lines=##'' doesn't work for you, then you should use the ``:mode''
  12. command. Look up ``:h :mode'' for more info.
  13.  
  14. 7 UNIX-SPECIFIC QUESTIONS
  15.  
  16.  
  17. 7.1 How do I turn off the message ``Thanks for flying Vim'' on Unix
  18. stations?
  19.  
  20. When using Vim in an xterm it renames the title of that window to ``Thanks
  21. for flying Vim'' on exit. Use ``:set notitle'' to stop this behavior.
  22.  
  23.  
  24. 7.2 How do I prevent <Ctrl-Z> from suspending Vim?
  25.  
  26. Map <Ctrl-Z> to prevent the suspending. Here are some suggestions:
  27.  
  28. 1.   Make <Ctrl-Z> do nothing:
  29.  
  30.      map <C-Z> <C-V><C-V>
  31.  
  32. 2.   Make <Ctrl-Z> start a shell:
  33.  
  34.      :map <C-Z> :shell<CR>
  35.  
  36. 3.   Make <Ctrl-Z> give an error message:
  37.  
  38.      :map <C-Z> :"suspending disabled<CR>
  39.  
  40. For the last example, the double quote is necessary in order to keep the
  41. message on the status line.
  42.  
  43. 7.3 How can I make Vim faster on a Unix station?
  44.  
  45. The GUI support in Vim 4.0 can slow down the startup time noticeably. Until
  46. Vim supports dynamic loading, you can speed up the startup time by compiling
  47. two different versions of Vim: one with the GUI and one without the GUI and
  48. install both. Make sure you remove the link from $bindir/gvim to $bindir/vim
  49. when installing the GUI version, though.
  50.  
  51. If screen updating is your problem, you can run Vim in screen. screen is an
  52. ascii terminal multiplexer. The latest version can be found at
  53. <URL:ftp://ftp.uni-erlangen.de:/pub/utilities/screen>.
  54.  
  55. 7.4 In Unix, how do I make Vim more colorful?
  56.  
  57. You can change some termcap values to send to the screen the proper codes to
  58. change some colors (providing your terminal supports color). Here are some
  59. examples of how to do this if you do ``:h unix'' but it seems as though they
  60. don't work all that well. But they help to understand what has to be done:
  61.  
  62. :set t_me=<Esc>[0;1;36m     " normal mode (undoes t_mr and t_md)
  63. :set t_mr=<Esc>[0;1;33;44m  " reverse (invert) mode
  64. :set t_md=<Esc>[1;33;41m    " bold mode
  65. :set t_se=<Esc>[1;36;40m    " standout end
  66. :set t_so=<Esc>[1;32;45m    " standout mode
  67. :set t_ue=<Esc>[0;1;36m     " underline end
  68. :set t_us=<Esc>[1;32m       " underline mode start
  69.  
  70. Quoting Tony Nugent:
  71.  
  72.      You can do some interesting things by putting ansi colour
  73.      sequences into those capabilities. What's given here are just
  74.      examples, and some combinations don't work very well. You need to
  75.      discover for yourself a configuration that works. For example,
  76.      end-modes need to switch everything back to normal as well as turn
  77.      things off.
  78.  
  79.      Just load ~/.vimrc, play around with the values, save it and then
  80.      see what it looks like by sourcing it (:so ~/.vimrc).
  81.  
  82.      Don't forget to do things like ``:/<Ctrl-D>'' and ``:map'' to see
  83.      all the different effects. And don't forget about the
  84.      ``:set highlight='' string to fine-tune how the different
  85.      capabilities are used.
  86.  
  87.      BTW, something like this also works for DOS and Win32 Vims! So it
  88.      should also work well with windows or any ansi- and vt100-
  89.      compatible terminal mode capable of displaying colours (which
  90.      includes all colour pc's). It doesn't work so well in plain old
  91.      xterm's (YMMV - your milage may vary).
  92.  
  93.      You can find a list of terminal codes here:
  94.  
  95.      <URL:http://www.cs.utk.edu/~shuford/terminal_index.html>
  96.      <URL:ftp://cs.utk.edu/pub/shuford/terminal/>
  97.      <URL:ftp://gatekeeper.dec.com/pub/DEC/termcaps>
  98.  
  99. -- 
  100. Laurent Duperval, Vim FAQ Maintainer <laurent@Grafnetix.COM>
  101. Vim Pages:       http://www.vim.org/           Vim Mailing List: vim@vim.org
  102. Vim FAQ:         http://www.vim.org/faq/
  103. Vim FAQ Home:    http://www.grafnetix.com/~laurent/vim/faq.html
  104.