Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gvimrc]

gVim's configuration file.

0
votes
0answers
26 views

Unable to include plugins using vimrc . Error for each line of my vimrc

I have installed gVim and trying to have customizations, i.e, including plugins. https://raw.githubusercontent.com/kinbiko/dotfiles/master/vimrc Used multiple plugin managers, but in vain. Error ...
3
votes
1answer
940 views

vim - What's the best way to set statusline color to change, based on mode

I've tried to improve my vim experience trying to have the vim statusline color to change everytime the mode changes. I've triend this: (found here) "Automatically change the statusline color ...
1
vote
1answer
91 views

How to map commands in Vim?

I am using gVim and there's no vertical split option in it's File menu item. I want to map the default :split and its abbreviation :sp to :vsplit and :vsp respectively, so that it replaces the ...
0
votes
1answer
67 views

Vim: Error message on sourcing, but not on start up

I'm pretty new to Vim/gVim and am probably doing something wrong. What I want to do is completely reload my configuration (like a restart), but while gVim is running (keep the current session). Here ...
0
votes
0answers
20 views

Cross-platform .vimrc/_vimrc [duplicate]

I use vim on windows (GVim portable off a USB stick) and Linux (standard command-line vim) and would like to synchronise my settings (_vimrc or .vimrc respectively). As far as I can see (I haven't ...
0
votes
1answer
23 views

how to cmap <tab> like the tab in the termimal?

when use :e to open files, how to cmap the "Tab" to the function which is similar to the tab function in the terminal? (like when you press tab, it will show all matching files and it will pick the if ...
1
vote
1answer
735 views

Stop Vim from automatically tw=78 line-break wrapping text files

I recently updated Vim, and noticed that whenever I open a .txt file, the option tw=78 is set. (Which makes Vim automatically break lines when they would have exceeded 78 characters.) I don't like ...
0
votes
1answer
94 views

How do I open multiple files as part of gVim's launch procedure?

I use gVim a lot in Windows at work to edit text files. I want $VIMRC to always be in buffer 1, and my vim_cheatsheet to always be in buffer 2. I tried putting "e $VIMRC" in my .vimrc, which didn't ...
1
vote
2answers
128 views

How to determine what buffer was changed externally with gVim?

I am using the following Vim autocommand in my .gvimrc file: augroup MyAuGroup autocmd MyAuGroup FileChangedShell * call FileChanedEvent_BuffUpdate() augroup END function ...
1
vote
2answers
220 views

Why is there a difference in the popup dialog from .gvimrc and command line?

I am using gVim's confirm() function to pop a dialog waiting for the user to click a button. However, there seems to be a difference in the appearance of the dialog when called from .gvimrc: Using ...
1
vote
1answer
167 views

Vim completion based on language

Right now if I hit ctrl + n it will complete words that are in the current document. I've also found a way to define a dictionary. I'm just unsure how to get vim to complete based on keywords in a ...
1
vote
1answer
1k views

Vim not making font italic when it should?

I use gvim and use the colorscheme called slate. I modified it a bit and saved the changes in .vim/colors/slate-mine.vim and all the changes take effect except for one. I wanted to make all comments ...
1
vote
1answer
884 views

Should I bother moving stuff from vimrc to gvimrc?

Is is worth moving gui-related options out of my vimrc and into a gvimrc if there's only a couple such options? I'm kind of inclined to keep everything in one place and house gui options inside if ...
0
votes
2answers
3k views

Gvim 7.4: how to save the default font setting? Any improvements from gvim 7.3?

As the following post demonstrates: How to change the default font of gVim on Windows 7 it is impossible to save the default Gvim font from the Gvim program. Closing Gvim will cause it to completely ...
8
votes
1answer
6k views

how to turn off gvim error highlighting?

I use gvim as my text editor and the syntax coloring is great except it highlights "errors" and gives it a white background with red font. How do I turn off error highlighting? I find it annoying and ...
0
votes
2answers
113 views

What vim settings do I need so vim ftp write does not convert to dos format?

This question is really about being able to write a file using gVim or command line vim without its file type (Unix) being changed to DOS. This problem is not happening in command line vim directly on ...
0
votes
3answers
191 views

How to make my vim recognize filetype and load the corresponding syntax file

Currently, I load my syntax manually in vim by :set filetype=python. Depending on what kind of file I'm working on, I change it manually. I think there should be a more smarter way. Probably some ...
0
votes
1answer
142 views

Vim; Executing another application by :MyCommand

I want to execute "go install" in current directory (where currently open document resides) with a command (Like :GoInstall). How can I do that? Note: I want to see the output of that command too. ...
2
votes
1answer
341 views

Using vim autocmd with edit problems

I'm currently attempting to create a basic screen layout for gvim that shows up every time it opens. I'm also attempting to open buffers in a certain window. Because of the GUI init timing I'm ...
0
votes
1answer
85 views

Vim remap to change directory

I'd like to have a shortcut in gvim to switch directories. I have the following in my gvimrc. "noremap <F6> :cd "c:\\project\\working\\code"<return>" I can't get it to work, though. ...
4
votes
1answer
1k views

Is it possible to get gVim to execute external commands in cygwin by default?

Is it possible to get gVim (on windows) to execute external commands in cygwin by default? i.e. !ps will open a cygwin terminal showing the currenty running processes?
1
vote
3answers
159 views

VIM disable highlighting upon search deletion

I recently learned a new shortcut in VIM that I find extremely useful. d/search_text Which will delete everything up to, but not including, "search_text", from the current position. However, the ...
1
vote
1answer
328 views

Opening files from Eclipse in gvim skips vimrc and gvimrc

When I try to open a file in an Eclipse project in gvim (using Eclipse's "open with -> other"), gvim seems to skip loading the global gvimrc and vimrc files and opens a bare white window with the ...
2
votes
1answer
1k views

Having files opening in tabs in GVim

I'm having trouble with gvim and tabs. Using Ubuntu, there is the gedit editor, which opens files in new tabs, but gvim opens a new window for each file i open. I definitely prefer to have tabs, just ...
4
votes
2answers
2k views

Gvim paste using Control+Shift+V, while leaving Visual Block Mode Control+V

Is there a way to map paste to control+shift+v, and leave visual block mode as control+v in gvim? I use both quite often.
7
votes
2answers
2k views

How to configure MacVim to quit on exit?

When I close MacVim using the standard vim command :q, the MacVim window closes, but the program is still running. This causes trouble when other processes try to spawn an instance of MacVim, because ...
0
votes
1answer
109 views

GVim Stop at end of line with arrows

When using the arrow keys in Vim on Linux, they act the same way as h and l , stopping when the end of a line is reached. GVim on Windows doesn't do this, instead allowing the arrow keys continue ...
2
votes
2answers
486 views

.vimrc use filename that is currently editing

I have a plugin for VIM which is basically provides an interface for my SVN (vcscommand.vim). And I've mapped :VCSUpdate and :VCSCommit commands of vcscommand plugin in my .vimrc. Everything is ...
1
vote
1answer
925 views

Running gVim on a USB Drive

How could I run gVim on a USB drive (I can't install software on the computer) preferably I'd like to load it on the USB drive with a mac (so I can't install an exe - but I could use a pc) and also ...
7
votes
4answers
7k views

How to make gVim transparent on Ubuntu 10.10?

I have a .gvimrc file that works fine on OS X 10.6, but won't work on Ubuntu. It contains a line that reads set transparency=15, and when i run gVim it reports: Error detected while processing /home/...
1
vote
0answers
443 views

Vim mapping acts different when switching between Mac OS X/Linux

I've been working with Vim on two different machines, one running Ubuntu 10.04 (gVim) and the other Snow Leopard (MacVim). I copied my .vimrc file and .vim folder to both, and noticed a few minor ...
0
votes
2answers
514 views

Ubuntu 10.04 problems - GVIM and Sound

Well, i have 2 problems .. not exactly problems, but one is a question, and the other is a problem . QUESTION I have installed gVim on my laptop and now i want to install plugins and customize my ...