Re: How to set utf-8 locally (for a buffer) on loading the file

2010-10-06 Thread bill lam
Tony, does gfw help if the OP only worries CJK characters? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Beta release: use of 'fencoding' in TOhtml

2010-10-06 Thread Benjamin Fritz
A while back on vim_dev, there was a suggestion for TOhtml to use the 'fencoding' of the source buffer for the HTML encoding of the generated file. This thread discusses it, and I eventually included an initial beta version that does exactly this: http://groups.google.com/group/vim_dev/browse_thr

Re: netrw and symbolic links

2010-10-06 Thread Tony Mechelynck
On 07/10/10 03:39, Charles E Campbell Jr wrote: ThomasD wrote: Hi I'm just discovering Vim's ability to edit files that reside on a remote machine. I wish to run gVim on my Wndows machine, and the files that are locted on a linux machine are accesible by ftp. Everything was working fine, and I

Re: How to set utf-8 locally (for a buffer) on loading the file

2010-10-06 Thread Tony Mechelynck
On 07/10/10 00:30, esquifit wrote: On 6 Oct, 21:54, Tony Mechelynck wrote: [...] Did you read the Vim Tips Wiki link I gave you? http://vim.wikia.com/wiki/Working_with_Unicodeand in particular http://vim.wikia.com/wiki/Working_with_Unicode#What_the_above_does Vim is largely cross-platform, bu

Re: netrw and symbolic links

2010-10-06 Thread Charles E Campbell Jr
ThomasD wrote: Hi I'm just discovering Vim's ability to edit files that reside on a remote machine. I wish to run gVim on my Wndows machine, and the files that are locted on a linux machine are accesible by ftp. Everything was working fine, and I was browsing away on the remote machine, when I

Re: How to set utf-8 locally (for a buffer) on loading the file

2010-10-06 Thread esquifit
On 6 Oct, 22:37, Tony Mechelynck wrote: > > 'encoding' controls [...] > 'termencoding' tells Vim what [...] > 'fileencoding' (singular) is how [...] > 'fileencodings' (plural) defines [...] Wow, a very detailed explanation, thank you! I'll go through it during the weekend, I don't have the time t

Re: How to set utf-8 locally (for a buffer) on loading the file

2010-10-06 Thread esquifit
On 6 Oct, 21:54, Tony Mechelynck wrote: [...] > Did you read the Vim Tips Wiki link I gave you? > http://vim.wikia.com/wiki/Working_with_Unicodeand in particular > http://vim.wikia.com/wiki/Working_with_Unicode#What_the_above_does > > Vim is largely cross-platform, but the various OSes have diffe

Re: VIM and TCL

2010-10-06 Thread sc
On Wednesday 06 October 2010 16:10:50 Charles E Campbell Jr wrote: > I admit that I'm guessing that, while in the shell, > tcl somefile > will launch tcl script. actually it's 'tclsh', but tcl folks will know that sc -- You received this message from the "vim_use" maillist. Do not top-post!

Re: VIM and TCL

2010-10-06 Thread Charles E Campbell Jr
ppp wrote: Hi, I just started using TCL on a Windows platform. Currently, I use VIM to modify tcl files, then I have to go inside a tcl console (ActiveState) to source the file and then execute a function. Is there a way to launch TCL script within VIM? Ideally, I want to split VIM into two

Re: Pain at Vim Tips wiki

2010-10-06 Thread Tony Mechelynck
On 06/10/10 02:21, John Beckett wrote: Ben Fritz wrote: I personally like the fact that we don't need to worry about the heavy spam filtering, server security, server maintenance, version upgrades, etc. I like having a team of (presumably paid?) support people that can come to our aid when neede

Re: Adding items'List to items'List2

2010-10-06 Thread ZyX
Ответ на сообщение «Re: Adding items'List to items'List2», присланное в 00:36:50 07 октября 2010, Четверг. Отправитель: Benjamin R. Haskell: > I guess it's only surprising because I thought the whole point of the > odd \r/\n behavior in s/// was to support null bytes, and didn't realize > it was

Re: saving results of searches

2010-10-06 Thread Christian Brabandt
Hi Tim! On Mi, 06 Okt 2010, Tim Chase wrote: > :lvimgrep /^function/ % > :lopen > :lne > :lN > > (though I can't readily explain the benefits/drawbacks of using the > location-list instead of the quickfix list...I usually just use the QF > list). You can have several "quickfix" like wi

Re: How to set utf-8 locally (for a buffer) on loading the file

2010-10-06 Thread Tony Mechelynck
On 05/10/10 15:07, Simon Ruderich wrote: On Mon, Oct 04, 2010 at 10:22:44PM -0700, esquifit wrote: [snip] NOTE: Changing this option will not change the encoding of the existing text in Vim. It may cause non-ASCII text to become invalid. This sentence is somewhat obscure. If I chang

Re: Adding items'List to items'List2

2010-10-06 Thread Benjamin R. Haskell
On Wed, 6 Oct 2010, ZyX wrote: Ответ на сообщение <>, присланное в 23:18:25 06 октября 2010, Среда. Отправитель: Benjamin R. Haskell: Why you are using `strlen()'? Vim neither stores string length alongside with string nor recognizes when `strlen' is used in boolean context, so using `empty

Re: saving results of searches

2010-10-06 Thread Tim Chase
On 10/06/10 07:58, Jürgen Krämer wrote: :%g/^function How does one save these results somewhere? Code is slowly growing and I an tempted to write these results down ;-) !! One possible way: :g/^function/.w!>> my-functions.lst Another way would be to learn to use the quickfix window:

Re: Adding items'List to items'List2

2010-10-06 Thread ZyX
Ответ на сообщение «Re: Adding items'List to items'List2», присланное в 23:18:25 06 октября 2010, Среда. Отправитель: Benjamin R. Haskell: Why you are using `strlen()'? Vim neither stores string length alongside with string nor recognizes when `strlen' is used in boolean context, so using `empt

Re: How to set utf-8 locally (for a buffer) on loading the file

2010-10-06 Thread Tony Mechelynck
On 04/10/10 11:50, esquifit wrote: Thank you both Tony and Kyungjoon for the detailed explanation. I understand that setting 'encode' globally is recommended (or rather the right thing to do) and so I did it. I've also set fileencodings as suggested y Tony. This seems to works fine. The whole se

Re: Adding items'List to items'List2

2010-10-06 Thread Benjamin R. Haskell
On Wed, 6 Oct 2010, epanda wrote: Hi, I have two Lists: let list1=['','','','barfoo'] let list2=['foo','bar','foobar'] I would like to obtain this List : listResult = ['foo','bar','foobar','barfoo'] ..without looping manually by for or while around my List. It's unclear from the description

Re: how to know which function I am in currently?

2010-10-06 Thread Tony Mechelynck
On 06/10/10 19:08, Aman Jain wrote: Any other solution? since I don't want to make ctags for a single file browsing. For C, C++, CSS, or similar languages, see :help [[ Come back using Ctrl-O See also :help 'scrolloff' to see the function name a line or two above its opening brace. Best r

Re: cindent with a "semi-c-style" language

2010-10-06 Thread Gustaf Johansson
On Wed, Oct 6, 2010 at 12:53 AM, Benjamin R. Haskell wrote: > On Tue, 5 Oct 2010, Gustaf Johansson wrote: > >> Hi, >> >> I am trying to get cindent to successfully indent a "semi-c-style" >> language.  It has all the standard constructions and the cindent feature >> works quite well for most cases

Re: how to know which function I am in currently?

2010-10-06 Thread Aman Jain
Any other solution? since I don't want to make ctags for a single file browsing. On Oct 6, 12:58 pm, Gary Johnson wrote: > On 2010-10-06, Aman Jain wrote: > > > Hi > > > Sometimes while browsing code, I feel a need to quickly know what > > function I am inside, especially when the function is ver

Adding items'List to items'List2

2010-10-06 Thread epanda
Hi, I have two Lists: let list1=['','','','barfoo'] let list2=['foo','bar','foobar'] I would like to obtain this List : listResult = ['foo','bar','foobar','barfoo'] ..without looping manually by for or while around my List. Is there a faster way? THanks -- You received this message from the

Re: how to know which function I am in currently?

2010-10-06 Thread Gary Johnson
On 2010-10-06, Aman Jain wrote: > Hi > > Sometimes while browsing code, I feel a need to quickly know what > function I am inside, especially when the function is very huge, and I > am lost somewhere in the middle. > Is there a way by which i can display the function name/class name/ > structure n

how to know which function I am in currently?

2010-10-06 Thread Aman Jain
Hi Sometimes while browsing code, I feel a need to quickly know what function I am inside, especially when the function is very huge, and I am lost somewhere in the middle. Is there a way by which i can display the function name/class name/ structure name etc. on the status line? Thanks -- You

Re: saving results of searches

2010-10-06 Thread Jürgen Krämer
Hi, jayeola wrote: > Looking for a string when editing a file. > > :%g/^function > > How does one save these results somewhere? Code is slowly growing and > I an tempted to write these results down ;-) !! One possible way: :g/^function/.w! >> my-functions.lst This will append every lin

netrw and symbolic links

2010-10-06 Thread ThomasD
Hi I'm just discovering Vim's ability to edit files that reside on a remote machine. I wish to run gVim on my Wndows machine, and the files that are locted on a linux machine are accesible by ftp. Everything was working fine, and I was browsing away on the remote machine, when I tried to open a s

saving results of searches

2010-10-06 Thread jayeola
Looking for a string when editing a file. :%g/^function How does one save these results somewhere? Code is slowly growing and I an tempted to write these results down ;-) !! -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are rep

Re: VIM and TCL

2010-10-06 Thread Marc Weber
Hi ppp Your options: - implement windows version of this patch http://github.com/bartman/vim.git (which still can be improved a lot) and make it it poll file handlers when not typing. Implement a shell like interface. - There is a patch which let's you start a shell in Vim. I don't think

Re: VIM and TCL

2010-10-06 Thread Joan Miquel Torres Rigo
2010/10/6 ppp : >   Hi, > > I just started using TCL on a Windows platform. Currently, I use VIM > to > modify tcl files, then I have to go inside a tcl console (ActiveState) > to source the file and then execute a function. > > Is there a way to launch TCL script within VIM? Ideally, I want to > s

VIM and TCL

2010-10-06 Thread ppp
Hi, I just started using TCL on a Windows platform. Currently, I use VIM to modify tcl files, then I have to go inside a tcl console (ActiveState) to source the file and then execute a function. Is there a way to launch TCL script within VIM? Ideally, I want to split VIM into two planes, so th