Re: How to map arrow keys
On 1/4/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Zheng Da wrote: > On 1/4/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: >> >> WFM >> >> VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 5 2006 22:18:11) >> Included patches: 1-178 >> Compiled by [EMAIL PROTECTED] >> Huge version with GTK2-GNOME GUI. Features included (+) or not (-): >> ...etc... >> >> Best regards, >> Tony. >> > What do you mean? > WFM = Works For Me, on the version mentioned above. Please give some more details. Best regards, Tony. $ vim --version VIM - Vi IMproved 7.0 (2006 May 7, compiled Jan 4 2007 14:47:14) Compiled by [EMAIL PROTECTED] Normal version with GTK2 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_gui +diff +digraphs +dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +folding -footer +fork() +gdb +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_interact +xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/usr/local/share/vim" 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/freetype2 -I/usr/include/libpng12 -g -O2 -I/usr/include/python2.4 -pthread Linking: gcc -L/usr/local/lib -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lgpm -L/usr/lib/python2.4/config -lpython2.4 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -- With regards Zheng Da
Re: How to map arrow keys
On 1/4/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: WFM VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 5 2006 22:18:11) Included patches: 1-178 Compiled by [EMAIL PROTECTED] Huge version with GTK2-GNOME GUI. Features included (+) or not (-): ...etc... Best regards, Tony. What do you mean? -- With regards Zheng Da
How to map arrow keys
Hi, everyone How to map an arrow key in the normal mode? I tried "nmap i-" Actually, it doesn't work even though running this mapping command doesn't give any error messages. -- With regards Zheng Da
Re: automatic code completion in vim
This plugin seems to work well. Thank you so much Zheng Da On 1/4/07, Zheng Da <[EMAIL PROTECTED]> wrote: On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > There is also an "autotag" plugin (just found it): > > http://www.vim.org/scripts/script.php?script_id=1343 > > But I have not yet try it. It seems you need to compile vim with python. > > 2007/1/4, Zheng Da <[EMAIL PROTECTED]>: > > On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > > You can use the vim sort command (:help sort) instead of gnu sort. > > > Moreover it's portable. > > > > > > 2007/1/4, Zheng Da <[EMAIL PROTECTED]>: > > > > On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > > > > It's because your tag file is not sorted correctly, the last tag > > > > > "main" should be the first tag in the file. The script does a tag > > > > > binary search and the tags file must be sorted to work properly (:help > > > > > tag-binary-search). > > > > > > > > > > Best regards, > > > > > > > > > > Vissale > > > > > > > > > > 2007/1/3, zhengda <[EMAIL PROTECTED]>: > > > > > > Vissale NEANG wrote: > > > > > > > What is you ctags command? > > > > > > > Could you send me your tag file? > > > > > > > > > > > > > > Just for comparison I give you my tag file > > > > > > > > > > > > > > 2007/1/3, Zheng Da <[EMAIL PROTECTED]>: > > > > > > >> On 1/3/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > > > > > >> > Hello, > > > > > > >> > > > > > > > >> > I am the maintainer of the script and I can reproduce the problem: > > > > > > >> > > > > > > > >> > 1 int main(){ > > > > > > >> > 2hello h; > > > > > > >> > 3hello::hello(); > > > > > > >> > 4h. > > > > > > >> > 5hello::<- the popup menu only appear here > > > > > > >> > 6tmp1 t1; > > > > > > >> > 7t1. > > > > > > >> > 8 } > > > > > > >> > > > > > > > >> > At line 4, the popup menu doesn't appear because of the brace at line > > > > > > >> > 1. Internally the script use the vim function "searchdecl" (same > > > > > > >> > behaviour as the command "gd") to search the declaration line of your > > > > > > >> > object "h". But "gd" works properly only if your brace starts a new > > > > > > >> > line because it uses internally the command "[[" (:help gd and :help > > > > > > >> > [[). So if you want to see the popup menu at line 4 you have to write > > > > > > >> > your code like this : > > > > > > >> > > > > > > > >> > 1 int main() > > > > > > >> > 2 { // This brace must starts the line > > > > > > >> > 3hello h; > > > > > > >> > 4hello::hello(); > > > > > > >> > 5h. // The popup menu should appear here > > > > > > >> > 6hello:: > > > > > > >> > 7tmp1 t1; > > > > > > >> > 8t1. > > > > > > >> > 9 } > > > > > > >> > > > > > > > >> > At line 8, the popup menu doesn't appear because, after the command > > > > > > >> > "gd", the script tokenizes the source code from line 5 to 7 and the > > > > > > >> > resulting code in our case is : > > > > > > >> > > > > > > > >> > h.hello::tmp1 t1; > > > > > > >> > > > > > > > >> > so the script found that the type of the object "t1" is > > > > > > >> > "h.hello::tmp1", this is not correct. > > > > > > >> > If you want to see the popup menu you have to, at least, terminate the > > > > > > >> > instruction at line 6
Re: automatic code completion in vim
On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: There is also an "autotag" plugin (just found it): http://www.vim.org/scripts/script.php?script_id=1343 But I have not yet try it. It seems you need to compile vim with python. 2007/1/4, Zheng Da <[EMAIL PROTECTED]>: > On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > You can use the vim sort command (:help sort) instead of gnu sort. > > Moreover it's portable. > > > > 2007/1/4, Zheng Da <[EMAIL PROTECTED]>: > > > On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > > > It's because your tag file is not sorted correctly, the last tag > > > > "main" should be the first tag in the file. The script does a tag > > > > binary search and the tags file must be sorted to work properly (:help > > > > tag-binary-search). > > > > > > > > Best regards, > > > > > > > > Vissale > > > > > > > > 2007/1/3, zhengda <[EMAIL PROTECTED]>: > > > > > Vissale NEANG wrote: > > > > > > What is you ctags command? > > > > > > Could you send me your tag file? > > > > > > > > > > > > Just for comparison I give you my tag file > > > > > > > > > > > > 2007/1/3, Zheng Da <[EMAIL PROTECTED]>: > > > > > >> On 1/3/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > > > > >> > Hello, > > > > > >> > > > > > > >> > I am the maintainer of the script and I can reproduce the problem: > > > > > >> > > > > > > >> > 1 int main(){ > > > > > >> > 2hello h; > > > > > >> > 3hello::hello(); > > > > > >> > 4h. > > > > > >> > 5hello::<- the popup menu only appear here > > > > > >> > 6tmp1 t1; > > > > > >> > 7t1. > > > > > >> > 8 } > > > > > >> > > > > > > >> > At line 4, the popup menu doesn't appear because of the brace at line > > > > > >> > 1. Internally the script use the vim function "searchdecl" (same > > > > > >> > behaviour as the command "gd") to search the declaration line of your > > > > > >> > object "h". But "gd" works properly only if your brace starts a new > > > > > >> > line because it uses internally the command "[[" (:help gd and :help > > > > > >> > [[). So if you want to see the popup menu at line 4 you have to write > > > > > >> > your code like this : > > > > > >> > > > > > > >> > 1 int main() > > > > > >> > 2 { // This brace must starts the line > > > > > >> > 3hello h; > > > > > >> > 4hello::hello(); > > > > > >> > 5h. // The popup menu should appear here > > > > > >> > 6hello:: > > > > > >> > 7tmp1 t1; > > > > > >> > 8t1. > > > > > >> > 9 } > > > > > >> > > > > > > >> > At line 8, the popup menu doesn't appear because, after the command > > > > > >> > "gd", the script tokenizes the source code from line 5 to 7 and the > > > > > >> > resulting code in our case is : > > > > > >> > > > > > > >> > h.hello::tmp1 t1; > > > > > >> > > > > > > >> > so the script found that the type of the object "t1" is > > > > > >> > "h.hello::tmp1", this is not correct. > > > > > >> > If you want to see the popup menu you have to, at least, terminate the > > > > > >> > instruction at line 6 with ";" > > > > > >> > > > > > > >> > 1 int main() > > > > > >> > 2 { // This brace must starts the line > > > > > >> > 3hello h; > > > > > >> > 4hello::hello(); > > > > > >> > 5h.print(); // The popup menu should appear here > > > > > >> >
Re: automatic code completion in vim
On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: You can use the vim sort command (:help sort) instead of gnu sort. Moreover it's portable. 2007/1/4, Zheng Da <[EMAIL PROTECTED]>: > On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > It's because your tag file is not sorted correctly, the last tag > > "main" should be the first tag in the file. The script does a tag > > binary search and the tags file must be sorted to work properly (:help > > tag-binary-search). > > > > Best regards, > > > > Vissale > > > > 2007/1/3, zhengda <[EMAIL PROTECTED]>: > > > Vissale NEANG wrote: > > > > What is you ctags command? > > > > Could you send me your tag file? > > > > > > > > Just for comparison I give you my tag file > > > > > > > > 2007/1/3, Zheng Da <[EMAIL PROTECTED]>: > > > >> On 1/3/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > > > >> > Hello, > > > >> > > > > >> > I am the maintainer of the script and I can reproduce the problem: > > > >> > > > > >> > 1 int main(){ > > > >> > 2hello h; > > > >> > 3hello::hello(); > > > >> > 4h. > > > >> > 5hello::<- the popup menu only appear here > > > >> > 6tmp1 t1; > > > >> > 7t1. > > > >> > 8 } > > > >> > > > > >> > At line 4, the popup menu doesn't appear because of the brace at line > > > >> > 1. Internally the script use the vim function "searchdecl" (same > > > >> > behaviour as the command "gd") to search the declaration line of your > > > >> > object "h". But "gd" works properly only if your brace starts a new > > > >> > line because it uses internally the command "[[" (:help gd and :help > > > >> > [[). So if you want to see the popup menu at line 4 you have to write > > > >> > your code like this : > > > >> > > > > >> > 1 int main() > > > >> > 2 { // This brace must starts the line > > > >> > 3hello h; > > > >> > 4hello::hello(); > > > >> > 5h. // The popup menu should appear here > > > >> > 6hello:: > > > >> > 7tmp1 t1; > > > >> > 8t1. > > > >> > 9 } > > > >> > > > > >> > At line 8, the popup menu doesn't appear because, after the command > > > >> > "gd", the script tokenizes the source code from line 5 to 7 and the > > > >> > resulting code in our case is : > > > >> > > > > >> > h.hello::tmp1 t1; > > > >> > > > > >> > so the script found that the type of the object "t1" is > > > >> > "h.hello::tmp1", this is not correct. > > > >> > If you want to see the popup menu you have to, at least, terminate the > > > >> > instruction at line 6 with ";" > > > >> > > > > >> > 1 int main() > > > >> > 2 { // This brace must starts the line > > > >> > 3hello h; > > > >> > 4hello::hello(); > > > >> > 5h.print(); // The popup menu should appear here > > > >> > 6hello::hello(); // you have to terminate properly your > > > >> > // instruction with ";" before the next > > > >> declaration > > > >> > 7tmp1 t1; > > > >> > 8t1.// the popup menu should appear here > > > >> > 9 } > > > >> > > > > >> > If you have other questions, I am there :) > > > >> > > > > >> > Best regards, > > > >> > > > > >> > Vissale > > > >> > > > > >> > 2007/1/2, zhengda <[EMAIL PROTECTED]>: > > > >> > > Mikolaj Machowski wrote: > > > >> > > > On pon sty 1 2007, Mikolaj Machowski wrote: > > > >> > > > > > > >> > > >> This won't work: you need a different variable name, see &g
Re: automatic code completion in vim
On 1/4/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: It's because your tag file is not sorted correctly, the last tag "main" should be the first tag in the file. The script does a tag binary search and the tags file must be sorted to work properly (:help tag-binary-search). Best regards, Vissale 2007/1/3, zhengda <[EMAIL PROTECTED]>: > Vissale NEANG wrote: > > What is you ctags command? > > Could you send me your tag file? > > > > Just for comparison I give you my tag file > > > > 2007/1/3, Zheng Da <[EMAIL PROTECTED]>: > >> On 1/3/07, Vissale NEANG <[EMAIL PROTECTED]> wrote: > >> > Hello, > >> > > >> > I am the maintainer of the script and I can reproduce the problem: > >> > > >> > 1 int main(){ > >> > 2hello h; > >> > 3hello::hello(); > >> > 4h. > >> > 5hello::<- the popup menu only appear here > >> > 6tmp1 t1; > >> > 7t1. > >> > 8 } > >> > > >> > At line 4, the popup menu doesn't appear because of the brace at line > >> > 1. Internally the script use the vim function "searchdecl" (same > >> > behaviour as the command "gd") to search the declaration line of your > >> > object "h". But "gd" works properly only if your brace starts a new > >> > line because it uses internally the command "[[" (:help gd and :help > >> > [[). So if you want to see the popup menu at line 4 you have to write > >> > your code like this : > >> > > >> > 1 int main() > >> > 2 { // This brace must starts the line > >> > 3hello h; > >> > 4hello::hello(); > >> > 5h. // The popup menu should appear here > >> > 6hello:: > >> > 7tmp1 t1; > >> > 8t1. > >> > 9 } > >> > > >> > At line 8, the popup menu doesn't appear because, after the command > >> > "gd", the script tokenizes the source code from line 5 to 7 and the > >> > resulting code in our case is : > >> > > >> > h.hello::tmp1 t1; > >> > > >> > so the script found that the type of the object "t1" is > >> > "h.hello::tmp1", this is not correct. > >> > If you want to see the popup menu you have to, at least, terminate the > >> > instruction at line 6 with ";" > >> > > >> > 1 int main() > >> > 2 { // This brace must starts the line > >> > 3hello h; > >> > 4hello::hello(); > >> > 5h.print(); // The popup menu should appear here > >> > 6hello::hello(); // you have to terminate properly your > >> > // instruction with ";" before the next > >> declaration > >> > 7tmp1 t1; > >> > 8t1.// the popup menu should appear here > >> > 9 } > >> > > >> > If you have other questions, I am there :) > >> > > >> > Best regards, > >> > > >> > Vissale > >> > > >> > 2007/1/2, zhengda <[EMAIL PROTECTED]>: > >> > > Mikolaj Machowski wrote: > >> > > > On pon sty 1 2007, Mikolaj Machowski wrote: > >> > > > > >> > > >> This won't work: you need a different variable name, see > >> ":help E706". > >> > > >> > >> > > > > >> > > > Yeah, I forgot (not only about that). > >> > > > > >> > > > This is complete solution:: > >> > > > > >> > > > function! UpdateTags() > >> > > > call writefile(getline(1, '$'), '.tmp.cc', 'b') > >> > > > let tags = system('ctags --c++-kinds=+p --fields=+iaS > >> --extra=+q -f > >> > > > - .tmp.cc') > >> > > > " Note: whitespaces around expand are tab chars. > >> > > > let alltags = system('grep -v " '.expand('%').' " > >> tags') > >> > > > let tagstable = split(alltags, '\n') > >> > > > call add(tagstable, tags) > >> > > >
Re: automatic code completion in vim
> > possible and on small sample quite fast but still 0.5s is long. Maybe we > > should put that strain to the system:: > > > > function! UpdateTags() > > call writefile(getline(1, '$'), '.tmp.cc', 'b') > > call system('grep -v " '.expand('%').' " tags > tags2 && mv -f tags2 > > tags') > > let tags = system('ctags --c++-kinds=+p --fields=+iaS --extra=+q -f > > - .tmp.cc | sed "s/\t\.tmp\.cc\t/\t'.expand('%').'\t/" >> tags') > > return ';' > > endfunction > > inoremap ; UpdateTags() > > > > And here we have the winner:: > > > > FUNCTION UpdateTags() > > Called 1 time > > Total time: 0.145700 > > Self time: 0.001068 > > > > count total (s) self (s) > > 1 0.000523 call writefile(getline(1, '$'), '.tmp.cc', 'b') > > 1 0.096118 0.000195 call system('grep -v " '.expand('%').' " tags > > > tags2 && mv -f tags2 tags') > > 1 0.049003 0.000294 call system('ctags --c++-kinds=+p --fields=+iaS > > --extra=+q -f - .tmp.cc | sed "s/\t\.tmp\.cc\t/\t'.expand('%').'\t/" >> > > tags') > > 1 0.29 return ';' > > > > FUNCTIONS SORTED ON TOTAL TIME > > count total (s) self (s) function > > 1 0.145700 0.001068 UpdateTags() > > > > FUNCTIONS SORTED ON SELF TIME > > count total (s) self (s) function > > 1 0.145700 0.001068 UpdateTags() > > > > > > Below 0.15s (and even in worse conditions only up to 0.25s)! This is > > less then one keystroke of good touchtyper. This is for the price of > > portability but you can find grep/sed/mv for other systems so situation > > isn't hopeless. > > > > HTH > > > > m. > > > > > > > Thank you for your script. It doesn't work so fast in my computer. > There is another problem when I use omnicppcomplete plugin. > I don't know if it is its bug. > For example, there are two files: > tmp1.h > class tmp1{ > public: >void print1(){} > }; > hello.cc- > #include "tmp1.h" > > class hello{ > public: >void print(){} >static void hello(){} >static int h; > }; > > int main(){ >hello h; >hello::hello(); >h. >hello::<- the popup menu only appear here >tmp1 t1; >t1. > } > > I'm sure tags has been created correctly. The popup menu sometimes > appears, sometimes doesn't when I type '.' or '->'. > I tried many times, but still didn't find the rule: when it appears, > when it doesn't. > Does anyone meet the similar program? Or has some ideas? > > Zheng Da > Thank you for your reply. It does work in "h." in my case, when I changed the code like int main() { hello h; hello::hello(); h. } But for class tmp1, it still doesn't work. For this code, --tmp1.h-- class tmp1 { public: void print1(){} }; --hello.cc #include "tmp1.h" int main() { tmp1 t1; t1. <-no popup menu appears } It seems it only works for the class in the same file. If the class is in the header file, it doesn't. -- With regards Zheng Da
Re: automatic code completion in vim
Do you mean create tags files for every code file, and change tags file when switching between different code files? But how to combine all of these actions to a hotkey? If ctags can provide an update option, the problem can be solved very easily. But it seems ctags doesn't provide this option any longer. Zheng Da On 12/30/06, Mikolaj Machowski <[EMAIL PROTECTED]> wrote: On sob gru 30 2006, vim@vim.org wrote: > Hello, > > I hope vim can run automatically a completion after a '.', '->' or '::' > when I write c++ program. I know omnicppcomplete plugin can do this job. > But omnicppcomplete needs tag database. So if I want omnicppcomplete to > tell me members of a class, I have to keep updating the tag database > even though I only make a little change. > So is there other ways to do the completion? Or is there some way to let > omnicppcomplete update the tag database automatically? Some time ago I was experimenting with PHP files and remapping of ; to recreate tags file including changes from current file (even when non-written). On big projects it was taking too much time. On small to middle ones behaviour was acceptable. You could try similar thing or better: create tags only for current file and later replace proper entries in project tags file. Should give significant speed gains comparing to my approach. m. -- With regards Zheng Da
Re: How to find a file.
I have used your script, but it can't content me. I want to find the file under the current dir, its subdir or maybe its sub-subdir. So I hope while I'm inputting the filename, the popup menu should display the paths with the file, not the dir, containing the characters I input. -- With regards Zheng Da On 10/15/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: On Sun, 15 Oct 2006 at 3:41pm, Zheng Da wrote: > Hello. > I want to open a file, and I know its name, but don't know the path. > I want to use the command "find". For example I want to open the file > space.cc, and use the command :find space.cc. I know the file may be > in the current directory, or the subdirectories, but always get the > error E345: Cannot find file "space.cc" in path. I use the default > path, it should be .,/usr/include,,. (I use Linux). > So what's the problem? And how to open the file I want? You got the answer for using :find command already, but I would like to suggest you to try my LookupFile plugin that allows you to use the Vim7 popup completion to do this using custom tags files. http://www.vim.org//script.php?script_id=1581 -- HTH, Hari __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
How to find a file.
Hello. I want to open a file, and I know its name, but don't know the path. I want to use the command "find". For example I want to open the file space.cc, and use the command :find space.cc. I know the file may be in the current directory, or the subdirectories, but always get the error E345: Cannot find file "space.cc" in path. I use the default path, it should be .,/usr/include,,. (I use Linux). So what's the problem? And how to open the file I want? -- With regards Zheng Da
Re: I cannot install gvim7.0
On 10/2/06, Tom Purl <[EMAIL PROTECTED]> wrote: Please reply to the list so that others can learn from our mistakes :) I'm sorry. I didn't notice. I thought I had posted my letter to the list. > I think it works. But it's really surprising. I run apt-get > build-dep vim-gnome, then run ./configure the same result:"checking > --enable-gui argument... no GUI support". You can also try the `apt-get build-dep` command with the following Debian packages: vim-gtk vim-gui-common > I removed the original source codes, and get a new one from > vim-7.0-extra.tar.gz, vim-7.0-lang.tar.gz, vim-7.0.tar.bz2. You should only require the last file in that list to compile gvim. I need to use Chinese. > Then I can compile vim with GUI. By the way, I run ./configure > without any arguments. This is probably a *big* part of the reason why you can't compile gvim. In order to compile GVIM, it was my understanding that you needed to use some sort of GUI flag when executing the ./configuration step. Try running the following command in the future when compiling vim: I didn't use any argument of configure, and could still compile gvim. ./configure --help | grep GUI This will show you all of the GUI-related flags that you need to consider when compiling gvim. HTH! Tom Purl > On 10/2/06, Tom Purl <[EMAIL PROTECTED]> wrote: >> On Mon, Oct 02, 2006 at 12:42:52AM +0800, Zheng Da wrote: >> > Hello. >> > I try to install vim7.0 >> > But I can't install vim with GUI. >> > It seems that configure automatically looks for a GUI, but it always >> > tells no in my system. >> > "checking --enable-gui argument... no GUI support" >> > And I'm sure there isn't gvim in my system. >> > I read src/INSTALL. It tells me that I need glib and gtk+ at least >> > version 1.1.16, but below 2.0. >> > I use Debian, and in my system, there are libgtk1.2, libgtk1.2-common, >> > libgtk1.2-dev, libglib1.2, libglib1.2-dev. >> > So what else do I need? >> > >> > -- >> > With regards >> > Zheng Da >> >> I had this same problem, and I think that it was fixed by installing >> the xwindows dev libraries. The output of ./configure told me what >> was missing from an X11 dev perspective. >> >> You might also want to try the following to install all of the >> compilation dependencies: >> >> sudo apt-get build-dep vim-gnome >> >> HTH! >> >> Tom Purl >> > > > -- > With regards > Zheng Da > -- With regards Zheng Da
I cannot install gvim7.0
Hello. I try to install vim7.0 But I can't install vim with GUI. It seems that configure automatically looks for a GUI, but it always tells no in my system. "checking --enable-gui argument... no GUI support" And I'm sure there isn't gvim in my system. I read src/INSTALL. It tells me that I need glib and gtk+ at least version 1.1.16, but below 2.0. I use Debian, and in my system, there are libgtk1.2, libgtk1.2-common, libgtk1.2-dev, libglib1.2, libglib1.2-dev. So what else do I need? -- With regards Zheng Da