Re: kubuntu 13.04 green has changed
So you should mail to ubuntu group instead? (rgb.txt does not belong to kubuntu so you should ask ubuntu devs for that, or fire a bug on launchpad.net) On Sun, May 19, 2013 at 7:30 PM, John Little john.b.lit...@gmail.comwrote: Hi all I recently upgraded my Kubuntu to 13.04, Raring Ringtail, and it has had a weird effect on gvim: the meaning of green in highlight statements has changed, from #00FF00 to #008000. blue is still #FF and red is still #FF, but green is half as bright. green1 remains #00FF00. Green is the only colour I've noticed, and I've checked a few with a colour picker; f.ex. dark slate grey is still what runtime/rgb.txt says it is, #2F4F4F. /usr/share/X11/rgb.txt still has 0 255 0 green. I've tried changing colour schemes, and other system settings, but nothing affects the colours gvim uses. Now I can easily work around this by replacing green with #00FF00, or green1, but it's strange. Regards, John Little -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: how to make vim indent \subsection in TeX files?
Install TeX plugins which support tex file indent. You can search in www.vim.org and find some TeX plugins/extensions. Or if all you want is just the indent, try copy indent/tex.vim from texsuite. On Wed, Apr 10, 2013 at 9:17 AM, leo barbosa.leona...@gmail.com wrote: Hello all, How i use autoindent to indent TeX files, vim place subsections in the same indentation level as sections. This bothers me a little bit since i wanna indent TeX files for automatic folding based on identation. So, what should i do to make vim indent subsections? Thanks in advance Leo -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Vim on MSwin 8
FYI: android has hundreds of terminal emulator apps and android command line is in most case similiar to that of gnu/linux. On Tue, Nov 6, 2012 at 1:10 AM, john Culleton j...@wexfordpress.com wrote: Win 8 looks like Android, which has no command line access that I know of. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Compiling Vim and gVim on Debian
On Wed, Mar 21, 2012 at 4:52 AM, John Degen johnde...@gmail.com wrote: Am I still missing packages? The Debian package (Vim 7.2.445) installs without problems and offers a huge version. sudo apt-get build-dep vim this is all you need to compile vim huge version. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: problems building vim with cygwin (Make_cyg.mak)
On Fri, Mar 2, 2012 at 1:39 AM, Chris Sutcliffe ir0nh...@gmail.com wrote: Dumb question, are you trying to build a native Windows vim or are you trying to create a Cygwin vim? Make_cyg.mak is specially designed to build native windows gvim.exe, so he is obviously trying to build native windows gvim. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: problems building vim with cygwin (Make_cyg.mak)
I've just downloaded the newest version of cygwin (1.7.11) and the hg version of vim (7.3.462) and using windows 7. change src/Make_cyg.mak and src/GvimExt/Make_cyg.mak , gcc ==gcc-3, g++ == g++-3 make -f Make_cyg.mak works without problem. :version shows Compilation: gcc-3 -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -D_WIN32_WI NNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_C LIPBOARD -march=i386 -Iproto -s -mno-cygwin Linking: gcc-3 -s -o gvim.exe -luuid -lole32 -lwsock32 -mwindows -lcomctl32 -lversion and it seems that the only libraries used are uuid, ole32, wsock32, windows, comctl32 and version. On Wed, Feb 29, 2012 at 11:58 PM, Charles E Campbell Jr drc...@campbellfamily.biz wrote: Hello, I've been having some problems compiling vim with make -f Make_cyg.mak using cygwin and vista. In particular, gobj/os_win32.o:os_win32.c:(.text+0x1f5): undefined reference to `_wcsicmp' gobj/os_win32.o:os_win32.c:(.text+0x24f2): undefined reference to `__wmkdir' gobj/os_win32.o:os_win32.c:(.text+0x3d10): undefined reference to `__wopen' gobj/os_win32.o:os_win32.c:(.text+0x3da1): undefined reference to `__wfopen' gobj/os_mswin.o:os_mswin.c:(.text+0x19da): undefined reference to `__wchdir' gobj/os_mswin.o:os_mswin.c:(.text+0x1b13): undefined reference to `__wstat' gobj/os_mswin.o:os_mswin.c:(.text+0x1ee4): undefined reference to `__wfullpath' gobj/os_mswin.o:os_mswin.c:(.text+0x201d): undefined reference to `__wfullpath' gobj/os_mswin.o:os_mswin.c:(.text+0x3f0e): undefined reference to `_IID_IPersistFile' gobj/if_cscope.o:if_cscope.c:(.text+0x26b5): undefined reference to `__open_osfhandle' gobj/if_cscope.o:if_cscope.c:(.text+0x26f9): undefined reference to `__open_osfhandle' I tried searching for the libraries: nm -A *.a */*.a */*/*.a | fgrep wmkdir but was unable to find the library holding these functions. Help would be appreciated! Regards, Chip Campbell -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Cygwin .vimrc file location and how to make changes?
On Sat, Feb 11, 2012 at 4:00 AM, tsai tsai...@gmail.com wrote: Hi everyone, After installing Cygwin, where is the default location of the .vimrc file so I can augment it? Kind of confusing. I know on my Linux box, it is hidden in the home directory and a simple ls -la will list it. That isn't happening in Cygwin. If you don't have the .vimrc in your home directory, you can create one from scratch. A better way may be copy the one found in your Linux box to your cygwin home directory. The cygwin is considered unix environment and .vimrc should be in your home. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzy Finder vs CtrlP
On Sun, Feb 5, 2012 at 8:34 AM, Chris Lott ch...@chrislott.org wrote: Has anyone used Fuzzy Finder and CTRLP enough to have thoughts on which one might be preferable? They seem quite similar, but I might be missing something that will come back to haunt me later :) In Oct. 2011, I've tried FuzzyFinder, CtrlP, CtrlT, Peepopen and several other plaugins and found FuzzyFinder suits me best. YMMV. Well, CtrlP released its first version in Oct. 2011. So, things might have changed, and CtrlP may be a true competitor or even surpass fuzzyfinder now. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Fuzzy Finder vs CtrlP
Ctrl-P works well only when project root found. i.e. when you are editing from .hg, .svn, .git repositories. When Ctrl-P starts in a non-SCM-controled directory, it starts very slow (because it tries to read all files). For example, try cd /etc and then use vim ctrlp... If you do never start vim outside your project, Ctrl-P is better than fuzzyfinder. On Sun, Feb 5, 2012 at 8:34 AM, Chris Lott ch...@chrislott.org wrote: Has anyone used Fuzzy Finder and CTRLP enough to have thoughts on which one might be preferable? They seem quite similar, but I might be missing something that will come back to haunt me later :) -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Redhat Linux has crippled Vim
On Fri, Jan 27, 2012 at 12:31 AM, howard Schwartz howard...@gmail.com wrote: This may not be the place to ask about this but: I recently had the misery of trying to work with vim on a Redhat Linux distribution at a university. By default, apparently (version 7.3) Are you talking about 12+ years old Redhat 7.3? Well, please come back to 21st century and choose a distribution from this century. I have never found building a complex binary from source ``easy'' unless one did it on one's own OS, It should be easy, if you know your distribution well enough. For example: in ubuntu all you need is to do sudo apt-get build-dep vim then everything need to compile vim will be installed and you can download any version of vim source code (prefered) and compile them, it is as easy as type: make For Redhat, you need to find the equivalent command of sudo apt-get build-dep vim, and I think there should be one. Any ideas why Redhat wants to convert vim back to the limitations of the old vi? It seems that most major big distributions tend to ship with crippled vim by default. It does not hurt for me, because I'll always compile my own. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: can I disable input method in vim normal mode
2011/11/22 Tony Mechelynck antoine.mechely...@gmail.com: - for X11 (compiled with +xim) :help mbyte-XIM - for all versions (compiled with either of the above) :help 'imactivatekey' :help 'imcmdline' :help 'imdisable' :help 'iminsert' :help 'imsearch' Does this work for console vim (with +xim present)? I've tried 'imdisable' and it does not seem to work. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: can I disable input method in vim normal mode
2011/11/22 alick oahz alick9...@gmail.com: I guess the best way is to use vimim plugin. You can find it here: This still does not solve the problem when you use console vim. because the XIM is always there. and now you've got 2 different IM. vimim can be more useful if you can completely disable system XIM when you're in vim, but you can only disable XIM for gvim. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Ubuntu packages of latest Vim? (to fix bug)
On Fri, Nov 4, 2011 at 7:52 PM, Szabolcs szhor...@gmail.com wrote: The one that comes with Oneiric has bugs that make gVim practically unusable if one has a Chinese input method installed, and I'd rather not have to mess with installing a self-compiled version. That is very tidy, not mess. The vim from mercurial will compile and install to /usr/local, which do not mess with system at all. In ubuntu, you need the following 5 command: sudo apt-get install mercurial sudo apt-get build-dep vim hg clone https://vim.googlecode.com/hg/ vimhg cd vimhg make sudo make install okay, everything should work then, if you want gvim. if you need command line vim you may want to do sudo update-alternatives to install your /usr/local/bin/vim as the default alternatives of vi, vim and editor. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: how to make 'h,j,k,l' faster ?
2011/10/28 gaoqiang gaoqiangs...@gmail.com: ubuntu 11.04 vim73 yeah,it is fast enouth for almost all the users. it is faster in a console if it is fast enough in system settings, see if it helps when disable all system plugin. ( set noloadplugins ) in your vimrc -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Please fix: make Windows Vim use same files as unix. No reason not to and it's confusing in mixed envirionments.
On Wed, Oct 26, 2011 at 9:23 AM, Linda W v...@tlinx.org wrote: But I asked how it would be incompat if it looked for .vim, if found, then don't look for vimfiles.? You always have multiple runtimepath, at least you have ~/.vim and /usr/share/vim/vim73 as the runtimepath. If you ignore any others after looked for ~/.vim, then the system path would be ignored. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: vim website is often inaccessible caused by google
Use https for google is better in China (for me). This problem may simply be solved by change http:// to https:// for google in vim web site. On Wed, Oct 12, 2011 at 9:18 AM, H Xu xusu...@gmail.com wrote: Hello, I noticed that vim website now uses something from google. However, google is often blocked in China, and when google is blocked, vim website also becomes inaccessible (when opening the vim website, the status bar of firefox always says connecting to www.google.com, but the page is not completely shown). I don't know much about web things, but could this be fixed? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: json indentation
On Wed, Sep 7, 2011 at 9:48 AM, Peng Yu pengyu...@gmail.com wrote: On Tue, Sep 6, 2011 at 7:19 AM, Taylor Hedberg tmhedb...@gmail.com wrote: You may have already tried this, but since JSON is just a subset of JavaScript syntax, have you tried setting 'filetype' to javascript? That's the simplest solution that comes to mind, though I don't know whether you want JSON to be indented differently than JS. Sorry to ask a naive question. How to let vim recognize .json file as .javascript by default? Should I create a .vim file in ftplugin or somewhere? Would you please show me the details? You can have this in your .vimrc: autocmd BufNewFile,BufRead *.jsonsetf javascript -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: json indentation
http://www.vim.org/scripts/script.php?script_id=1945 What about this one? On Tue, Sep 6, 2011 at 7:23 AM, Peng Yu pengyu...@gmail.com wrote: Hi, vim doesn't indent json file correctly. I'm not able to find a json vim indent file. Does anybody know if there is one? Thanks, Peng -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: json indentation
On Tue, Sep 6, 2011 at 7:23 AM, Peng Yu pengyu...@gmail.com wrote: Hi, vim doesn't indent json file correctly. I'm not able to find a json vim indent file. Does anybody know if there is one? Sorry I misunderstood it, you want indent for json. You may try using indent for lua. I personally use lua syntax/indent for json and it indents well. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: how to use a plugin auto printf()
See if this works for you. http://www.vim.org/scripts/script.php?script_id=120 -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Is there any __FILE__, __FUNCTION__, __LINE__ equivalent for vim script?
For debug reason we often need to print the current script name, function name and line number. suppose vim script is a program, is it possible to get the current script name and the current execution line in vim script? is there any functions of macros to get them? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
vim function not first-class variable? how to create an alias for vim function ?
I want to do some coding like this: :func! Foobar(...) :endf :let s:myfuncname = Foobar :call s:myfuncname(1,2,3,4,5) if function name is first-class variable this should work, however it does not work. then is there any method to define an alias for a function? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Way of opening local gVim edit remote file via putty?
On Sun, Jul 3, 2011 at 4:31 PM, Laph laph...@gmail.com wrote: Is it possible a way in putty terminal opening my local gvim in windows desktop to edit the remote file without manually switching window and retyping `:e scp://...' again and again? Thanks in advance! Theoretically, it is possible, you can write some daemon app which listens in your local computer, and a client utility which run in your remote server. When you execute a command in your remote server, it communicates with the daemon app in your local computer, and the local app calls gvim --remote-silent to do what you want, and then switch the focus into your local gvim. You need to write a simple client/server socket app to do this, which could be less than 100 lines. But IMO the better way is to define your own .vimrc in the remote computer and launch vim with vim -u .vimrc.yours, you can redefine the 'rtp' in .vimrc so that the .vim directory can be your own directory. you can create an alias for that. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: chinese input: How to disable it?
On Wed, Jun 22, 2011 at 4:58 PM, Bernhard wern...@gmail.com wrote: If I enter e.g. 'e', delete it, then enter 't' I get a (presumably) chinese character. I've tried setting imdisable, but still get the same behaviour. How can I disable this? just FYI: digraphs and trigraphs are *not* Chinese characters. It may be fun to google for those unknown characters, and you may at least get some idea about it. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: make terminal VIM my default text editor Ubuntu 11.04
On Wed, May 25, 2011 at 1:42 AM, Juan incaurgarat juan...@gmail.com wrote: Thank you Ben, Gary and pansz that soulution did work, i had to change de $ for % thanks a lot for your help, this was driving me crazy. now, Ben, i dont like GVIM cuz it doesnt look like the terminal VIM can i change its color settings? that can help. one of the good things about it is the toolbar? I'm some kind of minimalist and I use the following for gui, no toolbar and no menu: :set guioptions=Aige You can :help 'go' to get details about it. About color, if you like black background, simply put the following in your vimrc: hi Normal guifg=LightGrey guibg=Black set bg=dark This will enable the default dark color scheme, or if you want some other color scheme you can specify your own. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: make terminal VIM my default text editor Ubuntu 11.04
On Tue, May 24, 2011 at 6:20 AM, Juan incaurgarat juan...@gmail.com wrote: Exec=gnome-terminal -e vim \$1\ .desktop file is specified by freedesktop.org. http://www.freedesktop.org/wiki/Specifications/desktop-entry-spec you can check the specifications and know that you may want to use %F instead of $1. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
vim crashes without -D_FORTIFY_SOURCE=1 in Ubuntu 11.04
Today I upgrade my computer to ubuntu 11.04. then I started to compile vim. when compiling, it shows many warnings for strcpy() in eval.c. gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 -O2 -g -march=native -mfpmath=sse -DNDEBUG -fno-strength-reduce-o objects/eval.o eval.c In file included from /usr/include/string.h:642:0, from os_unix.h:515, from vim.h:270, from eval.c:14: In function ‘strcpy’, inlined from ‘call_user_func’ at eval.c:21945:2: /usr/include/bits/string3.h:105:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer These are warnings but it always crashes vim on start-up. Add -D_FORTIFY_SOURCE=1 to CFLAGS solves the problem. But vim does work without FORTIFY_SOURCE in ubuntu 10.10 and before. IMO -D_FORTIFY_SOURCE=1 is not an option which should be used on final product program. Any hints? thanks. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: vim crashes without -D_FORTIFY_SOURCE=1 in Ubuntu 11.04
2011/5/10 Dominique Pellé dominique.pe...@gmail.com: Ubuntu for some reasons changed gcc to compile with -D_FORTIFY_SOURCE=2 by default since Ubuntu-8.10 I didn't realise that, I think the default should be _FORTIFY_SOURCE=0, and that's why I'm surprised that vim does not work with the default. Vim was also compiled with -D_FORTIFY_SOURCE=1 in Ubuntu-10.10 as far as I know. I always compile my own vim, and I always compile it without _FORTIFY_SOURCE option (i.e. I use the default), and that works since Ubuntu 6.06, even in Ubuntu 8.10 the default setting changed, vim works. The strange is: compile *without* defining _FORTIFY_SOURCE works well in ubuntu 10.10 and before, but it does not work in ubuntu 11.04. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Unable to enter functions keys in .vimrc or any other file
On Wed, May 4, 2011 at 1:59 AM, Mahendra Ladhe lml...@gmail.com wrote: Thanks JR. The mapping is working. On my earlier Windows XP PC with vim 7.2, the control keys like F1 would be displayed in blue color, different than the rest of the text. That's why I found it odd when vim 7.3 was entering 4-character plain- text sequence for keys like F1. Ctrl-A to Ctrl-Z are real control characters which will display in real control character, F1 is not a character and it will not shown as control character in vim. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: How do define a default highlight for none-linked group?
On Saturday, April 30, 2011 3:01:53 PM UTC+8, Ben Schmidt wrote: work, at least for CursorIM, though not for other standard highlight groups which are defined with defaults. The result, though, is yes, that your approach using default will Ben. Glad to see it will work and I will try it. If it really works, I think vim help document should be updated. Currently, default is only mentioned in hi link. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
How do define a default highlight for none-linked group?
hi vimmers, for linked group we can use :hi default link to set a default value, for none-linked group we can't. Suppose my script want to set the default value highlight group CursorIM. i.e. if user color scheme has set the hi CursorIM, let it be, if user color scheme has not set the highlight, my script set it to a specific value. Is it possible? or is it possible to check in script whether a highlight group already defined or not? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: standard ubuntu lucid vim package is not +multibyte
On Tue, Apr 26, 2011 at 8:19 PM, Eric Smith e...@fruitcom.com wrote: Thanks Jeff for the prod. I did a do_release_upgrade Took me a straight to natty. Now everything works out of the box re rendering. Funny, I always hope that upgrades do this and they never seem to, till now ... do_release_upgrade is a utility designed to upgrade ubuntu, which AFAIK works great since ubuntu 7.04. All other methods to upgrade ubuntu sucks, this is the one which sucks less. ;-) -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: any 'tagrelative' option for cscope?
On Wed, Apr 20, 2011 at 1:53 PM, Christian Brabandt cbli...@256bit.org wrote: Hi pansz! On Di, 19 Apr 2011, pansz wrote: By default, vim opens all file of ctags with directory relative to the tags file. This behaviour can be controlled by 'tagrelative' option. But for cscope, vim does not open file relative to directory where cscope.out lies, instead, it uses CWD. That has recently been discussed on vim-dev and there was a patch proposed: https://groups.google.com/group/vim_dev/browse_frm/thread/f1304184bc1e5e9a Great! I'll apply the patch and try it out. Thanks. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: standard ubuntu lucid vim package is not +multibyte
On Wed, Apr 20, 2011 at 7:04 PM, Eric Smith e...@fruitcom.com wrote: Why is this and how do I without having to compile, get back the mutibyte vim that I know and love in 7.3? -- - Eric Smith The standard vim packged with Ubuntu Lucid DO have +multibyte. Just make sure you do really have sudo apt-get install vim , no, the standard vim is NOT installed by default, ubuntu comes with a non-standard vim. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
How can I set the current Cursor to IME mode?
According to :h CursorIM Cursor will use CursorIM color when IME/XIM active, and back to Cursor color when IME disabled. When we have an internal vim script acting as IME/XIM, we need to set the Cursor to IME mode with vim script, is it possible? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
any 'tagrelative' option for cscope?
By default, vim opens all file of ctags with directory relative to the tags file. This behaviour can be controlled by 'tagrelative' option. But for cscope, vim does not open file relative to directory where cscope.out lies, instead, it uses CWD. Build cscope.out with absolute path can solve some problem but that really isn't ideal: When you do :cs find, quickfix window filled with file names and occurrences. The file names are usually too long with absolute path and it often is better to show them with relative path (may be even better to show them with abbreviated path or remove the largest-common-part of path). Is it possible to give cscope first-class citizenship like ctags, such as out-of-box support for option like 'tagrelative'? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: how to justify i'm in VIM or GVIM?
On Tue, Mar 29, 2011 at 10:22 AM, G G greer...@ymail.com wrote: hi, all when i write a vim script, how can i decide whether i'm in VIM or GVIM? i mean, i want different colorsceme setting for each. IMO the easist way may be just : put something into your ~/.gvimrc which will only be executed when gvim start. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: OT: Vim Humans are...
On Fri, Feb 18, 2011 at 2:43 AM, meino.cra...@gmx.de wrote: Hi, first of all: My interest and/or question, which let me post here, is neither intended as the initial spark for a flame war nor as anything _against_ someone or something. May be it is a kind of exploring the psychology of the vim human. And: English isn't my mothers tongue -- anything sounding harsh, badly or negatively results only from this -- it is by far NOT my intention! Generally, vim users do not have to press multiple keys simultaneously. i.e. no Ctrl+Alt+blabla . press and release one key, then press and release another, this is easy for me. press one key, hold the key, press another, release both key, this is annoying for me. By using vim I can completely forget the Ctrl and Alt keys. Every command can be expressed with plain text, that's the most important reason for me to use vim. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: screen flashes despite set vb t_vb= in .vimrc
On Fri, Feb 18, 2011 at 1:25 AM, Ori Livneh ori.liv...@gmail.com wrote: Thanks, that worked! Is there a help file that explains what settings are overridden by .gvimrc? Aside from gui-specific options, which clearly belong in .gvimrc, how would I know when to reduplicate settings from .vimrc? Thanks, OL :h gvimrc should give what you want. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: highlight with transparent background
On Tue, Feb 15, 2011 at 8:00 PM, Jeroen Budts jer...@lightyear.be wrote: Hi, I'm trying to add some color to my statusline. I'm doing this by defining the User1 highlight and adding %1* to my statusline. This works, but I can't figure out how i can specify a transparent background for the User1 highlight. The reason why i want a transparent background is because my preferred colorscheme (molokai) uses two different colors for the statusline (StatusLine and StatusLineNC), and i also change the color of the statusline to a different color when i'm in insert mode (with an autocommand). I found under :help highlight-guibg that setting guibg to NONE should result in a transparent background, but when i try this gvim always uses the background color of the default text as the guibg. Is it somehow possible to make vim always use the current background color for the User1 highlight? I'm fine with a solution which only works in gvim if that makes a difference. Here transparent mean use the previously defined background, not real transparent. If you use guibg=NONE, this means the background equals default text guibg. There's no way to make guibg real transparent. If you use ctermbg=NONE, this means the background equals background of terminal, and you will got real transparency only if you can set your terminal emulator to a trasnparent background. hope that helps. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: screen flashes despite set vb t_vb= in .vimrc
On Wed, Feb 16, 2011 at 3:29 AM, Ori Livneh ori.liv...@gmail.com wrote: Hi, I have this line in my .vimrc (which I know is being executed, since other settings from it are applied) set vb t_vb= For some reason, though, I am still getting screen flashes. I must be overriding this setting with some other setting, but I'm not sure which. Once I'm in vim, if I manually enter set vb t_vb= again, the flashing stops. vb and t_vb will reset when gvim starts. so it only works for console vim. if you want to set t_vb for gvim, you'll have to set it in .gvimrc -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Not VIM but vim_use related
On Tue, Jan 18, 2011 at 10:49 AM, Rostyslaw Lewyckyj urj...@bellsouth.net wrote: Oh. I am using SeaMonkey as my web browser email client, and YAHOO refuses to support SM (even though it is a GEcko based almost FireFox clone from Mozilla). So I am limited to YAHOO classic as far as mail filters ... And even those filters seem to not work. Hmm, isn't this enough reason to switch to gmail instead? You can use gmail to retrieve your yahoo mail or set auto forward your yahoo mail to gmail. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: C++0x lambda syntax
On Nov 24, 4:12 am, Bram Moolenaar b...@moolenaar.net wrote: Andrew Venikov wrote: Is there a quick way to fix that? Well, perhaps that's not a quick way, but it will make programmers who try to decipher C++ programs a lot more sane. A quick way may be to contact the author of syntax/c.vim Voting C++ features may not be of any help, C++ have the most complex syntax and is already extremely hard to understand. It is unlikely to become easy with a single feature removal. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Help about colorscheme.
please try the following: sudo apt-get build-dep vim then re-compile your vim 7.3 and install it. problem will solve. On Nov 22, 12:37 am, shuda Li lishuda1...@gmail.com wrote: and installed Vim 7.3 by compiling the source. Tho OS I use is Ubuntu 10.04. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Howto use the built-in tohtml.vim plugin when :set noloadplugins
I usually use :set noloadplugins in my .vimrc, and load plugins only when I need. If I want to use built-in netrwPlugin, I use :runtime plugin/ netrwPlugin.vim If I want to use built-in gzip, I use :runtime plugin/gzip.vim But when I want to use built-in tohtml, :runtime plugin/tohtml.vim does not work. After do that the :Tohtml command is not registered. Anything else to load for tohtml.vim? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: how to prevent loading python.vim
On Aug 13, 5:13 am, Charles Campbell charles.e.campb...@nasa.gov wrote: Since you want syn on, I suppose a normal vim would do. Why not? Smaller footprint, quicker loading, etc. debian packages 4 kinds of vim: 1. vim-tiny: This is Tiny version of vim, pretty useless IMO. 2. vim: This is Huge version of vim without GUI support and without X11 support. 3. vim-gtk: This is Huge version with GTK+2 support. 4. vim-gnome: This is vim-gtk with gnome/kde session support. So you see, you cannot get a normal version from debian package manager. And you really need the Huge version just in order to get the syntax highlight. Personally, I always compile my own vim, because I want a console-only vim with X11 support. (console vim with X11 supports mouse) -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: how to prevent loading python.vim
On Aug 13, 10:19 am, bill lam cbill@gmail.com wrote: Чтв, 12 Авг 2010, pansz писал(а): 1. vim-tiny: This is Tiny version of vim, pretty useless IMO. This is an insult to the original vi. ;-) More seriously, after using vim.tiny for a week, I found it fit for most jobs that I needed such as composing email and editing script files. I want a vim with +eval feature, which implies at least the Normal version. +eval means you can have conditional statement and many fundamental features for creating any plug-ins. (in vim, no plug-ins often means no syntax-highlights) I won't consider it useful if the script doesn't even support the if statement. Of course, your mind may vary. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Windows 7 64bit - use 32bit or 64bit Vim?
David Fishburn 写道: I regularily build my on Vim using VS 2008. I have just been upgraded to Windows 7 64bit and am beginning to set it up. Seems you always have to choose if you want (or can use) the 32bit version of software or find a 64bit version. Now, since I build my own Vim, I guess I can get VS 2008 to build me a 64bit version of Vim. Here are my problems: Almost all open-source softwares have no problem in 64bit. This is the reason that almost all Linux software supports 64bit without any problem. In windows things are a bit different, because close-source and binary-distributed softwares are very popular in windows and you don't get 64bit unless they deployed a 64bit version. If you have all the source code for your python and perl modules it may be easy to go everything 64-bit. Otherwise it may be easier to keep 32bit if you're using Windows. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Doing Unix on Windows
meino.cra...@gmx.de 写道: Hi, at home I am using Vim on Linux. at work I am using Vim on Windows. I am a Unixxer... At work I am not allowed all that nice gimmicks like grep, find, sed etc. which were ported to windows also due to security reasons. I would like to get back some of that functionality mainly of text related Unix tools via vim. Install Cygwin on windows and install Mintty from googlecode, use Mintty as your terminal emulator and Cygwin/bash as your shell, use the vim provided by Cygwin. Then you'll feel at home on Windows. That is what I would like to install on every Windows computer. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
Re: in Gnome Terminal in Ubuntu strange behaviour
anatoly techtonik 写道: That's why I've crossposted here. I thought Vim users will be more interested in making it Ubuntu-compatible. This requires testing how cursor keys behave in Vim in clean Ubuntu 10.04 beta 2 install if Vim is launched in Gnome Terminal. I am unable to test this at the moment due to bandwidth / space / time constraints. IMO this does not seem to be vim problem. 1. typical vim users have an .vimrc and there is no problem. 2. xterm, xfce4-terminal and konsole in ubuntu 10.04 has no such problem, only the gnome-terminal has such problem. This seems more like the gnome-terminal problem than the vim problem. Please believe that the terminal provided with the distribution may have problem. and you may like to fix it. For example, the konsole has some very serious problem in Kubuntu 8.10, 9.04 and 9.10 which affects vim, I provided a patch and this is solved in Kubuntu 10.04. Note that I had absolutely no knowledge about KDE and konsole development before that. I think it is more helpful to fire a bug report to gnome-terminal or provide a patch to gnome. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
Re: in Gnome Terminal in Ubuntu strange behaviour
anatoly techtonik 写道: I believe that :nocompatible by default should help. Use EXINIT may does what you want, this can be done by package maintainer. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
Re: in Gnome Terminal in Ubuntu strange behaviour
MK 写道: I use vim in gnome-terminal on ubuntu 9.10 and have no problems (altho my current vim was built from source and is not the distro package). Perhaps you have the terminal set strangely? I can confirm the problem exists when you start vim with vim -u NONE, i.e. without .vimrc. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
Re: filereadable() while using cygwin shell in gVim
esquifit 写道: Regarding the suggestion of using cygwin vim in a terminal, I'd love being able to do it, but unfortunately the (binary) cygwin distribution of vim lacks a number of features (present on gVim) which I absolutely need, and I don't have currently the knowledge nor the time to attempt to understand how to compile my own version. choose to install vim source in the cygwin setup.exe, then you will have the source code to compile, and the compile dependency will be installed. then you can find vim source in /usr/src and compile, that is very easy and straight forward. the only file you need to edit is the src/Makefile, you can add/remove features there. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php To unsubscribe, reply using remove me as the subject.
Re: netrw can't expand '~' correctly when do gx in windows
Wu, Yue 写道: As title, I've set $HOME in my .vimrc, but when I try to open the file under cursor on the line such as '~/doc/foo.pdf', vim can't run the app with the file with correct path, apps on windows usually don't support the '~' in path name, so I guess vim on windows doesn't expand '~' correctly. AFAIK, Vim by default see '~' as %HOME% in windows. but the script does not know that, so the script owner should take care of ~ themselves. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: How to temporarily change Cursor color and change back
Christian Brabandt 写道: Hi pansz! On Do, 04 Mär 2010, pansz wrote: Script can use highlight command to change color, however, if a script meant to change one color temporarily, it has no knowledge about the previous setting. 1. the :hi Cursor is defined by my color scheme. 2. now in some case a script change the cursor color to indicate a special mode. 3. when the mode ends, the script want to change the Cursor back but it has no knowledge about what is the highlight of Cursor defined by user's color scheme. […] Any work around? Thanks for all. Try the attached script. I was written quick and dirty fr a similar issue on this list. It already queries the font attribute, though this only works with a patched vim, currently. Thanks, it seems that the redir do the trick. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
How to temporarily change Cursor color and change back
In gui we can define color with :highlight command. Script can use highlight command to change color, however, if a script meant to change one color temporarily, it has no knowledge about the previous setting. 1. the :hi Cursor is defined by my color scheme. 2. now in some case a script change the cursor color to indicate a special mode. 3. when the mode ends, the script want to change the Cursor back but it has no knowledge about what is the highlight of Cursor defined by user's color scheme. This rises from our script vimim, this implements an IME inside vim and we may need to change the Cursor color to indicate IM mode and change the Cursor color back. CursorIM is the best color group for this but we have no command to let vim show Curor with CursorIM, the only way is to redefine the :highlight of Cursor and the old settings are lot. Any work around? Thanks for all. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Calling :set ff=unix or ff=dos based on save location
corykendall 写道: Howdy ladies and gentlemen, I use VIM for all editing... half of which is saved on a Windows machine, and the other half of which is saved through Samba on a Unix machine. Gvim itself is running on windows. I'm looking for something I can add to my vimrc that automatically calls :set ff=unix when I save to either the U:\ or V:\ drives (both mapped via Samba to unix), and automatically calls :set ff=dos otherwise. Thanks for any help! You can use the autocmd FileWritePre to catch the event and do what you want.. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to load project wise tag files
Karthik Kashyap Thatipamula 写道: Hi All, I have multiple projects in my work directory and for each project i have a tags file. In my vimrc i have an option to load my tags like :set tags=./tags,tags,~/work/prj1/src/tags Now i want to set this value dynamically depending on the project in which i open the source file. So if i open a file in ~/work/prj1/src/.. i should load the ~/work/ prj1/src/tags file and when i open a file in ~/work/prj2/src/... i should load the ~/work/prj2/src/tags file. How can i do this in vim. Any pointers would be helpful. If you change the current dir on file open, then you already get this feature by default. If your project has subdirectories, do something like this: set tags=./tags,tags,../tags,../../tags,../../../tags This ensure you can go to tags in a parent directory. All you need, is to ensure you go to the correct directory. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to change font on the fly?
Dotan Cohen 写道: If you're using konsole then your current editor is konsole, not vim. So you should tell konsole how to change the font. When you run vim inside konsole, it is possible to change font size of konsole by some konsole-specific escape-codes which can be sent inside vim script, you can check it in KDE forum. This is only available in konsole, not with other terminal applications. If you use gnu screen, this may not be much useful, since vim now run inside gnu screen instead of konsole, and we had no control over konsole. Thanks, I did not know how all that works. I use VIM in two situations: 1) In Konsole on my local machine, under screen. 2) Via SSH in Putty on Windows or a virtual terminal in Linux, also under screen. In both case you cannot change font inside vim, since the environment of vim is now screen and you cannot change the font in screen. You can always change font directly in konsole or putty menu though. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How powerful is language build in vim compare with the language build in emacs?
Teemu Likonen 写道: * 2010-01-24 21:13 (-0800), Peng Yu wrote: I know Lisp is very powerful. Is the language in vim as powerful? No, it's not. It seems that there are still unique features in Lisp which are not supported in any other language. In this sense Lisp is the most powerful language available. Lisp is really different. I don't know many languages but this is what other people say. Other languages have gained power by copying Lisp's features. Most turing-complete languages are equally powerful since you always can write a compiler/interpreter inside one language to compile/interpret another. Or you can doing something equivalent without actually writing an interpreter. In my opinion, most languages are not more powerful than C because I can use C to interpret most languages, so I always use C and embed different kind of language interpreters inside my C program when required. But different programmers have different definition about what is powerful. The standard python has so many features in its standard lib. And it has the benefit of having the python as the standard lib. For example, if you write a socket application in python you'll be sure it works anywhere in any platform when python exists. What about socket for lisp? yes, many lisp distributions provide socket support but different lisp implementations implement them differently and that is not the ANSI standard. not having a standard lib for the standard lisp cause difficulties for migration. In this point of view, python, or Java, may be more powerful than most other languages, because they have the unique standard and the most comprehensive standard library even to do platform-specific functions. Well, your mind may vary, because different programmers have different definition of what is powerful. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Open a new file if the file doesn't exist when using ctrl+W_ctrl+F?
Peng Yu 写道: If I type ctrl+W_ctrl+F over a string and there is not a file whose name is the string, vim will show E447: Can't file file 'the string' in path. However, sometimes I do want to open a new file with the string with some short cut. Is there a way to do so? It is better to write a new shortcut for what you want. Ctrl-W Ctrl-F search in path to find the file, if the file does not exist, it will have no idea where to create the new file. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to change font on the fly?
Dotan Cohen 写道: Depending on what I am editing, I sometimes prefer a fixed-width font and other times a proportional font. My previous editor, Kate (KDE Advanced Text Editor) lets the user change the font on the fly. Can VIM do this, or is playing with the config file (thus requiring a restart) the only way? Thanks in advance! If you're using konsole then your current editor is konsole, not vim. So you should tell konsole how to change the font. When you run vim inside konsole, it is possible to change font size of konsole by some konsole-specific escape-codes which can be sent inside vim script, you can check it in KDE forum. This is only available in konsole, not with other terminal applications. If you use gnu screen, this may not be much useful, since vim now run inside gnu screen instead of konsole, and we had no control over konsole. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: am i using
Maybe on certain Linux distributions which keep their Vim a year or more out of date this idea makes sense, but I still think even serious users can work for years without ever touching the C code. To do compile yourself is one thing, to touch the C code is quite another. Most Linux distributions are too free on packaging vim and user got a completely unknown version of vim and it may change very often. You even don't know what feature will still exist and what unwanted feature will be added in the next update! So this actually is the problem of distribution package maintainer, and this is the reason I would recommend against using the distribution-specific version of vim. By using your own version of vim you can: 1. know this is your vim and wanted feature is always there. 2. update to the latest patch. 3. embedded symbol information in it and have the correct stacktrace when crash. So, seriously, if you're using Linux please compile vim yourself. This does not require any knowledge in C at all. Well, if you're talking about the Windows version, then it seems no point compile yourself. Because you know you ARE getting the Cream version, but what is the percentage of Windows gvim users? Yes, Windows rule 90% of the desktop, but most of those poeple do not use vim, and vim runs not only in desktop but also in the server. I expect more than 50% of vim users are not using vim in Windows. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: how to use string variable for cs add command
and since :exe[cute] accepts any number of arguments (and concatenates them space-separated), :exe 'cs add' CscopeDB CodeRoot would work just as well. Nice hint! -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: [CURIOUSITY] am i using
Raúl Núñez de Arenas Coronado 写道: Saluton pansz :) pansz p...@routon.com skribis: open-source software != free-as-in-freedom software. Vim is open-source, but it is not free-as-in-freedom software. I don't want to start a flamewar on this issue There won't be a flamewar on this issue: I'm just saying that some distribution developers choose not to include vim by default and the freedom is their reason. I don't care whether vim should be include in a particular distribution or not. Because I always compile vim from svn, which is far more useful than distribution-specific versions. IMO most serious vim users should compile their own vim. Only casual users should rely on distribution-specific version. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Python indention
Torsten Andre 写道: Hi everyone, I am having some trouble with my indention in python. I installed the indention plugin for Python under [1] and according to the documentation, I think comments starting with a # should not moved to the very left of the page, but the current line indention should be kept. In my case, whenever I type a # to start a comment, the comment is moved to the very left. I tried it including and excluding the plugin file (and restarting vim), but the behavior kept the same. Can someone tell me how to alter this stupid behavior? You had set smartindent globally, while this option should only be set locally to C-like buffers. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: [CURIOUSITY] am i using
chika.tambun 写道: closed source text editor when i used to use vim?! this is happen when i give my opinion on a gnu/linux distro for requesting the full-vim package rather than mini one on the next release the distro, then they talk about freedom rather than the power of functionality. POSIX only defines that a standard vi must exists in a POSIX-compliant system. So developers have freedom to choose any version of vi to fit into their distribution. open-source software != free-as-in-freedom software. Vim is open-source, but it is not free-as-in-freedom software. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Issues with using Vim as Pager
Ajay Jain 写道: Hi, I am using vim to read man pages. My set up is that I use an ssh client (putty) over Windows to login to a Linux server. I use 1) export PAGER=/bin/sh -c \unset PAGER;col -b -x | vim -R -c 'set ft=man nomod nolist' -c 'map q :qCR' -c 'map SPACE C-D' -c 'map b C-U' -c 'nmap K :Man C-R=expand(\\\cword\\\)CRCR' -\ in my .bashrc 2) let $PAGER='' in my .vimrc However, the man pages are not displayed properly. For instance, a man ls shows distorted characters like: info coreutils âls invocationâ Please guide me. I want to be able to use vim as pager and be able to read all characters on the man page absolutely fine. Thanks, Ajay. vim can act as pager with the predefined script, usually it is reside in macros. please see /usr/local/share/vim/vim72/macros/less.sh if you compiled vim from source, or some similar directory in /usr/share/vim if you install vim from distribution's package manager. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
How to get vim patch version number in vim script?
Hi vimmers: It seems easy to know we're running in vim 7.2, but is it possible for a vim script to know what exactly the patch version is? like 7.2.344. Also, it is possible to know what vim is compiled with? like Normal version, Big version, Tiny version... Thanks. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How powerful is language build in vim compare with the language build in emacs?
Peng Yu 写道: I have learned neither the language for vim scripting nor the language for emacs scripting (which is lisp, right?). (I know mit-scheme, but I have never used emacs) May I ask the following questions? I know Lisp is very powerful. Is the language in vim as powerful? For what type of tasks, it is more difficult to do in vim scripting language than lisp in emacs? And for what type of tasks, it is easier to do in vim scripting language than lisp in emacs? In theory, a turing complete language could do anything. http://en.wikipedia.org/wiki/Turing_completeness Two turing-complete languages are always inter-translatable. It is said that Lisp is turing complete. So if vim script is turing-complete, it is as powerful as Lisp. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to get vim patch version number in vim script?
John Little 写道: if !has(visual) echo Tiny elseif !has(eval) echo Small elseif !has(arabic) echo Normal elseif !has(profile) echo Big else echo Huge endif To me, the above clearly shows the clunkiness of the approach, I only did it for fun. Regards, John This has one problem: if there's no 'eval' then 'if' statement will always be false, and Tiny Small version will never be print. Then how to tell from Tiny and Small? -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: [announcement] Windows gVim user can do wget without a flashing DOS box
bill lam 写道: A Japanese gentleman had written an dll as a replacement of system(). You may find it inside vim wikia. /* * Usage: * :echo libcall(mysystem, mysystem, cmd.exe\ndir\n) * :echo libcall(mysystem, mysystem, wget http://foo/bar.html;) * Reference: * http://support.microsoft.com/kb/190351/ * Only work for Gvim. * XXX: no error handling */ The idea behind OP's topic is not only to eliminate the flash of title bar, but also to improve the performance. The cost of starting a new process in Windows is much higher than that of Linux. While our plugin will execute on every keystroke, so we write a dll to avoid creating a new process on each keystroke. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
vim reproducible crash, with backtrace report
The related things: About my system: Linux pansz-pc 2.6.24-26-generic #1 SMP Tue Dec 1 18:37:31 UTC 2009 i686 GNU/Linux Ubuntu 8.04.3 LTS About vim: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 21 2010 14:23:52) Included patches: 1-327 Compiled by p...@pansz-pc Big version with GTK2 GUI. Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/ atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype 2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -O2 -g -march=native -mfpmath=sse -DNDEBUG Linking: gcc -L/usr/local/lib -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lca iro -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lm -lncurses -lselinux -lacl -lgpm About myvimrc: set nocompatible set encoding=utf-8 set fileencodings=ucs-bom,utf-8,euc-cn,cp936,gb18030,latin1 set noloadplugins runtime plugin/vimim.vim About the plugin: http://vimim.googlecode.com/svn/trunk/plugin/vimim.vim The operation: vim -u myvimrc press i to enter insert mode press Ctrl-\ and hold it for several seconds. (depend on your pc, may crash within 3 seconds to 60 seconds) vim will now caught SIGSEGV and core dumped. Here is the backtrace: (gdb) bt #0 0xb7f33410 in __kernel_vsyscall () #1 0xb775b4b6 in kill () from /lib/tls/i686/cmov/libc.so.6 #2 0x0812b2ca in may_core_dump () at os_unix.c:3101 #3 0x0812d0e5 in mch_exit (r=1) at os_unix.c:3066 #4 0x080f0460 in preserve_exit () at misc1.c:8392 #5 signal handler called #6 0xb77a348d in memmove () from /lib/tls/i686/cmov/libc.so.6 #7 0x081846e8 in set_input_buf (p=0x82524c8 \004) at ui.c:1592 #8 0x080c7209 in vgetorpeek (advance=1) at getchar.c:2454 #9 0x080c7f36 in vgetc () at getchar.c:1559 #10 0x080c844a in safe_vgetc () at getchar.c:1764 #11 0x0806b5d6 in edit (cmdchar=73, startln=0, count=0) at edit.c:717 #12 0x08113023 in normal_cmd (oap=0xbfde8cfc, toplevel=1) at normal.c:1367 #13 0x080d6fd6 in main_loop (cmdwin=0, noexmode=0) at main.c:1211 #14 0x080da5ce in main (argc=Cannot access memory at address 0x1 ) at main.c:955 (gdb) -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Cannot use CTRL-Q in vim which in a PuTTY terminal.
Sylvia 写道: Hello, I am using PuTTY to access a Linux server. When I start vim on PuTTY terminal and try to use CTRL-Q to select a block, nothing happens. The block-select shortcut is Ctrl-V, not Ctrl-Q. Ctrl-V should work unless you had mapped it to something else. If that is the case, unmap Ctrl-V to let it have the default meaning. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
How to effectively call a function in another script?
suppose we have a script: script_a.vim: start of script a let s:str1 = test1 let s:str2 = test2 function s:bar() return s:str2 function Foo() return s:bar() . s:str1 end of script a With this script as plugin, I cannot call from command with :echo Foo() It will report s:str1 and s:str2 not defined. Any work around? I need to call the function which returns a string, to include the string into set 'statusline' in my ~/.vimrc. Here I must call the function from with vimrc. Any hint? -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: how to get vim to ignore file permissions (because it is confused)
Linda W 写道: I'm trying to edit a file on a remote server where my user maps to the owner of the file and it is writable, but vim seems to think the the file is 'read-only' and keeps giving me messages which is really throwing off my editing of the file as every time I write it out with 'w!', it reset the read-only bit, and I get the error message again. Is there a way to turn that off or better yet just turn off the 'read-only' check if I'm the owner so I don't get the message and it will just write out the file normally? You can write an autocmd to remove the read-only flag on Opening for buffers. But I think you should list the detail situations to see why the file are marked as 'read-only', if it is a bug, then see if it can be fixed. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Remote Mouse Support
Paul 写道: Hi, I'm wondering if this is even possible: I want to ssh to a remote server, open vim, split a file, and drag the split separator around with the mouse. More importantly, I want to use the * register, so I can select text with the keyboard and put it into my local X buffer (to paste with shift-insert). None of this currently works for me. X11 forwarding is working - xclock on the remote server displays on my local screen. If X11 forwarding is working, why not just use gvim instead of vim? You can start gvim from the remote server and have full mouse support. For console vim, I can't even use mouse to drag the split separator locally. So this is not a problem with remote server, it is about the configuration of your console vim. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: cygwin dll for gvim win32's libcall()?
Sergey Khorev 写道: However, when I load the dll from within win32 gvim.exe, the gvim hangs up To study the problem, I had made the dll as simple as hello world. So the I hope you are not doing hello world in DllMain. I suspect the problem is not in Vim but rather with Cygwin. So I suggest to rectify your problem even further: 1) Create console win32 application which does NOT use Cygwin and uses your library with LoadLibrary, GetProcAddress. Test whether this works or not. 2) Create win32 windowed application and test it too. I use cygwin to compile the dll because I have no experience in win32 programming, and I don't know anything about DllMain, LoadLibrary, etc. My source is written in Linux, when compiled in Linux it generates lib*.so. When compiled in Cygwin it generates a .dll. The source code are the same, cmake does everything for me, there's no DllMain function in the source code. I know that cygwin compile Linux programs as .exe and it is a Windows native executable and can be executed like any windows program. I wonder whether the .dll from cygwin is a windows native dll or not. the cygwin version of vim loads my .dll without problem while windows gvim cannot load the .dll. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
cygwin dll for gvim win32's libcall()?
He vimmers: Is it possible for win32 gvim.exe to do libcall() for dll created by cygwin? I've created a simple dll make with cmake 2.6.4 + cygwin 1.7. The dll works great inside cygwin, i.e. I use cygwin console vim doing libcall() of the dll works great. However, when I load the dll from within win32 gvim.exe, the gvim hangs up (not responding to any user action). I had checked that the dll has the correct path and cygwin1.dll in the correct position and PATH has been set. To study the problem, I had made the dll as simple as hello world. So the content of the dll should not be a problem, anyway it works great inside cygwin console vim. Any hint? Thanks. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
eval.txt possible typo?
When reading eval.txt line 3722 and 3731, (:h libcallnr) I found the following: {only in Win32 on some Unix versions, when the +libcall| feature is present} I don't quite understand what it mean, does this mean only in Win32 or some Unix versions?, i.e. the on should be or? -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: '*' search without cursor move
Steven Woody 写道: Hi, When I use '*' command to search and highlight current word in a file, the cursor also moves to the next match. But at many cases, I hope the cursor can be stay where it is and don't move at all. Can I? Thanks. press * then press # will send you back. so if you want the cursor back, map something to *# -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Vim script support of socket access or IPC (inter-process communication) ?
Sergey Khorev 写道: Vim is single-threaded application. If you want to implement proper IPC, for instance, Vim waiting on some event, you will need to rewrite much of its core I'm afraid. What if I can expect my communication to respond immediately? Anyway, we can define a timeout, for single-direction or non-blocking IPC . -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Vim script support of socket access or IPC (inter-process communication) ?
just 写道: I found nothing related to socket access or IPC feature in vim script so I cannot do that from within vim script. Seek for python or perl support is not an option here, since we should not add unnecessary dependency to end-users. Adding IPC support seems no problem for vim design philosophy, since this enables vim interact with other applications better, instead of incorporating other application features into vim itself. Any hints? Aout the tcp sock,vim can do it whit the help of netrw.vim plugin netrw plugin uses external program to do the network access, hence introducing new external dependencies. a standard windows version of gvim cannot use most features of netrw, unless you installed those external programs. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to compile with guifont ?
Timothy Madden 写道: Hello I compiled vim on a debian server and installed in in my home folder (~/usr/local), but the resulting executable can see no fonts when I press Tab on :set guifont=Tab and the default font is looking too condensed. The Edit menu has no GUI Font entry. X11-Athena is the fallback when no other gui toolkit found, perhaps all you need is the gtk-dev related dependency. with a full-featured gtk version you will be able to set gui font. simply run the following to install the dependencies: sudo apt-get build-dep vim then configure your vim and make. that should work for your debian. try it. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Vim script support of socket access or IPC (inter-process communication) ?
Hi, For some reason I need to access some local service within vim, this can be Unix socket (d-bus, x message, etc.) or TCP socket (http, ftp, etc.). A typical example is an IM engine, which can provide service to both XIM and vimim. The engine may need a relatively long start-up time to build the cache and it only need to start once, while vim should start-up very fast and run many times. Separate them may be a good idea. I found nothing related to socket access or IPC feature in vim script so I cannot do that from within vim script. Seek for python or perl support is not an option here, since we should not add unnecessary dependency to end-users. Adding IPC support seems no problem for vim design philosophy, since this enables vim interact with other applications better, instead of incorporating other application features into vim itself. Any hints? -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: Compiling vim on Ubuntu 64 bit
Tony Mechelynck 写道: Avoiding handmade changes to the Makefile also ensures that _patches_ to the Makefile will apply cleanly. If you use svn then nothing will broken. at least patches to Makefile never have problem for me. patches to the Makefile will merge with my own handmade changes. if there is a conflict during merge, svn will report, and I can resolve the conflict manually. Trust the version-control systems, because they *are* designed to merge changes from different developers. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: After I change the vimrc with vim, how to make it useful right now?
Tony Mechelynck 写道: On 04/12/09 07:22, zhangkai wrote: Hi, After I change the vimrc with vim, how to make it useful right now? now I have to close vim, and reopen it again. thanks best regards, That's the way to go; anything else requires special precautions in how you write the vimrc, and I'm not even sure the vimrc_example.vim uses them. Restart vim may be the only way in some case: when you want to define some global variable before you load your plugins. Most plugins will not load twice, so if you changed the global var in your .vimrc and source it again, it will has no effect on your plugins. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to accessing s: variable and s: functions in another script?
Tony Mechelynck 写道: Consider: if all you want is to split an already too long script into two, how much s: do you need to change? isn't there some similiar feature like include foobar.vim? i.e. source some script completely inside my own script-local namespace? No, there isn't. :source foobar.vim is considered adequate for most purposes, and when it isn't, :call foobar#somefunc() comes to the rescue. Changing the s:-es is not a problem with :%s/s:\|SID/foobar#/gc ;-( So it seems that I'd better keep a long script as is. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: replace string with deleted line
Jason 写道: I have a file that contains a bunch of lines with only the word foo on it. I want go through the entire file and remove the lines with the words foo. Not just remove the word, but the entire line. How is this done in vim? I tried :%s/foo//g but it left the line you can just use :%2/foo\n//g for the trick. which is longer than :g/foo/d but is easier to remember. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: How to accessing s: variable and s: functions in another script?
Kana Natsuno 写道: autoload/framework.vim: function! framework#get_parameter_x() return s:parameter_x endfunction plugin/engine_x.vim: call framework#set_parameter_x('...') call framework#_call_internal_stuff() Did you consider about this way? If so, why do you reject it? This does work, But it considered tedious. Consider: if all you want is to split an already too long script into two, how much s: do you need to change? isn't there some similiar feature like include foobar.vim? i.e. source some script completely inside my own script-local namespace? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
How to accessing s: variable and s: functions in another script?
Hi everyone: When I want to design a plugin for a plugin, I may use such a feature. i.e. a plugin which is a generic framework for a kind of engine plugins, which could be implemented by another script: plugin/framework.vim engine_a.vim engine_b.vim engine_c.vim there may be different engines, we can only enable one of them at each vim session, the framework will call engine's initialization and some interface functions, inside the engine.vim script it may need to set some s:variables and access some s:functions inside framework.vim This architecture requires the framework give the access right of some variables and functions to the engine. If we define g: variables it will be global, I want the engine to be the friend of the framework, i.e. the particular script engine.vim can access all script-local stuffs of framework.vim, is that possible? Or is it possible for two scripts sharing the same script-local namespace? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: vim72 for redhat enterprise 4
thgr 写道: Hi vim users, I want to use all the great features of vim version 7 for redhat enterprise linux 4 (comes with vim 6.3) - so i downloaded the sources and compiled. But now I am missing some great features - can anybody tell me how they can be invoked (or tell me where I can find a neat .rpm that has all the stuff)? 1. do you have your own ~/.vimrc ? if you are using the system wide version it usually at /etc, while the compiled vim usually search it at /usr/local/share/vim/vim72 2. type :version within your vim and give the output, it helps to identify your problem. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: How to map Ctrl+/ ?
Tony Mechelynck 写道: Experiment shows that press and hold Ctrl press and release / _in numeric keypad_ release Ctrl will be seen by gvim (at least, gvim with GTK2 GUI running in X11 with kdm winmanager) as C-/ i.e. Ctrl+slash (whatever that be). Whether Console Vim can see it may depend on the terminal it's running in. Best regards, Tony. I'm using Kubuntu 8.04+KDE 3.5.10, in my Konsole I map C-_ (the underscore) and it works for C-/. It depends on the terminal program though. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: colors and vimrc in sudo and su
Matt Wozniski 写道: On Sun, Nov 8, 2009 at 8:17 PM, pansz wrote: James Michael Fultz 写道: So why do you think sudo -e or sudo edit is better than sudo vi ? The latter does not preserve your personal Vim environment. oops, got it. I setup my sudo to always preserve my personal environment for all commands, so I do never need the sudo -e. It's also horrifically dangerous to use sudo vim when sudoedit would do. sudo vim means that vim runs as root, so a malicious script, or a vim bug, could have catastrophic consequences. sudoedit runs vim as your user, so malicious scripts or catastrophic bugs can't result in an rm -rf / or worse being run. It convince me. So the difference is: sudo -e copies the file in tmp and edit as user, while sudo vi edit the file as root. Hope more user know it. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: colors and vimrc in sudo and su
James Michael Fultz 写道: So why do you think sudo -e or sudo edit is better than sudo vi ? The latter does not preserve your personal Vim environment. oops, got it. I setup my sudo to always preserve my personal environment for all commands, so I do never need the sudo -e. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: colors and vimrc in sudo and su
oversky 写道: When I use $sudo vim file, vim uses ~/.vimrc, but not the color template in ~/.vim/colors. When I change to super user by su, vim uses some initial vimrc and color. How do I apply the user vimrc, color template and plugin for the above two situations? I just start using Ubuntu 9.10, and have not used linux before. for the first case, it should work, ubuntu by default will setup sudo to use the user environment. but ubuntu by default do *not* have the proper version of vim installed, you need to :sudo apt-get install vim before you can use vim. for the second case, you are using root environment, so you can do under your user account: sudo ln -s ~/.vim /root/.vim sudo ln -s ~/.vimrc /root/.vimrc then use your su and you can get the same vim env. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: separate gvim and vim in a single .vimrc [no .gvimrc]
Tony Mechelynck 写道: set errorbells visualbell if !has('gui_running') console Vim setting let t_vb = \x07 . t_vb also ring the bell endif if has('autocmd') has('gui') must set it again for the GUI au GUIEnter * let t_vb = \C-G\e|50f where 50 = flash time in milliseconds (default 20) endif simply put gui-related stuffs in a function and put that function inside GUIEnter works great. I don't think it is a good way to separate your settings in has('gui_running') and GUIEnter. People are forced to remeber those things while otherwise unnecessary. If you put has('gui_running') and GUIEnter all over your .vimrc your .vimrc will increasingly become unreadable and difficult to maintain, while a single function triggered by GUIEnter is much easier to maintain. and by removing some unnecessary :if has()s .vimrc executes better. Think, you merge .gvimrc and .vimrc in order to retain elegance, but you leave some unpleasant code inside your .vimrc, why not try to make the code read better and runs better? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Setting fenc or enc from an autocommand
bill lam 写道: thread is all about. The suggested utf8-guess pseudo encoding would work similar to the bomb pseudo encoding but wouldn't simple look at the first character but scan the whole buffer. I remembered there is a vim script that detect various chinese file encodings by scanning its content, but I do not use that. I don't remember whether it scans the entire file or just a configurable number of lines. For chinese it is the same problem, since pure-ascii cp936 and utf-8 text are the same. If user want to use utf-8 as default and auto-detect cp936 files its all okay. If user want to use cp936 as default, then the new file may be saved in utf-8 if the text contains only ASCII contents. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Open a file on the current buffer
winterTTr 写道: PS: simply speaking , I would like to open ( not just read ) a file on the current buffer , without creating a new buffer . I'm wondering what is the difference? why do you want to open without creating a new buffer? you can simply: 1. remember the current buffer in some variable. 2. open a file in the new buffer. 3. delete the old buffer. then you opened a file and the buffer counts does not increase, well, th e buffer number is different. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Setting fenc or enc from an autocommand
Tony Mechelynck 写道: - If you want one particular file to be recognized as UTF-8 not only by Vim but also by other programs (let's say by other Windows editors such as WordPad; or by browsers if the files are in HTML, CSS or even plaintext) it helps if you use :setlocal bomb (or maybe :setlocal fenc=utf-8 bomb) before saving the file. Note that the BOM consists of bytes with the high bit set, so the following paragraph never applies to Best regards, Tony. Note this does not work if you're programmer. utf-8 files should *not* contain the BOM, otherwise, it may not compile with gcc. By definition and by original design, utf-8 files should not have BOM, you can use utf-8 BOM only if you view your file with your eye and do not process the file with any program (such as compiler or lex parser, etc.) --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---