Re: keeping the cursor in the middle of window

2009-04-27 Thread thomas
2009/4/27 Jerry Dai : > 2009/4/15 thomas : >> I use the "scrolloff=a_high_number" trick to have the the cursor in >> the middle of the window.  Of course, when there is not enough lines, >> the cursor is on the top of the window, and this does not annoy me. >> But here is my question: is it possib

Re: A-Left and A-Right not working inside Screen

2009-04-27 Thread Mr.SpOOn
2009/4/27 pansz : > To make sure, launch screen and run vim in it. > use :map > > here means press Ctrl+V, not to verbatim type the text. > > if Vim receives key codes, it should print some thing. So, when I do it for Alt and left-arrow I get: :map ^[[1;3D for the right one: :map ^[[1;3C In

Re: Will custom completion of input() do completion at cursor pos?

2009-04-27 Thread Dasn
On 27/04/09 08:02 +0200, Christian Brabandt wrote: > Hi Dasn! > > On Mo, 27 Apr 2009, Dasn wrote: > > > fun! MyFileComplete(ArgLead, CmdLine, CursorPos) > > let ret=["file1", "file2", "file3"] > > " A lot more other processing > > return ret > > endfun > > > > let cmd = input("T

Re: Can netrw save the bookmark or history of directory

2009-04-27 Thread Charles Campbell
Ricky wrote: > Hi, all > I want netrw save my favorite or history directory when vim startup > next time, then i can use the bookmark which i saved. > Can netrw do like this? Try using the latest netrw (v136h); earlier versions tried using vim's built-in viminfo way to save bookmarks and history w

Re: lcd function and netrw

2009-04-27 Thread Charles Campbell
_sc_ wrote: > oops there is a reason -- with 'autchdir' on i still see the > undesirable behavior from netrw (format options being changed) so i > will be sticking with the BufEnter workaround for the time being > Sounds like I need another example of where the misbehavior occurs again. Chip C

Re: Will custom completion of input() do completion at cursor pos?

2009-04-27 Thread Christian Brabandt
Hi Dasn! On Mo, 27 Apr 2009, Dasn wrote: > I think the complete-functions are for insert-mode completions, > while the input() function works in cmdline. The cursor position I > referred is the cursor when we typing at the prompt of the input() > function, not in the window, I didn't make it

Recognize BOM (byte order mark) in errorformat

2009-04-27 Thread Aleksey
I'm using custom compiler file with Vim to build little test projects. It has errorformat defined like this (just first line as a sample) setlocal errorformat ^= \%f:%l:%c:%*[0-9]:%*[0-9]:\ %*[[ 0-9;m]%tint%*[[ 0-9;m]: \ %m, and the problem is that on Linux with locale set to

Showing portions of long last-lines with 'wrap'

2009-04-27 Thread Tim Chase
I'm fairly certain I've seen some option to twiddle, but I can't come up with the right magic words to disinter the answer from the help. With 'wrap' set (and 'nu' and 'list' set for clarity in this example), I have a document that looks like 1 line1$ 2 $ 3 line3$ 4 @ @ --

RE: Showing portions of long last-lines with 'wrap'

2009-04-27 Thread Gene Kwiecinski
>Can I get a pointer to the right option or place in the help? >(and maybe a redirecting link in the help from "help long-lines" >or under ) Ah! 'display' 'dy', option "lastline": *'display'* *'dy'* 'display' 'dy' string (default "")

Re: Showing portions of long last-lines with 'wrap'

2009-04-27 Thread Tim Chase
Gene Kwiecinski wrote: >> Can I get a pointer to the right option or place in the help? >> (and maybe a redirecting link in the help from "help long-lines" >> or under ) > > Ah! 'display' 'dy', option "lastline" Exactly...a simple :set display+=lastline solved the problem. Thanks! (it

Re: Showing portions of long last-lines with 'wrap'

2009-04-27 Thread Christian Brabandt
Hi Tim! On Mo, 27 Apr 2009, Tim Chase wrote: > where the "@" shows the line continuations at the bottom rows of my > document (line #4 is really long as the last line). I'd like to > show the partial lines so it looks like > > >1 line1$ >2 $ >3 line3$ >4 line

vim sets wrong colors when choosing colorscheme

2009-04-27 Thread Torsten A.
Hello everyone, I checked at vim color scheme test for different color schemes and downloaded a few. But when ever I choose some color scheme it doesn't look even close to whatever scheme I just downloaded. It looks like vim gets all the colors wrong. Particularly the background never changes fro

Re: vim sets wrong colors when choosing colorscheme

2009-04-27 Thread Charles Campbell
Torsten A. wrote: > Hello everyone, > > I checked at vim color scheme test for different color schemes and > downloaded a few. But when ever I choose some color scheme it doesn't > look even close to whatever scheme I just downloaded. It looks like vim > gets all the colors wrong. Particularly the

Please give Quick and Easy compile tips for Vim to support basic UTF-8 / 16

2009-04-27 Thread smu johnson
Hi, I used to run vim 6.0 or so that came with an old Ubuntu installation, and out of the box, it left me edit Japanese UTF-8 type text files. Now, having compiled Vim 7.2 from Bram's source, it doesn't seem to support this out of the box. Instead shows a bunch of hideous ~^09 type characters fo

Re: Please give Quick and Easy compile tips for Vim to support basic UTF-8 / 16

2009-04-27 Thread Raúl Núñez de Arenas Coronado
Saluton smu :) On Mon 27 Apr 2009 19:22 +0200, smu johnson dixit: > Is there a simple arg I can do to simply just get a function Vim > without having to read 500 pages of documentation?  Something like > ./configure --add_basic_utf_support Not as simple as that, but this is, IMHO, the best guid

Re: vim sets wrong colors when choosing colorscheme

2009-04-27 Thread _sc_
On Monday 27 April 2009 11:55 am, Charles Campbell wrote: > > Torsten A. wrote: > > Hello everyone, > > > > I checked at vim color scheme test for different color schemes and > > downloaded a few. But when ever I choose some color scheme it doesn't > > look even close to whatever scheme I just do

Re: vim sets wrong colors when choosing colorscheme

2009-04-27 Thread Charles Campbell
_sc_ wrote: [snip] > another thing that might be useful to suggest is that not all > colorschemes work in vim -- many are coded only for gvim > [snip] I suspect _sc_ is more likely right than where my queries were leading-- ie. are you using vim (and not gvim)? An easy test -- just try gvim

Re: Please give Quick and Easy compile tips for Vim to support basic UTF-8 / 16

2009-04-27 Thread Agathoklis D. Hatzimanikas
On Mon, Apr 27, at 10:22 smu johnson wrote: > Hi, > > I used to run vim 6.0 or so that came with an old Ubuntu installation, and > out of the box, it left me edit Japanese UTF-8 type text files. > > Now, having compiled Vim 7.2 from Bram's source, it doesn't seem to support > this out of the box

Re: Please give Quick and Easy compile tips for Vim to support basic UTF-8 / 16

2009-04-27 Thread smu johnson
Hi, I have done both things, recompiled etc, and still encounter the same problem. sjohn...@web2:~$ vim --version | grep multi -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm *+multi_byte* +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra -perl +postscript sjohn...@web2:~$

Re: vim sets wrong colors when choosing colorscheme

2009-04-27 Thread Dominique Pellé
Torsten A wrote: > Hello everyone, > > I checked at vim color scheme test for different color schemes and > downloaded a few. But when ever I choose some color scheme it doesn't > look even close to whatever scheme I just downloaded. It looks like vim > gets all the colors wrong. ... snip... The

Re: Will custom completion of input() do completion at cursor pos?

2009-04-27 Thread Agathoklis D. Hatzimanikas
On Mon, Apr 27, at 06:28 Dasn wrote: > > On 27/04/09 08:02 +0200, Christian Brabandt wrote: > > Hi Dasn! > > > > On Mo, 27 Apr 2009, Dasn wrote: > > > > > fun! MyFileComplete(ArgLead, CmdLine, CursorPos) > > > let ret=["file1", "file2", "file3"] > > > " A lot more other processing >

Re: vim sets wrong colors when choosing colorscheme

2009-04-27 Thread pansz
Torsten A. 写道: > I checked at vim color scheme test for different color schemes and > downloaded a few. But when ever I choose some color scheme it doesn't > look even close to whatever scheme I just downloaded. It looks like vim > gets all the colors wrong. Particularly the background never chang

Re: Saving words

2009-04-27 Thread sergio
http://www.vim.org/scripts/script.php?script_id=850 for python pydiction http://www.vim.org/scripts/script.php?script_id=2540#0.79 snippets video http://vimeo.com/3535418 http://www.vim.org/scripts/script.php?script_id=1984 video http://www.vimeo.com/2938498 On 26 abr, 08:52, Tim Chase wrote:

Re: Please give Quick and Easy compile tips for Vim to support basic UTF-8 / 16

2009-04-27 Thread pansz
smu johnson 写道: > Hi, > > I have done both things, recompiled etc, and still encounter the same > problem. > Big versions have multibyte support by default, what you need is a correct .vimrc file. the minimum .vimrc file to get things work: set nocompatible set encoding=utf-8 set fileencodin

Re: A-Left and A-Right not working inside Screen

2009-04-27 Thread pansz
Mr.SpOOn 写道: > In this case, anyway, on my machine, the mappings (these from my .vimrc) work. > > On the server, via ssh, it prints the same characters, but normally > they don't work. While if I redefine them directly from vim, doing: > > :map ^[[1;3D :tabprevious > :map ^[[1;3C :tabnext > > T

Re: Please give Quick and Easy compile tips for Vim to support basic UTF-8 / 16

2009-04-27 Thread Dominique Pellé
smu johnson wrote: > Hi, > > I have done both things, recompiled etc, and still encounter the same > problem. > > sjohn...@web2:~$ vim --version | grep multi > -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte > +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra -pe