Questions tagged [gvimrc]

gVim's configuration file.

Note also that gVim also takes its configuration settings from the file as well.

32 questions
11
votes
1 answer

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 don't need it.
9
votes
2 answers

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 if it is still running, a special flag needs to…
tlehman
  • 283
7
votes
3 answers

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 forget about all font settings, and it is not…
7
votes
5 answers

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/user/.gvimrc: line 25: E518: Unknown option:…
trolle3000
  • 1,880
5
votes
3 answers

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.
4
votes
1 answer

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?
3
votes
1 answer

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 depending on mode function! ChangeStatuslineColor() …
2
votes
1 answer

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 that, and would like to get rid of it. I added set…
2
votes
4 answers

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 lines to be placed in my .vimrc file Solution: I had…
Nicholas TJ
2
votes
1 answer

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 forced to open the buffers with autocmd. So my _gvimrc…
Amaron
  • 163
2
votes
1 answer

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 like every other application I use. Having 5 gvim…
Tarrasch
  • 208
2
votes
2 answers

.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 perfect, except one thing: After you call :VCSCommit…
Nemoden
  • 2,547
1
vote
2 answers

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 FileChanedEvent_BuffUpdate() let MyBn = bufname("%") let MyStr =…
ysap
  • 2,730
1
vote
2 answers

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 the command: :let MyTestV = confirm("IN MY_GVIMRC")…
ysap
  • 2,730
1
vote
1 answer

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 language. I don't mind building my own…
Ravenous
  • 305
1
2 3