Re: Selecting font size
Tim Johnson wrote: Hello: I'm using vim compiled as 'vim.full' for kubuntu 7.04 amd-64. I used vim extensively for programming for years, and am now getting "back into it". When I start vim, I see a font that I really like, but I would like to make the font smaller. The problem is that when I choose Edit -> Select Font - the font that is highlighted is "Sans" and when I choose the font size, the font that is loaded is very different from what was installed when i started and is far from appealing. I appreciate some tips as how to resolve this. thanks timf To change the font size without changing the font face (in 'nocompatible' mode): :set guifont= where means "hit the Tab key". Vim will fill in the current value (which may be empty if it is still the default) with escaping backslashes if and where needed. You can edit it in place, then hit to accept the new value (or to abort). If the value is empty, you'll have to do something else to find the real value, see furter down this post. If the value is not empty, it can still be in various formats depending on your GUI version. If there is only one number, that's the size. If there are several... well... one of them is usually the size. Here are a few examples: GTK2 (but not GTK1): :set guifont=Bitstream\ Vera\ Sans\ Mono\ 11 ... the size is 11 (pt). kvim (obsolete): :set guifont=Bitstream\ Vera\ Sans\ Mono/9/-1/5/50/0/0/0/1/0 ... the size is 9 (pt). Keep the rest unchanged. Photon: :set guifont=Bitstream\ Vera\ Sans\ Mono:s9 ... the size is 9 (pt). Other X11 versions (including GTK1): :set guifont=-*-lucidatypewriter-medium-r-normal-*-*-100-*-*-m-*-* ... the size is 100 (meaning, IIUC, 10.0pt). Other (e.g. Windows): :set guifont=Courier_New:h12:cDEFAULT ... the size is 12 (pt). In all cases, decrease the size to make the font smaller. For "other-x11" there is a hitch: height, or width, or both, may be specified. If the height changes but the width doesn't, replace all numbers other than the height (as shown above) by a single asterisk apiece. If the current value is empty, some GUI "flavours" will accept :set guifont=* to set it via a menu. You'll have to find a font face that you like, and set the size too. If ":set guifont=*" doesn't work on your version, then you can either recompile with GTK2 (which does accept that command), or use the following code snippet to set a nonempty value acceptable to your particular gvim flavour: if has("gui_running") if has("gui_gtk2") set gfn=Bitstream\ Vera\ Sans\ Mono\ 9 elseif has("gui_photon") set gfn=Bitstream\ Vera\ Sans\ Mono:s9 elseif has("gui_kde") set gfn=Bitstream\ Vera\ Sans\ Mono/9/-1/5/50/0/0/0/1/0 elseif has("x11") set gfn=-*-lucidatypewriter-medium-r-normal-*-*-100-*-*-m-*-* else set gfn=Lucida_Console:h9:cDEFAULT endif endif Place it in your vimrc. Then you can tweak it by command-line editing (using ":set gfn=", edit-in-place, then Enter). You will, however, have to "guess" the font face name if you want something else than what was set (or if the above tries to set a font face which doesn't exist on your computer). (If you have a program which can set the font via a font chooser menu, you can use that to see which fonts are available, but remember that gvim can only use "fixed-width" aka "monospace" fonts -- except in GTK2, where ":set gfn=*" is legal anyway.) Once you decide that you've found "something you like", don't forget to insert the new value at the appropriate place in the vimrc. (You can always use ":set gfn=", in 'nocompatible' mode, to see what you must use). Best regards, Tony. -- They now pass three KNIGHTS impaled to a tree. With their feet off the ground, with one lance through the lot of them, they are skewered up like a barbecue. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Selecting font size
Hello: I'm using vim compiled as 'vim.full' for kubuntu 7.04 amd-64. I used vim extensively for programming for years, and am now getting "back into it". When I start vim, I see a font that I really like, but I would like to make the font smaller. The problem is that when I choose Edit -> Select Font - the font that is highlighted is "Sans" and when I choose the font size, the font that is loaded is very different from what was installed when i started and is far from appealing. I appreciate some tips as how to resolve this. thanks timf
Re: Open all folds in the current fold?
>> I'm trying to find/create a command that acts somewhat like zO/zR >> for within an existing fold. >> >> The behavior I'm looking for is that if I'm within an existing >> fold, it recursively opens all the folds within the current fold: > > Try zczO Works like a charm. Andy's solution worked as well, but required the use of one of my bookmarks to be dedicated to the solution. Who would have figured that to *open* the folds I wanted, I needed to *close* folds first. Sigh. :) Thanks! -tim
RE: OT: Vi in a browser...
On Mon, 4 Jun 2007 at 11:27am, Gene Kwiecinski wrote: > Just getting to email now, so this is essentially a consolidated reply > to all who answered... > > >>> Speaking of which, is there any quicker way to visually select the >>> entire file, analogous to ^A in other systems? > >> To copy the entire file to the system clipboard, you can do: >> :%y+ >> Rpelace y with d if you want to cut instead of copy. >> Replace + with * if you want to use middle-click to paste (on X11.) > > That's about the shortest I could come up with, ":%d+", to do what I > want, but still not quite what I was looking for. I was kindasorta > expecting a normal-mode solution, like 'gg*V' or something, to avoid > even toggling the shift key all that much (think "baud" vs "bps"). > > The only thing I really use it for is to c&p from LookOut's email to > 'vim', then back again. So I ^A the entire reply, dump it into a new > 'vim' window, edit it to insert a new quotelevel, etc., then want to > "^A" it to get it back into LO. But it's repetitive/frequent enough to > make me want to shorten the command further. > > Ain't "hung up" on visual mode or anything (hi Tim!), it's just that > when I don't want headers at the top, I can start from the bottom ('G'), > make my way to the top in visual ('1G'), then down my way past the > headers to *not* grab them when putting it all back. Or v/v if I want > to skip the signature. Etc. > > The 'vim' instance used to do the editing is going to disappear > immediately after, so I'm not concerned about cut vs copy, etc. > Everything goes into the "clipboard", then dumped back into LO's reply > window, so a plain ':%d' won't work. > > > In a similar vein, I was never much on "visual" vs *real* 'vi' commands, > but it does come in handy to delete subroutines, etc. Eg, for the > format > > sub sub1(){ > ... > } > > sub sub2(){ > ... > } > > all you need to do it find the initial "sub", then "V$%jj" to grab the > whole thing, and delete it, copy it, cut it, etc. Go into visual, > end-of-line (for the leading '{'), '%' (for the matching '}'), down a > coupla lines to grab trailing whitespace, then bam!, it's gone. And > it's a visual confirmation to make sure you don't go nuts and delete > more than you intended. > > Point being that for some operations, visual mode is a lot more > reassuring. Have you looked at the below Vim tip? http://www.vim.org/tips/tip.php?tip_id=805 Read through the comments as well as the original tip has been improved over a few iterations in the comments. -- Hari Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/
Re: running vim on cygwin
On 2007-06-04, Kamaraju Kusumanchi <[EMAIL PROTECTED]> wrote: > Quoting Gary Johnson <[EMAIL PROTECTED]>: > > > I think 'infocmp' is part of the default cygwin installation, so > > you > > should have it. Execute it in the same bash shell you used to run > > > > vim and see what you get. The first three lines should look like > > this. > > > > # Reconstructed via infocmp from file: > > /usr/share/terminfo/c/cygwin > > cygwin|ansi emulation for Cygwin, > > am, hs, mir, msgr, xon, > > colors#8, it#8, pairs#64, > > > > That will verify that your terminfo database is properly installed > > > > and readable. If you get something else, it may indicate what the > > > > problem is. > > > > > bash-3.2$infocmp > infocmp: couldn't open terminfo file . > > So this could be a problem. But I dont know how to solve it. > > The termcap 20050421-1, terminfo 5.5_20061104-1 are already > installed on this system via cygwin. Is there anything else I > could do? Yep, that's a problem all right. However, I don't know enough about the Cygwin installation process to know what could have gone wrong. To pursue this further, I'd have to ask the folks on the cygwin mailing list. I would suggest you go to the Cygwin web site and see what you can find about this in the FAQ (http://cygwin.com/faq.html) or in the mailing list archives (http://cygwin.com/ml/cygwin/). If that doesn't get you anywhere, then read http://cygwin.com/lists.html and http://cygwin.com/problems.html, join the cygwin mailing list and post your question there. > > Something else you might do is execute > > > >vim --version [...] > Linking: > gcc -L/usr/local/lib -o vim.exe -lncurses -liconv -lintl > > > > > and will show whether or nor your vim was linked with the ncurses > > library. It was, so that's further evidence that vim itself is OK and that your problem is in your Cygwin installation. > I have also installed the libncurses-devel 5.5-3 packages. But > that did not change anything... No, that won't change anything unless your are compiling an application that uses ncurses. Regards, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
Re: Multiple search highlights?
On 6/4/07, Ron Olson <[EMAIL PROTECTED]> wrote: Hi all- I just recently joined this list after using Vim for awhile, and vi since, gosh, 1990 on a Vax. I'm astounded how, over the years, vi (and now Vim) have served my needs pretty much perfectly; what other editor is available on everything, has every feature you could possibly want, and is fast. That said, there is a feature I do want, or maybe it's already there but I can't figure out how to do it: multiple highlights. What I mean by this is, typically I look for a string like "foo" in vim with /foo, and it highlights all occurrences in the file (standard behavior). What I need is to be able to search for something else (which I believe I could do by searching using a regex), but I would like that second thing to be in another color a la Google's search results (at least in dejanews). What I need, eventually, is an angry fruit salad of colors for all the search items I've entered. Is this currently doable, and if not, do you think it's possible to accomplish using a plugin? Thanks, Who doesn't want an angry fruit salad of colors? -- -fREW
Re: Problems with netrw directory listing
On 2007-06-04, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: > Gary Johnson wrote: > > > On 2007-06-03, Seth Mason <[EMAIL PROTECTED]> wrote: > > > >> It seems like the spaces in the directory name is causing problems. > >> If I open a file in the directory and then use ':cd %:h' everything > >> works fine so it seems like the problem is not with vim(?). > >> > >> Any help or direction to go from here would be greatly appreciated. > >> > > > > I see the problem. I believe it is a bug in autoload/netrw.vim (at line > > 1593 in version 109) in the definition of the c command: > > > > nnoremap c :exe "cd ".b:netrw_curdir > > > > Any spaces in b:netrw_curdir are not escaped and the directory name is not > > in quotes, so the cd command sees any spaces as separators. > > > > Please try netrw v110g available from my website: > http://mysite.verizon.net/astronaut/vim/index.html#NETRW > > I've tested the fix under Linux; please try it out under XP. It works for me with Cygwin and with native Windows on XP. Thanks! Regards, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
Re: Multiple search highlights?
Ron Olson schrieb: Hi all- I just recently joined this list after using Vim for awhile, and vi since, gosh, 1990 on a Vax. I'm astounded how, over the years, vi (and now Vim) have served my needs pretty much perfectly; what other editor is available on everything, has every feature you could possibly want, and is fast. That said, there is a feature I do want, or maybe it's already there but I can't figure out how to do it: multiple highlights. What I mean by this is, typically I look for a string like "foo" in vim with /foo, and it highlights all occurrences in the file (standard behavior). What I need is to be able to search for something else (which I believe I could do by searching using a regex), but I would like that second thing to be in another color a la Google's search results (at least in dejanews). What I need, eventually, is an angry fruit salad of colors for all the search items I've entered. Is this currently doable, and if not, do you think it's possible to accomplish using a plugin? Thanks, :h :match :h :2match -- HTH, Andy
Re: Edit output of external command
Is there a better (faster?) way to edit the output of an external prog in a new tab or window, than to filter the new buffer through it? :tabnew|%!svn diff Faster? Not so much. Better? for certain definitions of "Better" :) :tabnew | 0r! svn diff It doesn't involve funneling stdin into the target program which for some apps might cause problems. For svn, it shouldn't make a lick of difference. The "r!" method does have the disadvantage that in a new buffer, the extra "empty" line remains (either at the top if you just use "r!" or at the bottom if you use "0r!"). In many cases, this is unimportant. But you'll want to know about it. You can read more at :help :r! Hope this helps, -tim
Edit output of external command
Is there a better (faster?) way to edit the output of an external prog in a new tab or window, than to filter the new buffer through it? :tabnew|%!svn diff Tobia
Re: vimlatex and mks
On 6/4/07, Sebastian Menge <[EMAIL PROTECTED]> wrote: Hey I have a problem with vimlatex and mks. To reproduce it: 1) create a simple tex file see attachment. 2) :mks! 3) quit vim 4) vim -S Session.vim You should see something like this (from a more complicated tex-file ...) --- Fehler beim Ausführen von "/home/menge/.vim/ftplugin/latex-suite/folding.vim": Zeile 11: "settings_preamble.tex" 47L, 721C Fehler beim Ausführen von "/home/menge/Diss/sketches/sketches.vim": Zeile 739: "settings_preamble.tex" 47L, 721C Zeile 885: E165: Kann nicht über die letzte Datei hinausgehen --- Hope there is someone around using vimlatex ... TIA, Sebastian. I can reproduce it, but it disappears before I can copy paste it. -- -fREW
RE: OT: Vi in a browser...
Just getting to email now, so this is essentially a consolidated reply to all who answered... >>Speaking of which, is there any quicker way to visually select the >>entire file, analogous to ^A in other systems? >To copy the entire file to the system clipboard, you can do: > :%y+ >Rpelace y with d if you want to cut instead of copy. >Replace + with * if you want to use middle-click to paste (on X11.) That's about the shortest I could come up with, ":%d+", to do what I want, but still not quite what I was looking for. I was kindasorta expecting a normal-mode solution, like 'gg*V' or something, to avoid even toggling the shift key all that much (think "baud" vs "bps"). The only thing I really use it for is to c&p from LookOut's email to 'vim', then back again. So I ^A the entire reply, dump it into a new 'vim' window, edit it to insert a new quotelevel, etc., then want to "^A" it to get it back into LO. But it's repetitive/frequent enough to make me want to shorten the command further. Ain't "hung up" on visual mode or anything (hi Tim!), it's just that when I don't want headers at the top, I can start from the bottom ('G'), make my way to the top in visual ('1G'), then down my way past the headers to *not* grab them when putting it all back. Or v/v if I want to skip the signature. Etc. The 'vim' instance used to do the editing is going to disappear immediately after, so I'm not concerned about cut vs copy, etc. Everything goes into the "clipboard", then dumped back into LO's reply window, so a plain ':%d' won't work. In a similar vein, I was never much on "visual" vs *real* 'vi' commands, but it does come in handy to delete subroutines, etc. Eg, for the format sub sub1(){ ... } sub sub2(){ ... } all you need to do it find the initial "sub", then "V$%jj" to grab the whole thing, and delete it, copy it, cut it, etc. Go into visual, end-of-line (for the leading '{'), '%' (for the matching '}'), down a coupla lines to grab trailing whitespace, then bam!, it's gone. And it's a visual confirmation to make sure you don't go nuts and delete more than you intended. Point being that for some operations, visual mode is a lot more reassuring.
Re: Multiple search highlights?
What I need is to be able to search for something else (which I believe I could do by searching using a regex), but I would like that second thing to be in another color a la Google's search results (at least in dejanews). What I need, eventually, is an angry fruit salad of colors for all the search items I've entered. Is this currently doable, and if not, do you think it's possible to accomplish using a plugin? I think this plugin will accomplish what you want: http://www.vim.org/scripts/script.php?script_id=1238
Re: Problems with netrw directory listing
Gary Johnson wrote: On 2007-06-03, Seth Mason <[EMAIL PROTECTED]> wrote: It seems like the spaces in the directory name is causing problems. If I open a file in the directory and then use ':cd %:h' everything works fine so it seems like the problem is not with vim(?). Any help or direction to go from here would be greatly appreciated. I see the problem. I believe it is a bug in autoload/netrw.vim (at line 1593 in version 109) in the definition of the c command: nnoremap c :exe "cd ".b:netrw_curdir Any spaces in b:netrw_curdir are not escaped and the directory name is not in quotes, so the cd command sees any spaces as separators. Please try netrw v110g available from my website: http://mysite.verizon.net/astronaut/vim/index.html#NETRW I've tested the fix under Linux; please try it out under XP. Regards, Chip Campbell
Multiple search highlights?
Hi all- I just recently joined this list after using Vim for awhile, and vi since, gosh, 1990 on a Vax. I'm astounded how, over the years, vi (and now Vim) have served my needs pretty much perfectly; what other editor is available on everything, has every feature you could possibly want, and is fast. That said, there is a feature I do want, or maybe it's already there but I can't figure out how to do it: multiple highlights. What I mean by this is, typically I look for a string like "foo" in vim with /foo, and it highlights all occurrences in the file (standard behavior). What I need is to be able to search for something else (which I believe I could do by searching using a regex), but I would like that second thing to be in another color a la Google's search results (at least in dejanews). What I need, eventually, is an angry fruit salad of colors for all the search items I've entered. Is this currently doable, and if not, do you think it's possible to accomplish using a plugin? Thanks,
Re: gvim 7 highlight search string
Brian E. Lozier wrote: Thanks all for the replies. I have a relatively fresh install of Debian Testing. I don't believe I have manually modified any system-level configuration files. All my settings are in ~/.gvimrc and ~/.vimrc Actually this is happening on two systems. My debian testing system at home and my work machine which is running RHEL 4. I believe I compiled vim/gvim from source at work, although here at home I'm using the debian packaged one. Charles Campbell wrote: The setting in question here is: hls You'll probably should include the following in your .vimrc (_vimrc), too: set nocp if version >= 600 filetype plugin indent on endif * do you have a $HOME/.vimrc file? (wasn't clear from your response; I wasn't referring to any manual modifications done to the new system level configuration files, but was wondering if your previous vim work depended on such manual modifications to the previous system level configuration files) * do you have (at least) the four lines mentioned above in your .vimrc file? (you'll probably want syntax on , too) * do you have set hls in your .vimrc file? * if you do have such a file, is it owned/readable by you? (some folks were having problems with $HOME/.viminfo files owned by root) * what does vim --version show? (I'm wondering here if its one of the minimal vim compiles) Regards, Chip Campbell
[Fwd: Re: gvim 7 highlight search string]
I believe this was meant for the vim mailing list... --- Begin Message --- Thanks all for the replies. I have a relatively fresh install of Debian Testing. I don't believe I have manually modified any system-level configuration files. All my settings are in ~/.gvimrc and ~/.vimrc Actually this is happening on two systems. My debian testing system at home and my work machine which is running RHEL 4. I believe I compiled vim/gvim from source at work, although here at home I'm using the debian packaged one. On 6/1/07, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Brian E. Lozier wrote: > In the old gvim, doing a search (/something) highlights all > "something" in red. In gvim 7, it doesn't highlight all occurrences. > Is there a way to turn this back on? I suspect that you may be having problems because you made changes to files in files in your former $VIMRUNTIME (use :echo $VIMRUNTIME when running vim to see where that is). Those files should not be changed, added to, etc, unless you don't mind having to re-do all such changes when next you upgrade vim. Instead: * put settings, most customizations, etc in $HOME/.vimrc (linux) $HOME\_vimrc (windows) You can find out where your $HOME is by typing :echo $HOME when you're running vim. * Put plugins into $HOME/.vim/plugin/ (linux) $HOME\vimfiles\plugin\ (windows) * Put autoload plugins into $HOME/.vim/autoload/ (linux) $HOME\vimfiles\autoload\ (windows) * Put colorschemes into $HOME/.vim/colors/ (linux) $HOME\vimfiles\colors\ (windows) The setting in question here is: hls You'll probably should include the following in your .vimrc (_vimrc), too: set nocp if version >= 600 filetype plugin indent on endif Regards, Chip Campbell --- End Message ---
Re: collapsing single lines of html tag attributes via plugin??
Thanks to those taking the time to post some responses on this question. I found Tobia's suggestion to map a wrapping toggle onto a function key extremely helpful - thanks, i'm using it now. Sometimes the simple ones are the best :-) I've also investigating folding a bit more thoroughly in the vim context and that has helped too. Conceal sounds like a good patch I will look into that when my deadlines get a bit easier, I don't really want to start trying to break my environment or getting distracted recompiling at this point, maybe in a few weeks. Cheers, Howard
Re: CVS vs SVN
Robert Hicks wrote: Is Vim moving to svn? I was curious as to why in the downloads section there is both a cvs version and a svn version. Robert IIUC, the SVN server is mirroring the CVS server, with some lag, for the users who prefer getting the source by SVN. Best regards, Tony. -- "To be responsive at this time, though I will simply say, and therefore this is a repeat of what I said previously, that which I am unable to offer in response is based on information available to make no such statement."
Re: running vim on cygwin
Quoting Gary Johnson <[EMAIL PROTECTED]>: > I think 'infocmp' is part of the default cygwin installation, so > you > should have it. Execute it in the same bash shell you used to run > > vim and see what you get. The first three lines should look like > this. > > # Reconstructed via infocmp from file: > /usr/share/terminfo/c/cygwin > cygwin|ansi emulation for Cygwin, > am, hs, mir, msgr, xon, > colors#8, it#8, pairs#64, > > That will verify that your terminfo database is properly installed > > and readable. If you get something else, it may indicate what the > > problem is. > bash-3.2$infocmp infocmp: couldn't open terminfo file . So this could be a problem. But I dont know how to solve it. The termcap 20050421-1, terminfo 5.5_20061104-1 are already installed on this system via cygwin. Is there anything else I could do? > Something else you might do is execute > >vim --version > VIM - Vi IMproved 7.1 (2007 May 12, compiled May 14 2007 16:29:51) Compiled by [EMAIL PROTECTED] 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/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 Linking: gcc -L/usr/local/lib -o vim.exe -lncurses -liconv -lintl > and will show whether or nor your vim was linked with the ncurses > library. > I have also installed the libncurses-devel 5.5-3 packages. But that did not change anything... -- Get a free email account with anti spam protection. http://www.bluebottle.com
CVS vs SVN
Is Vim moving to svn? I was curious as to why in the downloads section there is both a cvs version and a svn version. Robert
Re: running vim on cygwin
Quoting [EMAIL PROTECTED]: > Kamaraju Kusumanchi <[EMAIL PROTECTED]> дÓÚ 2007-06-04 > 11:56:39: > > Hi > > > > I installed vim 7.1 via cygwin on Windows XP machine. > However, > > when I run vim on the bash shell of cygwin, I am getting the > following > error. > > > > E558: Terminal entry not found in terminfo > > 'cygwin' not known. Available builtin terminals are: > > Generally, this will occur if you download vim source from vim > "official" > site and compile under cygwin by yourself. > I have neither downloaded vim from the official website nor compiled it myself. I have installed vim only via cygwin's installer. I installed only the binary packages (and no source packages at all). Could this be a problem with the mirror site that I am downloading the cygwin packages from? My mirror is http://mirrors.xmission.com . Is there any other mirror which might work? thanks raju -- Find out how you can get spam free email. http://www.bluebottle.com
Re: Open all folds in the current fold?
Tim Chase wrote: > I'm trying to find/create a command that acts somewhat like zO/zR > for within an existing fold. > > The behavior I'm looking for is that if I'm within an existing > fold, it recursively opens all the folds within the current fold: Try zczO If it does what you want, you can map it to some zX combination that's currently unused (or redundant) Tobia
Re: Open all folds in the current fold?
Tim Chase schrieb: I'm trying to find/create a command that acts somewhat like zO/zR for within an existing fold. If I use zR, it opens all the folds in the whole document. If I use zO, it opens all the folds under the cursor. The behavior I'm looking for is that if I'm within an existing fold, it recursively opens all the folds within the current fold: --- line 1 | line 2 with cursor here |-- line 3 || line 4 ||+ line 5 (3 lines) || line 8 ||+ line 9 (5 lines) |+ line 10 (20 lines) |+ line 30 (15 lines) | more stuff after the fold + some other fold I don't want to touch With the cursor on line two, I'd like to recursively open all the folds in the containing fold (lines 1 through "more stuff"). Using zO does nothing because there's no currently closed fold under the cursor even though there are other folds within the currently containing fold. Using zR opens lines such as the "some other fold I don't want to touch" line which is more than I want to unfold. Any hints on this? I've toyed a little with :folddoclosed but it seems to be closer to zR than I want for my purposes. Thanks, -tim zO on visual area recursively opens all folds in it. mc[zV]zzO`c -- Regards, Andy
Open all folds in the current fold?
I'm trying to find/create a command that acts somewhat like zO/zR for within an existing fold. If I use zR, it opens all the folds in the whole document. If I use zO, it opens all the folds under the cursor. The behavior I'm looking for is that if I'm within an existing fold, it recursively opens all the folds within the current fold: --- line 1 | line 2 with cursor here |-- line 3 || line 4 ||+ line 5 (3 lines) || line 8 ||+ line 9 (5 lines) |+ line 10 (20 lines) |+ line 30 (15 lines) | more stuff after the fold + some other fold I don't want to touch With the cursor on line two, I'd like to recursively open all the folds in the containing fold (lines 1 through "more stuff"). Using zO does nothing because there's no currently closed fold under the cursor even though there are other folds within the currently containing fold. Using zR opens lines such as the "some other fold I don't want to touch" line which is more than I want to unfold. Any hints on this? I've toyed a little with :folddoclosed but it seems to be closer to zR than I want for my purposes. Thanks, -tim
Re: how can I add this feature to vim!!
[EMAIL PROTECTED] wrote: Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the guide and finally done! but the bad thing is I have to run the command every time I reboot ubuntu!! so any helps?? If it's a default Ubuntu install, meaning you're a Gnome user, name the file .Xmodmap rather than .speedswapper. When you log in, it should detect it automatically, and ask if you wish to use it. You might also find that configuration option available in the Gnome "Keyboard Properties" part of the system configuration menu, I'm not sure. Hi, I've been using this tip for ages and find it very useful, but I have the same problem as jaywee and none of the solutions so far suggested have solved the problem. I am using Debian Etch with KDE 3.5.5. In my home directory, I have tried creating a .xinitrc with the same contents as the .speedswapper file (there wasn't one already existing), I have tried creating a .Xmodmap file with the same contents and I have looked in the KDE control panel for anything that might be able to do this, but didn't find anything. It's not a big problem, but it just would be nice to have it done automatically :-) Thanks for any help, Rob. Hi, to make commands to be run when your desktop first loads I found this page useful: http://gentoo-wiki.com/HOWTO_Autostart_Programs so, to ensure your keys get swapped when KDE starts, put the commands into any accessible file (~/.speedswapper above). Then create a shell script in the appropriate directory for your distribution (on xfce4 here it is ~/.config/autostart, and in KDE it is ~/.kde/Autostart) that calls xmodmap: #!/bin/bash xmodmap ~/.speedswapper Make that executable (chmod +x ~/.kde/Autostart/swapscript) Thanks so much Chris, I should have known to look in the Gentoo pages, they are always very helpful and generally well explained. and you should have what you want (just in case any of you are lawyers, I, of course, do not mean to imply that this solution will give you everything that you want, just the required results of this question). Just have to wait 'til next time I log out and and in again to see if I achieve nirvana... ;-) cheers Chris
vimlatex and mks
Hey I have a problem with vimlatex and mks. To reproduce it: 1) create a simple tex file see attachment. 2) :mks! 3) quit vim 4) vim -S Session.vim You should see something like this (from a more complicated tex-file ...) --- Fehler beim Ausführen von "/home/menge/.vim/ftplugin/latex-suite/folding.vim": Zeile 11: "settings_preamble.tex" 47L, 721C Fehler beim Ausführen von "/home/menge/Diss/sketches/sketches.vim": Zeile 739: "settings_preamble.tex" 47L, 721C Zeile 885: E165: Kann nicht über die letzte Datei hinausgehen --- Hope there is someone around using vimlatex ... TIA, Sebastian. \documentclass{article} \begin{document} test \end{document}
Re: how can I add this feature to vim!!
Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the guide and finally done! but the bad thing is I have to run the command every time I reboot ubuntu!! so any helps?? If it's a default Ubuntu install, meaning you're a Gnome user, name the file .Xmodmap rather than .speedswapper. When you log in, it should detect it automatically, and ask if you wish to use it. You might also find that configuration option available in the Gnome "Keyboard Properties" part of the system configuration menu, I'm not sure. Hi, I've been using this tip for ages and find it very useful, but I have the same problem as jaywee and none of the solutions so far suggested have solved the problem. I am using Debian Etch with KDE 3.5.5. In my home directory, I have tried creating a .xinitrc with the same contents as the .speedswapper file (there wasn't one already existing), I have tried creating a .Xmodmap file with the same contents and I have looked in the KDE control panel for anything that might be able to do this, but didn't find anything. It's not a big problem, but it just would be nice to have it done automatically :-) Thanks for any help, Rob. Hi, to make commands to be run when your desktop first loads I found this page useful: http://gentoo-wiki.com/HOWTO_Autostart_Programs so, to ensure your keys get swapped when KDE starts, put the commands into any accessible file (~/.speedswapper above). Then create a shell script in the appropriate directory for your distribution (on xfce4 here it is ~/.config/autostart, and in KDE it is ~/.kde/Autostart) that calls xmodmap: #!/bin/bash xmodmap ~/.speedswapper Make that executable (chmod +x ~/.kde/Autostart/swapscript) and you should have what you want (just in case any of you are lawyers, I, of course, do not mean to imply that this solution will give you everything that you want, just the required results of this question). cheers Chris
Re: how to ..... compiler
On 2007-05-31, Jagpreet <[EMAIL PROTECTED]> wrote: > Hi There, > >I can't make use of built-in compiler facility in vim. > Tried the help files(quickfix and FAQ) as well but couldn't get much > about the same. > > I want to compile a project, where the files are distributed among different > directories. > I have my own makefile but want to make use of vim's facility for the same ( > much like turbo C where U get a spilte window where errors are marked). > > Further I came across a script > http://www.vim.org/scripts/script.php?script_id=213 which provides similar > kinda utility about the same. > > But again not much details mentioned in the doc file(csupport.txt) about > external make. > > How can I run my makefile(external) within vim. Further How to check and add > ,if missing, compiler support in vim( say HP-UX xompiler aCC). Everything you need to know should be here, :help quickfix and especially here, :help make_makeprg If you already have a working Makefile, and you build your code from the shell prompt by executing "make", then you should be able to start vim in the directory where you execute "make" in the shell and simply execute :make within vim. If that doesn't work, then tell us exactly what you tried and exactly what the results were. As for support for HP's aCC, there is a compiler plugin already for that compiler, $VIMRUNTIME/compiler/hp_acc.vim. You can invoke the settings in that file by executing :compiler! hp_acc Do that before you execute ":make". See :help :compiler Regards, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
RE: how to ..... compiler
"Jagpreet" <[EMAIL PROTECTED]> 写于 2007-06-04 15:46:54: > But again not much details mentioned in the doc file(csupport.txt) about > external make. To use the external make, just :set makeprg=make then you can use :make to call external make. > How can I run my makefile(external) within vim. Further How to check and add > ,if missing, compiler support in vim( say HP-UX xompiler aCC). if you want to open the error list, use :copen please see :help makeprg for more details > I'm using Console version of vim via putty. IMO console version works better than gui version, HTH. -- Sincerely, Pan, Shi Zhu. ext: 2606
RE: how to ..... compiler
Hi vimmers, Any help for my query? Regards Jagpreet -Original Message- From: Jagpreet [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:00 PM To: vim@vim.org Subject: how to . compiler Hi There, I can't make use of built-in compiler facility in vim. Tried the help files(quickfix and FAQ) as well but couldn't get much about the same. I want to compile a project, where the files are distributed among different directories. I have my own makefile but want to make use of vim's facility for the same ( much like turbo C where U get a spilte window where errors are marked). Further I came across a script http://www.vim.org/scripts/script.php?script_id=213 which provides similar kinda utility about the same. But again not much details mentioned in the doc file(csupport.txt) about external make. How can I run my makefile(external) within vim. Further How to check and add ,if missing, compiler support in vim( say HP-UX xompiler aCC). I'm using Console version of vim via putty. Regards, Jagpreet
Re: how can I add this feature to vim!!
Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the guide and finally done! but the bad thing is I have to run the command every time I reboot ubuntu!! so any helps?? If it's a default Ubuntu install, meaning you're a Gnome user, name the file .Xmodmap rather than .speedswapper. When you log in, it should detect it automatically, and ask if you wish to use it. You might also find that configuration option available in the Gnome "Keyboard Properties" part of the system configuration menu, I'm not sure. Hi, I've been using this tip for ages and find it very useful, but I have the same problem as jaywee and none of the solutions so far suggested have solved the problem. I am using Debian Etch with KDE 3.5.5. In my home directory, I have tried creating a .xinitrc with the same contents as the .speedswapper file (there wasn't one already existing), I have tried creating a .Xmodmap file with the same contents and I have looked in the KDE control panel for anything that might be able to do this, but didn't find anything. It's not a big problem, but it just would be nice to have it done automatically :-) Thanks for any help, Rob.