Re: How to get value of ~ (last used replace-to string) in script
On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick hack. --Antony fun! EchoTilde() $ put='' s/^/~/ let tilde = getline('.') d echo tilde endfun ~ can be multiline. Then d would not work correctly. u would be better. but even then, buffer can be marked nonmodifiable. Yakov
Re: How to compile graphical Vim on Mandriva 2007?
On 5/21/07, Steve Litt [EMAIL PROTECTED] wrote: On Sunday 20 May 2007 15:51, you wrote: On 5/20/07, Steve Litt [EMAIL PROTECTED] wrote: Hi all, I tried to compile graphical Vim 7.1 on Mandriva 2007. I downloaded vim-7.1.tar.bz2, untarred it, and did the following from the top level directory created (vim71): ./configure --enable-gui make src/vim -g The following error message appeared: E25: GUI cannot be used: Not enabled at compile time I retried, after make distclean, with the following configure options: enable-gui=gtk enable-gui=gtk2 enable-gui=auto All produced the same error: E25: GUI cannot be used: Not enabled at compile time I chose not to perform make install in order to preserve the integrity of my existing Vim 7.0 that came with Mandriva 2007. Anyone know how to compile graphical Vim on Mandriva 2007, or at least some diagnostic tests I can use to narrow down the problem? You need to install gtk2-devel package. Also, the x11-devel package if it's not installed. The exact names of packages may vary between distributions. But the idea is, you are missing development packages (*-devel or *-dev) needed to compile GUI functionality of vim. Thanks Yakov, I can't find them anywhere in the distribution packages. Funny thing is, Gnome works, and Mandriva managed to get a working 7.0 version of gvim installed on the machine as a package. Yes, this is expected. Because build-dependencies of vim-gtk are bigger than run-dependencies. If your packaging system is apt-get, then you can see names of packages to install with this command: apt-get build-dep vim-gtk # install all devel packages # needed to rebuild vim-gtk If your packaging system is rpm or some else, then it's not that straightforward to find names of the missing packages, those packages that are needed to rebuild vim-gtk. Use rpmfind.net if your packaging system is rpm. Yakov
Re: How to get value of ~ (last used replace-to string) in script
On 5/21/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick hack. --Antony fun! EchoTilde() $ put='' s/^/~/ let tilde = getline('.') d echo tilde endfun ~ can be multiline. Then d would not work correctly. u would be better. but even then, buffer can be marked nonmodifiable. Then create a new buffer. It's a quick hack; take the idea, then /you/ make it work. Or don't, find a better solution. It's your call. --Antony
Save as not responding
Hi, I have a problem to execute: browse confirm saveas (or save as from menu list) on new file (without name). Steps to simulate the problem: 1.Open gvim 2. Save as (browse confirm saveas) - gvim not responding for 5 minutes (than I killed him) But when I open existing file it's works well... Thanks Vladimír Šmoldas SOFTIP a.s.
Re: Save as not responding
Smoldas Vladimir wrote: Hi, I have a problem to execute: browse confirm saveas (or save as from menu list) on new file (without name). Steps to simulate the problem: 1.Open gvim 2. Save as (browse confirm saveas) - gvim not responding for 5 minutes (than I killed him) But when I open existing file it's works well... Thanks Vladimír Šmoldas SOFTIP a.s. Works for me VIM - Vi IMproved 7.1 (2007 May 12, compiled May 15 2007 09:20:56) Included patches: 1-2 Compiled by [EMAIL PROTECTED] Huge version with GTK2-GNOME GUI. Features included (+) or not (-): [...] Best regards, Tony. -- Admiration, n.: Our polite recognition of another's resemblance to ourselves. -- Ambrose Bierce, The Devil's Dictionary
Re: Save as not responding
Smoldas Vladimir wrote: Sorry I forgot to attach environment info: Vim 7.1 (2007 May 12,compiled May 12...) Windows XP SP2 But, I have installed this version today only.. I will try install the version you mentioned. Regards Vladimír Šmoldas The version I'm using is a Linux version; but for Windows, you can download an equivalent version (with precompiled executables and full runtime files) from https://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721 Best regards, Tony. -- If you're right 90% of the time, why quibble about the remaining 3%?
[Fwd: RE: Save as not responding]
Forward to list. Original Message Subject: RE: Save as not responding Date: Mon, 21 May 2007 11:33:17 +0200 From: Smoldas Vladimir [EMAIL PROTECTED] To: A.J.Mechelynck [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Thanks for replay I checked that I have the latest version available for Windows OS. Before 7.1 version, I had 7.0 version and from maybe two weeks ago, I have the problem with save as... Vladimír Šmoldas SOFTIP a.s. -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 11:26 AM To: Smoldas Vladimir Cc: 'Vim mailing list' Subject: Re: Save as not responding Smoldas Vladimir wrote: Sorry I forgot to attach environment info: Vim 7.1 (2007 May 12,compiled May 12...) Windows XP SP2 But, I have installed this version today only.. I will try install the version you mentioned. Regards Vladimír Šmoldas The version I'm using is a Linux version; but for Windows, you can download an equivalent version (with precompiled executables and full runtime files) from https://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721 Best regards, Tony. -- If you're right 90% of the time, why quibble about the remaining 3%?
Re: [Fwd: RE: Save as not responding]
Hi Try explicitly setting the browsedir option to a directory before clicking save as ... For example, set browsedir=c:\ It may be that vim has remembered some now inaccessible place and is trying to display its contents. HTH
Re: Save as not responding
Smoldas Vladimir wrote: Hi, I have a problem to execute: browse confirm saveas (or save as from menu list) on new file (without name). Steps to simulate the problem: 1.Open gvim 2. Save as (browse confirm saveas) - gvim not responding for 5 minutes (than I killed him) But when I open existing file it's works well... I tried this on XP with 7.1 and I did both a save and save as and they both worked fine. Are you trying to save to a network drive or anything of the kind? Robert
undo replace in multiple files
Let's say I do multi-file replace like 'argdo %s/foo/bar/g', and I 'autowrite' and 'nohidden' options are set. So the argdo will replace and write files, because of 'autowrite' is on. My question is, is there any trick to do 'undo' after that that would undo all changed files in this situation ? Thanks Yakov
Re: undo replace in multiple files
Let's say I do multi-file replace like 'argdo %s/foo/bar/g', and I 'autowrite' and 'nohidden' options are set. So the argdo will replace and write files, because of 'autowrite' is on. My question is, is there any trick to do 'undo' after that that would undo all changed files in this situation ? I think given those conditions (autowrite and nohidden), there seems to be no such way from my experimenting. However, if you switch to using hidden instead of nohidden, you can do :argdo u which will undo the last action in each argument. I prefer to use hidden and then, if I like the changes that went through, issue a :wall to write the changed files. This allows the undo as well as allowing me to proof that all the changes went through as expected. If you set 'autowriteall' in addition to 'hidden', you can get some of the benefits of 'autowrite' but still have the recovery options of 'hidden'. Just a few ideas... -tim
Feature request! ftl.vim
Hello there, could someone please add the freemarker syntax support in vim. The syntax file is here : http://freemarker.sourceforge.net/editors.html A couple of distro have started distributing ftl.vim on there own. Thanks ! -- Mathieu
Getting vimscripts
Is there a way to use wget or curl to get scripts off the Vim site? Robert
Re: Getting vimscripts
Is there a way to use wget or curl to get scripts off the Vim site? Use `wget http://www.vim.org/scripts/download_script.php?src_id=$id -O foo` ? Best, Swaroop
Re: Vim Wiki - Tip Page Formatting Deadline
Am Dienstag, den 15.05.2007, 10:23 -0500 schrieb Tom Purl: Task: Wiki Format Sign-Off Deadline: Monday, May 21st (arbitrary, I know) OK, it's May 21st. I reviewed all the contributions and will try to summarize everything in one mail. 1.) Layout - Template 2 is strongly preferred. - perhaps Metadata in front like in Template 4 - Comments should go on the same page under the assumption, that these comments will finally find their way into the main tip. The discussion-page should be used for meta-communication about future of this tip (e.g. merging with another tip ?) - comments should be done as in wikipedia: to sign and to separate comments - everything should fit on one page, no scrolling The other thing was how to handle page-titles. Two concurring approaches: 2.) Drop the id for new tips, use old ids just to redirect. - We would need guidelines to get nice titles (no '(' and ')' ) - Should be easy to remember: See tip #1 would get See tip the_super_star 3.) Use some scripting to keep ids, e.g. via a cron job that tidies up each night or a javascript that uses a timestamp. My (subjective!) impression is that 2.) is slightly before 3.) Especially when it comes to the question who will write/host the scripts (and assure that they will work for a long time)? === Now for my two cents: Write the things we learned into some guideline-page. I will start that tonight. Simply use the template 2 as suggested in 1.) and use 2.) as the approach for page titles. Layout issues of the template can be discussed in the respective discussion page. Long and ugly titles can be changed later as follows: At import time, add a coloured box to each page saying that the tip has been imported by a script and should be reviewed by a human. The box should contain a link to the guidelines. After Review, the box can be removed. Conversion of HTML in Tip-Text. This should be converted to wiki markup in the long run. Either we get a good script (some real regex guru around?) that does it at import (which would delay the whole thing again ...), or we refer in the above mentioned box to the guidelines frew posted some days ago. A problem are tips that contain URLs to external sites (e.g. other tips) This is regarded as spam by mediawiki (captcha). Though the URLs are clean (since someone edited them before) we have to either import these tips by hand or convert all a hrefs in the script. If no one votes strongly against this I would like that this week. Silence is taken as agreement ;-) Regards, Sebastian -- I love deadlines. I like the whooshing sound they make as they fly by. Douglas Adams
Is it possible to do spelling check for comments only?
Hi VIMmers, When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? Best regards, Edward L. Fox
Re: Is it possible to do spelling check for comments only?
When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? See :help spell-syntax Best, Swaroop --- www.ion.co.in
Re: Getting vimscripts
Swaroop C H wrote: Is there a way to use wget or curl to get scripts off the Vim site? Use `wget http://www.vim.org/scripts/download_script.php?src_id=$id -O foo` ? Thanks! Robert
Vim 7.1 errors
This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string must be given when squeezing repeats Any ideas? This is what I compiled with: :version VIM - Vi IMproved 7.1 (2007 May 12, compiled May 21 2007 15:18:20) Huge version without GUI. Features included (+) or not (-): +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc fall-back for $VIM: /usr/local/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/pe rl5/5.8.5/ia64-linux-thread-multi/CORE Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -L/usr/local/li b -o vim -lncurses -lacl -lgpm -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/ CORE -L/usr/local/lib /usr/lib/perl5/5.8.5/ia64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/ usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -lperl -lresolv -lm -lutil -lc Press ENTER or type command to continue Help? Robert
Python Omni complete on Windows?
Oh great VIM gurus. With VIM 7.# on Windows, I can't seem to get the Omni complete to work for Python for my own modules written in python. Omni complete seems to work for standard library modules, but not for modules that I have in the same directory as the source I'm editing. I have a tags file in the same directory as the python source. When I try to Omni complete, I get Pattern not found. If I do a :version, I see +python/dyn. If I do :py import sys;print sys.version, I see 2.4.4. How do I get Omni complete to work for Python on Windows? Does anyone have any ideas on this? Thanks, Mike
Re: Vim 7.1 errors
Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string must be given when squeezing repeats Any ideas? This is what I compiled with: :version VIM - Vi IMproved 7.1 (2007 May 12, compiled May 21 2007 15:18:20) Huge version without GUI. Features included (+) or not (-): +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc fall-back for $VIM: /usr/local/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/pe rl5/5.8.5/ia64-linux-thread-multi/CORE Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -L/usr/local/li b -o vim -lncurses -lacl -lgpm -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/ CORE -L/usr/local/lib /usr/lib/perl5/5.8.5/ia64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/ usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -lperl -lresolv -lm -lutil -lc Press ENTER or type command to continue Help? Robert I also tried the latest CVS version and I get the same error. Robert
Re: Vim 7.1 errors
On 5/21/07, Robert Hicks [EMAIL PROTECTED] wrote: Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string must be given when squeezing repeats Any ideas? This is what I compiled with: :version VIM - Vi IMproved 7.1 (2007 May 12, compiled May 21 2007 15:18:20) Huge version without GUI. Features included (+) or not (-): +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc fall-back for $VIM: /usr/local/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/pe rl5/5.8.5/ia64-linux-thread-multi/CORE Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -L/usr/local/li b -o vim -lncurses -lacl -lgpm -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/ CORE -L/usr/local/lib /usr/lib/perl5/5.8.5/ia64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/ usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -lperl -lresolv -lm -lutil -lc Press ENTER or type command to continue Help? Robert I also tried the latest CVS version and I get the same error. Any plugins in ~/.vim/plugin ? What does :scriptnames show ? Yakov
Re: Vim 7.1 errors
Yakov Lerner wrote: On 5/21/07, Robert Hicks [EMAIL PROTECTED] wrote: Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string must be given when squeezing repeats Any ideas? This is what I compiled with: :version VIM - Vi IMproved 7.1 (2007 May 12, compiled May 21 2007 15:18:20) Huge version without GUI. Features included (+) or not (-): +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc fall-back for $VIM: /usr/local/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/pe rl5/5.8.5/ia64-linux-thread-multi/CORE Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -L/usr/local/li b -o vim -lncurses -lacl -lgpm -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/ CORE -L/usr/local/lib /usr/lib/perl5/5.8.5/ia64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/ usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE -lperl -lresolv -lm -lutil -lc Press ENTER or type command to continue Help? Robert I also tried the latest CVS version and I get the same error. Any plugins in ~/.vim/plugin ? What does :scriptnames show ? Yakov I have 2 plugins...perl-support and savevers. When I get to work tomorrow I will remove both of those and try it. I will also get you the :scriptnames thing if the plugins aren't the issue. Robert
Re: How to alter the cscope search results in the vim so that they refer to the right files.
On 2007-05-21, Natesh Kedlaya [EMAIL PROTECTED] wrote: Hi, I am using Vim6.3 My cscope db was built on a source directory structure 'src1' which was mounted on /dir1. If I use this cscope db in my vim, my cscope query would yeild following results. [...] Any pointers appreciated. You asked this question before on May 3 and May 7 and I replied with a suggestion. Did you try that? Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
Re: Is it possible to do spelling check for comments only?
On 5/21/07, Swaroop C H [EMAIL PROTECTED] wrote: When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? See :help spell-syntax Hmmm, so that means that I could only define which regions to be spelling checked in the syntax highlight plugins. But I still do wish to have an option that could temporarily open spelling checking to the code regions without closing the syntax highlighting. Maybe I'll send a wish list to Bram. :-P Best, Swaroop --- www.ion.co.in Regards, Edward L. Fox
doc bug: 'browsedir'
In *options.txt* For Vim version 7.1. Last change: 2007 May 11 under 'browsedir', at line 1151, there is: {not in Vi} {only for Motif and Win32 GUI} Actually, this option is functional in my GTK2/Gnome GUI. Best regards, Tony. -- The day after tomorrow is the third day of the rest of your life.
Re: Wish: col(^)
On 2007-05-21, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. indent(.)? HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
Re: Wish: col(^)
Andy Wokula schrieb: Gary Johnson schrieb: On 2007-05-21, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. indent(.)? HTH, Gary Nice, just forgot about indent(). Probably col(^) would be exactly the same as indent(.)+1 and therefore redundant. Oops this was slightly wrong. Probably virtcol(^) would be exactly the same as indent(.)+1 (indent(.) counts virtual columns). col(^) could still have its uses. -- Regards, Andy
Re: Wish: col(^)
Nikolai Weibull schrieb: On 5/21/07, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. Then shouldn't there also be a col(0) for symmetry? nikolai Of course! For symmetry, also col(|) should be added. -- Regards, Andy
Re: Wish: col(^)
On 5/21/07, Andy Wokula [EMAIL PROTECTED] wrote: Nikolai Weibull schrieb: On 5/21/07, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. Then shouldn't there also be a col(0) for symmetry? Of course! For symmetry, also col(|) should be added. ;-) nikolai
Re: BUG: wrong recognition of words in Vim7.1b on Windows
Dnia poniedziałek 21 maj 2007, Bram Moolenaar napisał: That @ means that Vim uses the library function isalpha(). Apparently your environment is not setup properly for isalpha() to work with your encoding cp1250. Thus that is a problem with your library/system/environment. Well, I installed Vim on three MS-Windows XP machines coming from different vendors and everywhere was that bug. Looks like classic example of: 1. MS-Windows is always right 2. If MS-Windows is wrong see 1. m. -- The world really isn't any worse. It's just that the news coverage is so much better.