Questions tagged [gvimrc]

gVim's configuration file.

Filter by
Sorted by
Tagged with
0 votes
0 answers
372 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 ...
John Hugh's user avatar
3 votes
1 answer
3k 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 ...
rossijonas's user avatar
1 vote
1 answer
168 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 ...
user avatar
0 votes
1 answer
116 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 ...
816-8055's user avatar
  • 1,246
0 votes
0 answers
29 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 ...
Luke Moll's user avatar
  • 143
0 votes
1 answer
38 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 ...
Eric's user avatar
  • 1
1 vote
1 answer
2k 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 ...
Evgeni Sergeev's user avatar
0 votes
1 answer
237 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 ...
niels's user avatar
  • 103
1 vote
2 answers
183 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 ...
ysap's user avatar
  • 2,670
1 vote
2 answers
346 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 ...
ysap's user avatar
  • 2,670
1 vote
1 answer
392 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 ...
Ravenous's user avatar
  • 303
1 vote
1 answer
2k 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 ...
user216485's user avatar
1 vote
1 answer
1k 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 ...
ivan's user avatar
  • 1,055
7 votes
3 answers
13k 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 ...
John Sonderson's user avatar
11 votes
1 answer
9k 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 ...
user2719875's user avatar
0 votes
2 answers
183 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 ...
octopusgrabbus's user avatar
1 vote
3 answers
3k 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 ...
user avatar
0 votes
1 answer
166 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. ...
Kaveh Shahbazian's user avatar
2 votes
1 answer
392 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 ...
Amaron's user avatar
  • 163
0 votes
1 answer
225 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. ...
tecMav's user avatar
  • 111
4 votes
1 answer
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?
Rich Ashworth's user avatar
1 vote
3 answers
172 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 ...
mateusz's user avatar
  • 13
1 vote
1 answer
397 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 ...
Andrew Scagnelli's user avatar
2 votes
1 answer
2k 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 ...
Tarrasch's user avatar
  • 208
5 votes
3 answers
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.
OregonTrail's user avatar
9 votes
2 answers
3k 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 ...
tlehman's user avatar
  • 283
0 votes
1 answer
187 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 ...
viking's user avatar
  • 524
2 votes
2 answers
507 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 ...
Nemoden's user avatar
  • 2,477
1 vote
1 answer
1k 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 ...
errorhandler's user avatar
7 votes
5 answers
8k 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/...
trolle3000's user avatar
  • 1,840
1 vote
0 answers
455 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 ...
sa125's user avatar
  • 996
0 votes
2 answers
525 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 ...
Skun's user avatar
  • 231