vim not opening directories

2007-06-05 Thread Reid Thompson
currently running vim 7.1.2 svn.
In the past when invoking vim on a directory, it would open the
directory and list the contents, my current build is not doing this.  It
returns the message 
  src is a directory
instead.  Can someone point me to what I've mis-configured?

Thanks,
reid


Re: vim not opening directories

2007-06-05 Thread Reid Thompson
On Tue, 2007-06-05 at 16:32 +0200, Peter Palm wrote:
 Op dinsdag 5 juni 2007, schreef Reid Thompson:
  currently running vim 7.1.2 svn.
  In the past when invoking vim on a directory, it would open the
  directory and list the contents, my current build is not doing this. 
  It returns the message
src is a directory
  instead.  Can someone point me to what I've mis-configured?
 
 You are probably running vim in 'compatible' mode.
 
 Try
 :set nocompatible
 
 to disable this behaviour, or create a ~/.vimrc file (if this file even 
 exists, vim defaults to nocompatible)
 
 And maybe start vim as 'vim' instead of 'vi' helps too.
 
 
 Regards,
 
 
 Peter Palm
I have a .vimrc.
it has 
 Use Vim settings, rather then Vi settings (much better!).
 This must be first, because it changes other options as a side
effect.
set nocompatible

I've already tried invoking via 
[EMAIL PROTECTED]:~$ /usr/bin/vim src
[EMAIL PROTECTED]:~$ /usr/bin/gvim src


Re: vim not opening directories

2007-06-05 Thread Reid Thompson
On Tue, 2007-06-05 at 16:50 +0200, Peter Palm wrote:
 Op dinsdag 5 juni 2007, schreef Reid Thompson:
  I have a .vimrc.
  it has
   Use Vim settings, rather then Vi settings (much better!).
   This must be first, because it changes other options as a
  side effect.
  set nocompatible
 
  I've already tried invoking via
  [EMAIL PROTECTED]:~$ /usr/bin/vim src
  [EMAIL PROTECTED]:~$ /usr/bin/gvim src
 
 
 Well, the problem is vim can't find the netrwPlugin.vim file.
 
 What is the output of
 :echo $VIMRUNTIME
 ?
 
 
 Peter

/usr/share/vim/vim71


Re: vim not opening directories

2007-06-05 Thread Reid Thompson
On Tue, 2007-06-05 at 11:14 -0400, Charles E Campbell Jr wrote:
 Reid Thompson wrote:
 
 I have a .vimrc.
 it has 
  Use Vim settings, rather then Vi settings (much better!).
  This must be first, because it changes other options as a side
 effect.
 set nocompatible
 
 I've already tried invoking via 
 [EMAIL PROTECTED]:~$ /usr/bin/vim src
 [EMAIL PROTECTED]:~$ /usr/bin/gvim src
 
   
 
 * make sure that your account has read-write access (if somehow its 
 owned by root...)
 
 * In addition to set nocompatible, you should also have:  (in your .vimrc)
 
 if version = 600
   filetype plugin indent on
 endif
 
I have
 Only do this part when compiled with support for autocommands.
if has(autocmd)

   Enable file type detection.
   Use the default filetype settings, so that mail gets 'tw' set to 72,
   'cindent' is on in C files, etc.
   Also load indent files, to automatically do language-dependent
indenting.
  filetype plugin indent on


 * Check that you in fact have a .vimrc, not a .gvimrc, for this.  If you 
 use .gvimrc instead,
I have a .vimrc and a .gvimrc
 well, it loads after the plugins would, and so the filetype plugin on 
 won't be effecacious.
 
 * Fire up vim; check on $VIMRUNTIME -- make sure that plugin/netrw*.vim 
 and autoload/netrw*.vim
   are both there and readable by you as a user.
[EMAIL PROTECTED]:~$ ls -rlt /usr/share/vim/vim71/plugin/
total 52
-rw-r--r-- 1 root root 2095 2007-06-05 10:09 zipPlugin.vim
-rw-r--r-- 1 root root 1664 2007-06-05 10:09 vimballPlugin.vim
-rw-r--r-- 1 root root  705 2007-06-05 10:09 tohtml.vim
-rw-r--r-- 1 root root 1878 2007-06-05 10:09 tarPlugin.vim
-rw-r--r-- 1 root root  499 2007-06-05 10:09 spellfile.vim
-rw-r--r-- 1 root root 1362 2007-06-05 10:09 rrhelper.vim
-rw-r--r-- 1 root root  889 2007-06-05 10:09 README.txt
-rw-r--r-- 1 root root 8934 2007-06-05 10:09 netrwPlugin.vim
-rw-r--r-- 1 root root 3549 2007-06-05 10:09 matchparen.vim
-rw-r--r-- 1 root root 1451 2007-06-05 10:09 gzip.vim
-rw-r--r-- 1 root root 1346 2007-06-05 10:09 getscriptPlugin.vim



 [EMAIL PROTECTED]:~$ ls -rlt /usr/share/vim/vim71/autoload/
total 844
drwxr-xr-x 2 root root   4096 2007-05-30 14:46 xml
-rw-r--r-- 1 root root  11450 2007-06-05 10:09 zip.vim
-rw-r--r-- 1 root root  14857 2007-06-05 10:09 xmlcomplete.vim
-rw-r--r-- 1 root root  18517 2007-06-05 10:09 vimball.vim
-rw-r--r-- 1 root root  12964 2007-06-05 10:09 tar.vim
-rw-r--r-- 1 root root  13849 2007-06-05 10:09 syntaxcomplete.vim
-rw-r--r-- 1 root root  25495 2007-06-05 10:09 sqlcomplete.vim
-rw-r--r-- 1 root root   4956 2007-06-05 10:09 spellfile.vim
-rw-r--r-- 1 root root  23457 2007-06-05 10:09 rubycomplete.vim
-rw-r--r-- 1 root root773 2007-06-05 10:09 README.txt
-rw-r--r-- 1 root root  20981 2007-06-05 10:09 pythoncomplete.vim
-rw-r--r-- 1 root root 293714 2007-06-05 10:09 phpcomplete.vim
-rw-r--r-- 1 root root   1232 2007-06-05 10:09 paste.vim
-rw-r--r-- 1 root root 203836 2007-06-05 10:09 netrw.vim
-rw-r--r-- 1 root root   7561 2007-06-05 10:09 netrwSettings.vim
-rw-r--r-- 1 root root  10226 2007-06-05 10:09 netrwFileHandlers.vim
-rw-r--r-- 1 root root  27028 2007-06-05 10:09 javascriptcomplete.vim
-rw-r--r-- 1 root root  24253 2007-06-05 10:09 htmlcomplete.vim
-rw-r--r-- 1 root root   5740 2007-06-05 10:09 gzip.vim
-rw-r--r-- 1 root root   4972 2007-06-05 10:09 gnat.vim
-rw-r--r-- 1 root root  19107 2007-06-05 10:09 getscript.vim
-rw-r--r-- 1 root root   2924 2007-06-05 10:09 decada.vim
-rw-r--r-- 1 root root  15922 2007-06-05 10:09 csscomplete.vim
-rw-r--r-- 1 root root  16307 2007-06-05 10:09 ccomplete.vim
-rw-r--r-- 1 root root  21511 2007-06-05 10:09 ada.vim
-rw-r--r-- 1 root root   3641 2007-06-05 10:09 adacomplete.vim

 Regards,
 Chip Campbell

build options...

[EMAIL PROTECTED]:~$ vim --version
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun  5 2007 10:08:55)
Included patches: 1-2
Compiled by [EMAIL PROTECTED]
Normal version with GTK2-GNOME 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() +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

Re: vim not opening directories

2007-06-05 Thread Reid Thompson
On Tue, 2007-06-05 at 11:14 -0400, Charles E Campbell Jr wrote:
 * make sure that your account has read-write access (if somehow its 
 owned by root...)

drwxr-xr-x 17 rthompso staff4096 2007-06-01 11:42 src


Re: what is the language for vim development

2007-04-11 Thread Reid Thompson
flyfish wrote:
 Hi,
 
 i would like to do some contribution in vim development, i have used vim
 more than one year in programming and text edit, but when i want to start to
 code for vim, i even do not know what language is used for vim development,
 could you give me some information and steps how to do?

http://www.vim.org/download.php


http://svn.sourceforge.net/viewvc/vim/vim7/

the language is C.


Re: copy pasting HTML code into vim

2007-04-06 Thread Reid Thompson

Gene Kwiecinski wrote:

Let's say I open up a webpage, select some text and paste it into vim.


Then
  

all I see in vim is the text I see on the browser. While this is OK


most of
  

the times, sometimes I wish there is a way to paste the actual HTML


code
  

directly into the vim.



  

Selecting view source of the webpage and then copy pasting into vim


will
  

work. But it is very cumbersome and time consuming. So this is not an
option for me.



Wouldn't think so.  That's a function of the browser (what yanks the
text into the buffer to begin with), and not 'vim' (which only gets
what's handed to it).

Were you to put the yanked text to 'notepad', 'textpad', etc., it'd be
the same thing, just the plain unadorned text.

GIGO (garbage in, garbage out).


Fwiw, just use shortcuts to get to the source, whether
altvs/alt, ^S, ^U, whatever your particular browser needs to
get there.  Can quite often be done in literally just 1 keystroke, so
I'm not sure why you say this is not an option for me.  Finding the
section of the source you want to cp *might* be more difficult if there
be a lot of repetitive words/phrases and you have a hard time isolating
the section, but a simple find-text (^F, etc.) should do the job
fairly well.  No?

And don't forget, quite a lot of times what's displayed by the c/p text
is incomplete, as you'd likely need the stylesheet (.css file) to make
sense of different classes, etc.  That's why I usually just pig the
whole page and all associated files, and *then* worry about narrowing it
down to the text I need.
  

curl www.yahoo.com | vim -

or from within vim

:r !curl www.yahoo.com


Re: copy pasting HTML code into vim

2007-04-06 Thread Reid Thompson

Reid Thompson wrote:

Gene Kwiecinski wrote:

Let's say I open up a webpage, select some text and paste it into vim.

Then

all I see in vim is the text I see on the browser. While this is OK

most of

the times, sometimes I wish there is a way to paste the actual HTML

code

directly into the vim.



Selecting view source of the webpage and then copy pasting into vim

will

work. But it is very cumbersome and time consuming. So this is not an
option for me.


Wouldn't think so. That's a function of the browser (what yanks the
text into the buffer to begin with), and not 'vim' (which only gets
what's handed to it).

Were you to put the yanked text to 'notepad', 'textpad', etc., it'd be
the same thing, just the plain unadorned text.

GIGO (garbage in, garbage out).


Fwiw, just use shortcuts to get to the source, whether
altvs/alt, ^S, ^U, whatever your particular browser needs to
get there. Can quite often be done in literally just 1 keystroke, so
I'm not sure why you say this is not an option for me. Finding the
section of the source you want to cp *might* be more difficult if there
be a lot of repetitive words/phrases and you have a hard time isolating
the section, but a simple find-text (^F, etc.) should do the job
fairly well. No?

And don't forget, quite a lot of times what's displayed by the c/p text
is incomplete, as you'd likely need the stylesheet (.css file) to make
sense of different classes, etc. That's why I usually just pig the
whole page and all associated files, and *then* worry about narrowing it
down to the text I need.

curl www.yahoo.com | vim -

or from within vim

:r !curl www.yahoo.com

you may want to pass the -s parameter to curl to not show the progess meter


Need help integrating new tabbed windows functionality into cscope

2006-09-25 Thread Reid Thompson
I currently use cscope with the mappings shown below.  What I would like
to know how to implement is, a sequence of mappings that would open the
cscope returned data in a new tab, rather than the current tab or a
split of the current tab.  I would like this to work for both vim and
gvim.  Currently some of the mappings below do not work for gvim
( CTRL-spacebar seems to jump me to the beginning of the first word
following a space, or the first newline whichever comes first)

Any help would be appreciated.

thanks,
reid

mappings---

 To do the first type of search, hit 'CTRL-\', followed by one of the
 cscope search types above (s,g,c,t,e,f,i,d).  The result of your
cscope
 search will be displayed in the current window.  You can use
CTRL-T to
 go back to where you were before the search.


nmap C-\s :cs find s C-R=expand(cword)CRCR
nmap C-\g :cs find g C-R=expand(cword)CRCR
nmap C-\c :cs find c C-R=expand(cword)CRCR
nmap C-\t :cs find t C-R=expand(cword)CRCR
nmap C-\e :cs find e C-R=expand(cword)CRCR
nmap C-\f :cs find f C-R=expand(cfile)CRCR
nmap C-\i :cs find i ^C-R=expand(cfile)CR$CR
nmap C-\d :cs find d C-R=expand(cword)CRCR


 Using 'CTRL-spacebar' (intepreted as CTRL-@ by vim) then a search
type
 makes the vim window split horizontally, with search result
displayed in
 the new window.

 (Note: earlier versions of vim may not have the :scs command, but
it
 can be simulated roughly via:
nmap C-@s C-WC-S :cs find s
C-R=expand(cword)CRCR

nmap C-@s :scs find s C-R=expand(cword)CRCR
nmap C-@g :scs find g C-R=expand(cword)CRCR
nmap C-@c :scs find c C-R=expand(cword)CRCR
nmap C-@t :scs find t C-R=expand(cword)CRCR
nmap C-@e :scs find e C-R=expand(cword)CRCR
nmap C-@f :scs find f C-R=expand(cfile)CRCR
nmap C-@i :scs find i ^C-R=expand(cfile)CR$CR
nmap C-@d :scs find d C-R=expand(cword)CRCR


 Hitting CTRL-space *twice* before the search type does a vertical
 split instead of a horizontal one (vim 6 and up only)

 (Note: you may wish to put a 'set splitright' in your .vimrc
 if you prefer the new window on the right instead of the left

nmap C-@C-@s :vert scs find s C-R=expand(cword)CRCR
nmap C-@C-@g :vert scs find g C-R=expand(cword)CRCR
nmap C-@C-@c :vert scs find c C-R=expand(cword)CRCR
nmap C-@C-@t :vert scs find t C-R=expand(cword)CRCR
nmap C-@C-@e :vert scs find e C-R=expand(cword)CRCR
nmap C-@C-@f :vert scs find f C-R=expand(cfile)CRCR
nmap C-@C-@i :vert scs find i ^C-R=expand(cfile)CR$CR
nmap C-@C-@d :vert scs find d C-R=expand(cword)CRCR