gvim

Mixing vertical and horizontal splits in vim, from command line.

Title really says it all. There is the -O option for opening splits vertically, and -o for horizontally, but trying to mix them doesn't seem to work. My goal is to use g/vimdiff for 3-way file merging in mercurial in a way more like kdiff3 does. This method would have the 3 files to be merged split into 3 vertical tabs across the top ...

Change VIM gui tab width

In GVim can one change the width of the GUI's tabs (i.e. the tab labels at the top that show guitablabel)? In particular, the tab labels aren't wide for a guitablabel=%f or anything of that length. Thanks ...

How can I get Perl's debugger and gVim to work together on Linux?

Is there a way to get Perl's debugger and gVim to work together on Linux? I.e. step through code in gVim and see the values of watched variables controlling the debugger from within gVim? ...

changing vim's vertsplit character to │

This is, I assume, codepage related, but doesn't hurt asking. How would one, on windows xp's cmd, gvim 7.2 change vertsplit character, so that instead of default | it is │ (so that it makes a full, and not an splitted line) ? That character is usually changed with set fillchars=vert:\| and I can copy paste the ascii graphics line th...

Vim as a note taking platform: Jump to tag in vertically split windows

In the past, I have used Vim as a note taking platform by creating an index.txt file with a list of tags using the Vim help file format and then creating a bunch of text files that have the normal *Help_Tag* link syntax so that using CTRL-] on a tag in the index.txt file will jump to the respective tag in an arbitrary notes text file. Yo...

vim omnicomplete vs. vim intellisense

Are Vim OmniComplete and Vim Intellisense mutually exclusive or complimentary? I'm a bit confused by conflicting terminology and implementations, such as these C++ OmniComplete and C++ Intellisence plugins. ...

Use last arguments from vim's :make command

I have a one key mapping to build my project. noremap <F5> :make<CR> This works great. However I sometimes am building a only a piece of the project. In this case I use the command :make smaller_part to build just that piece. I'd also like a one key mapping for this use case as well. noremap <S-F5> :make last_arguments()<CR> Is ...

Is it possible to have Vim open a file in its default (non-vim) editor?

I have cTags set up to tag a bunch of custom stuff for simple internal scripting language I use at work. For various reasons, I'd like to have it set up so that if I <C-]> on certain tags vim opens them in their default editor rather than in another buffer. Is it possible to set this up? ...

How to set working/current directory in Vim?

So when I want to create a new file by using the :e command I don't want to specify the whole path, just the new filename. Can it be done? ...

vim: select to character, non-inclusive

Hi, Suppose I'm in a certain line position in vim and I want to delete up to a certain character, say a semicolon. I would do df; except it would also delete the semicolon. Is there a command that will do the same thing but will not include the character I'm searching for? ...

What is the most elegant way to deal with sourced files that themselves source (relative) source files in VIM?

I am editing a file like /path/to/file.txt with vim, hence the current directory is /path/to. Now, I have a directory /other/path/to/vim/files that contains sourceA.vim. Also, there is a sourceB.vim file in /other/path/to/vim/files/lib/sourceB.vim In sourceA.vim, I want to source sourceB.vim, so I put a so lib/sourceB.vim into it. Now...

setting guifont in GVIM for windows xp ineffective

Hi all, Multiple part question on running gvim on windows xp. I have a _vimrc file that does not want to take either one of my guifont settings below: set guifont=Monospace:h8 set gfn=Monospace:h8 I do not have a _gvimrc file, as it seems to take all the other settings I have told it to take. Do I really need a _gvimrc configuration ...

Silent make execution in vim/gvim

I want to use gvim to launch make and do the build for my code. Since the build process takes some time i want it to be silently executed and then in the end errors/build log be showed to me. i have added this to my .vimrc :command -nargs=* Make silent make <args> | cwindow 10 map <c-b> <c-o>:Make<cr> So when i press Ctrl-b it start...

cscope like functionality for C++ (using vim)

Is there any utility or plugin which provides cscope like functionality for C++. I am looking for all references to a symbol global definitions functions called by a function functions calling a function files including a file ...

Gvim shell problem.

I have been using Gvim for quite sometime and I like it very much. There is a problem I am facing with Gvim. I type "shell" and go to the command line, When I press the up arrow I get some weird symbols and I am not able to use backspace also. The version which I am using. VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 19 2009 15:27:51)...

Vim (Windows) - new help files do not work

I have downloaded several new plugins which come with a help file. None of them seem to work from within Vim. I have the Windows version of gVim and the install dir contains a folder called: vimfiles vim72 Both folder contain a plugin and doc folder. Where am I supposed to put the plugin? So when I use :help [helpfile], it says it ...

gvim "open in new window" should change directory to the one of the current file

Hi I'm working in gvim with sessions and tabs, and everything works great. However there is something that is bothering me. Say I have two files open: /A/B/foo.ext and /C/D/E/bar.ext, the latter being opened last. Now say I want to open /A/B/foobar.ext. I have to go through the hassle of navigating upwards to / and from there to /A/B. ...

How to map keys in vim differently for different kinds of buffers

The problem i am facing is that i have mapped some keys and mouse events for seraching in vim while editing a file. But those mappings impact the functionality if the quickfix buffer. I was wondering if it is possible to map keys depending on the buffer in which they are used. EDIT - I am adding more info for this question Let us cons...

vim :make automatically jumps to first file with error

When executing :make from vim, after make is complete it automatically jumps to a file with errors. Is there a way to avoid this EDIT This is usecase i want to achieve I want :make to execute then quicklist to open but the current file which i am working on should not be switched to the one with errors with default settings after :mak...

how to run commands (external) in gvim

I am getting ready to write lot of small experimental java programs as I am studying for java certification. Since I want to avoid using an IDE I'm giving gvim a try. I have a HelloWorld.java file open. How can I run javac and then java and then be able to see the output all in one window? I do not want to alt tab to a dos prompt wind...