Gvim in windows not autocompleting tabf arguements

2010-08-20 Thread Vivek Bhat
Hi,

I have installed Gvim 7.3 on my windows XP and openSUSE 11.3. While in suse
doing "tabf $MY" and then tab gives "tabf $MYVIMRC", but in windows "tabf
$MY" and then tab is not auto completing. The feature is working fine with
"e" command, e.g. "e $MY" and then tab gives "e $MYVIMRC". Does anyone have
any idea why could this be happening...


Thanks,
Vivek Bhat
www.vivekbhat.in

-- 
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


gvim window auto shrinks in openSUSE

2010-08-25 Thread Vivek Bhat
Hi,

I have been using vim since 7.1. In windows I do not face any problem. But in 
my openSUSE OS there is one little irritant. The gvim window never gets 
maximized. Whenever I maximize gvim, it gets maximized and then auto shrinks a 
little from left and bottom. I have been facing this in openSUSE 11.2 and 11.3 
and in gvim 7.2 as well as gvim 7.3.
Here is the snapshot: 
http://picasaweb.google.co.in/vivekbhat9/MySuseDesktop#5509356255021935746

Is there some work around for this?

Thanks,
Vivek Bhat   

-- 
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


Fwd: gvim window auto shrinks in openSUSE

2010-08-27 Thread Vivek Bhat
Hasn't any one else faced this problem... ?

Thanks,
Vivek Bhat
-- Forwarded message --
From: Vivek Bhat 
Date: Wed, Aug 25, 2010 at 8:13 PM
Subject: gvim window auto shrinks in openSUSE
To: vim_use@googlegroups.com


Hi,

I have been using vim since 7.1. In windows I do not face any problem. But
in
my openSUSE OS there is one little irritant. The gvim window never gets
maximized. Whenever I maximize gvim, it gets maximized and then auto shrinks
a
little from left and bottom. I have been facing this in openSUSE 11.2 and
11.3
and in gvim 7.2 as well as gvim 7.3.
Here is the snapshot:
http://picasaweb.google.co.in/vivekbhat9/MySuseDesktop#5509356255021935746

Is there some work around for this?

Thanks,
Vivek Bhat

-- 
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: Fwd: gvim window auto shrinks in openSUSE

2010-08-28 Thread Vivek Bhat
On Saturday, August 28, 2010 08:22:49 am member thudfoo wrote:
> On Fri, Aug 27, 2010 at 5:52 PM, Daniel Nelson  wrote:
> > On Friday 27 August 2010 7:35:53 am Vivek Bhat wrote:
> >> Hasn't any one else faced this problem... ?
> > 
> > This seems to only be an issue with certain window managers.  It looks
> > like your using kde, which has had this case filed for a couple years
> > https://bugs.kde.org/show_bug.cgi?id=158974
> > 
> > I've noticed that not all window managers have this behavior.  Whether
> > its kwin or gvim's fault, or even if it is really a bug, I'm not sure.
> > --
> > Daniel
> 
> The only windows in opensuse KDE3 that exhibit this behavior are those
> of gvim, in my experience. This is strong evidence that the behavior
> is a bug. A gvim bug. An ugly gvim bug.
Whether bug or a feature, it is irritating. Everytime I maximize or open new 
tabs gvim tries to adjust its window. I am having a workaround right now, not 
nice one, but better than before. Click "windows operations menu" (ALT+F3 in 
KDE), then Advanced --> Special Application Settings. Go to "Windows Extra" 
tab, select only "Normal Window", deselect everything else. Now go to 
"Geometry" tab tick the "Size" option. Then fill up whatever size you need for 
gvim. But now, the gvim window can not be restored or maximized, it will just 
be in size what you have filled.

Thanks,
Vivek  

-- 
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: Problem with VIM GUI

2010-08-30 Thread Vivek Bhat
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  -
> DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/
> lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/
> include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/
> config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2
> -I/usr/X11R6/include
> Linking: gcc  -L/usr/X11R6/lib   -rdynamic   -L/usr/local/lib -o vim
> -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -
> lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -
> lgmodule-2.0 -lglib-2.0   -lXt -lncurses -lselinux  -lacl -lgpm -
> rdynamic  /usr/cisco/packages/perl/perl-5.8.6/lib/5.8.6/i686-linux/
> auto/DynaLoader/DynaLoader.a -L/usr/cisco/packages/perl/perl-5.8.6/lib/
> 5.8.6/i686-linux/CORE -lperl -lcrypt -lutil -lc -L/usr/lib/python2.3/
> config -lpython2.3 -lpthread -lutil -lm -Xlinker -export-dynamic
Menu bar can be added by "set guioptions", eg "set guioptions=gumrLt" where 
"m" is the menu bar. For what all these options mean "help guioptions" at vim 
command line. Check what is the font by "set gfn" at command line of gvim. For 
changing font eg to Monospace "set gfn=Monospace\ bold\ 10" (In Linux). Check 
if ".gvimrc" file is present in your home directory. If .gvimrc is present 
then gvim will take settings from it rather than .vimrc.

Thanks,
Vivek Bhat

-- 
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 lines longer than 80 chars for a specific file types.

2010-09-05 Thread Vivek Bhat
This thing works for me. I am a COBOL developer and have to take care of
columns. Is there away to ignore comments even if they cross the specified
column?

Thanks
Vivek Bhat

On Sun, Sep 5, 2010 at 4:47 AM, bill lam  wrote:

> Сбт, 04 Сен 2010, Reuven Sayag писал(а):
> > Hi,
> > I would like to highlight lines that are longer then 80 chars.
> > I use:
> > :match ErrorMsg '\%>80v.\+'
> > the problem is that I only want to do that for cpp and h files, to set
> > if for 100 for java and to unset it for any other type.
> > Anyone knows how this can be done?
>
> try (untest):
>
> au FileType cpp   match ErrorMsg '\%>80v.\+'
> au FileType java  match ErrorMsg '\%>100v.\+'
>
> --
> regards,
> 
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>
> --
> 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: Navigation in vi

2010-09-08 Thread Vivek Bhat
On Wednesday, September 08, 2010 08:26:33 pm Ven Tadipatri wrote:
> After some difficulties I had with my c++ IDE I decided to switch to
> using vi. I have a lot to learn, but already I'm really impressed by
> the possibilities of navigation. It offers so much more than the
> standard arrow keys and page up/page down/home/end keys in a standard
> IDE:
> - you can mark a point in the code and go to it
> - ctrl I and O allow you to navigate back and forth
> - / and f allow you to find
> - w and b move you back and forth across words and with numbers you
> can navigate across multiple words
> - you can fold parts of the code and navigate across the folds
> - it's integrated fully with the shell itself, so you can open up a
> new window with ctrl+w, and execute whatever commands you want.
> -I'm sure there's lots more, this is just from a first glance what
> struck me as far superior to navigation I see in most editors.
> 
> There are still difficulties I'm trying to get over, like navigating
> across multiple files and autocompletion, but I think I'm definitely
> on the right track in switching to vi from an IDE like Eclipse or
> Netbeans.
>Eclipse works well for java, but when I tried using it for C++, I
> got so frustrated with it, despite the fancy graphical interface, I
> wanted an editor with good code navigation. In fact, oddly enough, the
> fact that most IDE's have a graphical interfaces actually causes more
> problems. Whereas in VI, a few keystrokes can get you to where you
> want (granted there's a learning curve), in an IDE, there's a dialog
> that pops up, you're restricted to the buttons and textboxes they give
> you, plus there's the extra GUI load time. And it's the customization
> feature of vi that makes it really powerful. You can make the
> shortcuts you want, and it's all self-contained within a single
> .vimrc. There's no digging through Eclipse plugin configuration files.
>If anyone can point me to good tutorials for using VIM as an
> effective IDE (for C++ specifically), I would greatly appreciate it.
> There's so many subtle things about VIM I really don't know where to
> go to learn more about using it effectively.
> 
> Thanks,
> Ven
Check this plugin for C++ http://www.vim.org/scripts/script.php?script_id=213. 
Here is VIM wiki for code completion in C++ 
http://vim.wikia.com/wiki/C%2B%2B_code_completion. If using Linux with KDE, 
you can also try kdevelop editor. Check Vim Wiki for lots of trips and tricks 
http://vim.runpaint.org/ and I found this website really very good for 
learning Vim http://vim.runpaint.org/

For navigating across multiple files you can either use "buffers" or firefox 
like tabs. For using tabs like you do in firefox put this in .vimrc (Linux) or 
_vimrc (windows):

nmap  :tabnext
nmap  :tabprevious
map  :tabprevious
map  :tabnext
imap  :tabpreviousi
imap  :tabnexti
nmap  :tabnew
imap  :tabnew


Thanks
Vivek Bhat

-- 
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 anybody please explain me about Map

2010-09-15 Thread Vivek Bhat
http://how-to.wikia.com/wiki/How_to_map_keys_in_vim
http://vim.wikia.com/wiki/Category:Map
http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_%28Part_1%29

A few of them, hope they help you. Just google and you will find thousands
of pages on VIM how to do's.


On Thu, Sep 16, 2010 at 8:46 AM, vicky b  wrote:

> thanks it was very helpful the problem is that i did read it through vim
> help and did figure that u can map your key with something
> like the example given in vim help where we associate F2 with date but i
> could not understand properly so  just posted to know
> if anybody can explain me in detail.
>
> Regards
> Vinay
>
>
> On Wed, Sep 15, 2010 at 6:09 PM, Benjamin R. Haskell wrote:
>
>> On Wed, 15 Sep 2010, vicky b wrote:
>>
>>  On Wed, Sep 15, 2010 at 3:14 PM, Joan Miquel Torres Rigo wrote:
>>>
>>>  2010/9/15 vicky b:

  [no text] (subject: Can anybody please explain me about Map)
>

 Maybe.

>>>
>>> thank you so much
>>>
>>>
>> Ask a silly question, get a silly answer.
>>
>>
>> Start by typing within Vim:
>>
>> :help mapping
>>
>> and hitting enter.  The built-in help system in Vim is one of its
>> strongest features.
>>
>>
>> If you really meant 'Map', and not 'map' (i.e. the capitalization is
>> important), it might be a function defined in a plugin you're using, in
>> which case, try:
>>
>> :help Map
>>
>>
>> If neither of those helps, you'll need to provide more details.  Vim users
>> tend to be technically-inclined.  A good source for how to get good
>> responses in technical fora is "How to Ask Questions the Smart Way"[1],
>> which is summarized nicely by "How to Ask Good Questions"[2]. From the way
>> you've asked your question, it isn't slightly clear what problem you're
>> trying to solve.
>>
>> [1] How to Ask Questions the Smart Way
>> http://www.catb.org/~esr/faqs/smart-questions.html
>>
>> [2] How to Ask Good Questions
>> http://www.gerv.net/hacking/how-to-ask-good-questions/
>>
>> --
>> Best,
>> Ben
>>
>> --
>> 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
>

-- 
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: What *exactly* does ":behave mswin" do?

2010-09-20 Thread Vivek Bhat
On Tue, Sep 21, 2010 at 8:11 AM, Brian Sullivan wrote:

> I've seen lots of references to it, and even had it enabled on my
> Windows installations of Vim.  But I can't find in the documentation
> exactly what changes it that setting makes to the Vim environment.
> Can someone enlighten me?
>
> Basically it is to enable the way in which you work on MS environment.
Ctrl-P (copy), Ctrl-V (paste).. etc. Remove that and you
cannot use these windows shortcuts and will have to use only vim way
(yy, P). But even in mswin mode vim commands will work.
Thanks,
Vivek

> --
> 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: Vim count selection and put in statusline

2011-02-21 Thread Vivek Bhat
On Mon, Feb 21, 2011 at 7:26 PM, carlosp  wrote:

> Thanks a lot Jürgen! I will try it later and modify it to fit exactly my
> needs.
>
> 2011/2/21 Jürgen Krämer-4 [via VIM]
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=3394165&i=0>>:
> I use the default vi settings for status line.. and it does show me the
> number of selected characters in status line on right side.. As I keep
> selecting the characters in visual mode it keeps updating the selected
> characters in status line.
>

Thanks,
Vivek Bhat

> >
> > Hi,
> >
> > carlosp wrote:
> >>
> >> Dear all, I would like to know if there is some non-baroque way of, when
>
> >> doing a selection of some text, set in the status line just the number
> of
> >> characters in the selection (and of course, when one modifies the
> >> selection,
> >> as moving the coursor in the visual mode) the status line should be
> >> updated
> >> automatically. The solutions that occurred to me involve using external
> >> commands (like wc -l) and then sending that to vim, each time I move the
>
> >> selection etc. Does anyone knows a clean way of doing such a thing?
> >
> > put the following function in your .vimrc or in a file named
> > ~/.vim/plugin/VisualSelectionSize.vim
> >
> > function! VisualSelectionSize()
> > if mode() == "v"
> > " Exit and re-enter visual mode, because the marks
> > " ('< and '>) have not been updated yet.
> > exe "normal \gv"
> > if line("'<") != line("'>")
> > return (line("'>") - line("'<") + 1) . ' lines'
> > else
> > return (col("'>") - col("'<") + 1) . ' chars'
> > endif
> > elseif mode() == "V"
> > exe "normal \gv"
> > return (line("'>") - line("'<") + 1) . ' lines'
> > elseif mode() == "\"
> > exe "normal \gv"
> > return (line("'>") - line("'<") + 1) . 'x' . (abs(col("'>") -
>
> > col("'<")) + 1) . ' block'
> > else
> > return ''
> > endif
> > endfunction
> >
> > and then change your 'statusline' option so that it contains
> >
> > %{VisualSelectionSize()}
> >
> > at an appropriate place, e.g., with
> >
> > :set statusline.=%(\ %{VisualSelectionSize()}%)
> >
> > you would append it to your current status line. The group %(...%) takes
> > care of removing the space if VisualSelectionSize() returns an empty
> > string when you are not in a visual mode.
> >
> > Regards,
> > Jürgen
> >
> > --
> > Sometimes I think the surest sign that intelligent life exists elsewhere
> > in the universe is that none of it has tried to contact us. (Calvin)
> >
> > --
> > 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
> >
> >
> > 
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> http://vim.1045645.n5.nabble.com/Vim-count-selection-and-put-in-statusline-tp3390411p3394112.html<http://vim.1045645.n5.nabble.com/Vim-count-selection-and-put-in-statusline-tp3390411p3394112.html?by-user=t>
> > To unsubscribe from Vim count selection and put in statusline, click
> here.
>
> --
> View this message in context: Re: Vim count selection and put in
> statusline<http://vim.1045645.n5.nabble.com/Vim-count-selection-and-put-in-statusline-tp3390411p3394165.html>
>
> Sent from the Vim - General mailing list 
> archive<http://vim.1045645.n5.nabble.com/Vim-General-f1139531.html>at 
> Nabble.com.
>
> --
> 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


copy/pasting in search and colon commands

2011-03-10 Thread Vivek Bhat
Hi,

I am trying to getting adept at VIM editing. There are few problems I am
facing.
I do not know how to copy from file and then paste it into search command or
colon command.
e.g. I have to search for word "foo" in the file. I want to be able to copy
this word "foo", invoke search mode by pressing "/" and then paste the word
there. I can do this by "C-c" and then "C-v" in gvim but I want to do this
in VIM way not windows way.

I know I can copy by either visually selecting the word("V-w") and then
yanking it("y") or copy it ("+y), but I do not know how to paste this word
in search mode(After I press "/") or in command mode(After I press ":").

Can anyone please guide me in this regard.
Thank you very much in advance :)

Thanks,
Vivek

-- 
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