Re: [HELP] A problem about minibufexpl.vim

2011-12-11 Thread Alessandro Antonello
2011/12/9 zhang listar listarmings...@gmail.com: Hi, all. Minibufexpl.vim is a handy plugin. But a problem bothers me for a long time. When I use :bdelete to close a buffer, then the colors of other buffers disappear, that is, the background color becomes black, and the foreground color

Re: Stupid question

2011-12-11 Thread Eric Weir
On Dec 10, 2011, at 6:42 PM, Taylor Hedberg wrote: Eric Weir, Sat 2011-12-10 @ 18:38:14-0500: Perhaps is more a wish than a question. I think I know the answer. Nevertheless, can vim search on files not open in it? :vimgrep does exactly that. Wow! Great! I'm a vim newbie-relatively. I've

Re: Stupid question

2011-12-11 Thread Eric Weir
On Dec 10, 2011, at 6:47 PM, Marc Weber wrote: Excerpts from Eric Weir's message of Sun Dec 11 00:38:14 +0100 2011: Perhaps is more a wish than a question. I think I know the answer. Nevertheless, can vim search on files not open in it? solution 1) use external grep like commands: set

call to iconv(...) missing somewhere in the code?

2011-12-11 Thread Paul Maier
Hi, German message output is broken when encoding=UTF-8. Maybe calls to convert messages to the current encoding (see :help iconv) are missing in the code? To reproduce here are 2 examples among many others: 1. example: - open new gvim - :set enc=UTF-8 - :set enc=lalala...

Re: call to iconv(...) missing somewhere in the code?

2011-12-11 Thread Tony Mechelynck
On 11/12/11 13:14, Paul Maier wrote: Hi, German message output is broken when encoding=UTF-8. Maybe calls to convert messages to the current encoding (see :help iconv) are missing in the code? To reproduce here are 2 examples among many others: 1. example: - open new gvim - :set

Re: How to fold by expression using a function?

2011-12-11 Thread wolfv
Thanks again Ben. I was having the problem you described. Adding this line to the vimrc file fixed it: au BufRead,BufNewFile *.txt so C:\Program Files (x86)\Vim\vimfiles \ftplugin\markdown.vim Folding is the only part of markdown I use, so this works for my situation. On Dec 3, 8:03 pm, Ben

Replace

2011-12-11 Thread Marcin Szamotulski
Dear vim_use, I wrote a function which replaces the vim r normal command. But then vim the normal command . breaks. The simplest way to reproduce it is to use: fun! Replace() let char=nr2char(getchar()) exe normal! r.char endfun nmap r :call Replace()CR then rx will replace a letter the

Re: :make Success

2011-12-11 Thread Paul
On Saturday, 26 November, 2011 at 23:22:16 GMT, Paul wrote: I want to do this, but only have the ls bit executed if make is successful: :make | !ls I expanded on this by doing a make automatically when a buffer is saved: autocmd BufWritePost *.pl make Now, I can do this: :w |

Re: :make Success

2011-12-11 Thread Tony Mechelynck
On 11/12/11 21:50, Paul wrote: On Saturday, 26 November, 2011 at 23:22:16 GMT, Paul wrote: I want to do this, but only have the ls bit executed if make is successful: :make | !ls I expanded on this by doing a make automatically when a buffer is saved: autocmd BufWritePost *.pl make Now, I

How to put a character the statusline?

2011-12-11 Thread Bee
I know how to put the decimal and hex equivalent of the character under the cursor in the statusline: set statusline+=%b decimal byte '98' set statusline+=\x%02B hex byte 'x62' How to put the character itself in the statusline? -Bill -- You received this message from the vim_use

Strange font rendering in gVIM 7.3 in Unix

2011-12-11 Thread Jerry
I recently compiled a VIM 7.3 under Unix. I am using all default options. When opening GVIM, I found that the font rendering is really crappy. It is entirely unacceptable when compared with VIM 7.2 Here are the screen shots for the same piece of code under two versions. The font was set to be the

Re: How to put a character the statusline?

2011-12-11 Thread Tony Mechelynck
On 12/12/11 05:13, Bee wrote: I know how to put the decimal and hex equivalent of the character under the cursor in the statusline: set statusline+=%b decimal byte '98' set statusline+=\x%02B hex byte 'x62' How to put the character itself in the statusline? -Bill maybe

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-11 Thread Ivan Krasilnikov
On Mon, Dec 12, 2011 at 05:42, Jerry zhiweiw...@gmail.com wrote: gVIM 7.3 screenshot: http://i.imgur.com/K2nbx.jpg I see something similar when I set guifont to a non-existing font name. Does :set guifont=Monospace or choosing some font through Edit Select font... menu solve your problem?

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-11 Thread sc
On Mon, Dec 12, 2011 at 05:57:36AM +0100, Ivan Krasilnikov wrote: On Mon, Dec 12, 2011 at 05:42, Jerry zhiweiw...@gmail.com wrote: gVIM 7.3 screenshot: http://i.imgur.com/K2nbx.jpg I see something similar when I set guifont to a non-existing font name. Does :set guifont=Monospace or

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-11 Thread Tony Mechelynck
On 12/12/11 05:42, Jerry wrote: I recently compiled a VIM 7.3 under Unix. I am using all default options. When opening GVIM, I found that the font rendering is really crappy. It is entirely unacceptable when compared with VIM 7.2 Here are the screen shots for the same piece of code under two

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-11 Thread John Little
On Dec 12, 5:42 pm, Jerry zhiweiw...@gmail.com wrote: I recently compiled a VIM 7.3 ... font rendering is really crappy. Your bad font looks like a proportional font used in vim. Vim with GTK can use proportional fonts but they look like that. I suggest you experiment with changing the font,

Re: [HELP] A problem about minibufexpl.vim

2011-12-11 Thread zhang listar
在 2011年12月11日 下午6:05,Alessandro Antonello antonello@gmail.com 写道: 2011/12/9 zhang listar listarmings...@gmail.com: Hi, all. Minibufexpl.vim is a handy plugin. But a problem bothers me for a long time. When I use :bdelete to close a buffer, then the colors of other buffers disappear,

Re: How to put a character the statusline?

2011-12-11 Thread Bee
This returns the decimal value of the byte (character) under the cursor: set statusline+=%b decimal byte :help statusline b N Value of byte under cursor. Since 'b' returns the decimal value as a number (N), could something like this work? (I cannot get it to work) set

Re: How to put a character the statusline?

2011-12-11 Thread S. Cowles
On Sun, 11 Dec 2011, Bee wrote: I know how to put the decimal and hex equivalent of the character under the cursor in the statusline: set statusline+=%b decimal byte '98' set statusline+=\x%02B hex byte 'x62' How to put the character itself in the statusline? here is another