0
votes
1answer
58 views

Line length highlighting works correctly in console Vim, not GUI

This question is related to this one. Damian Conway provided a nice snippet for marking excessive line length in his recent OSCON 2013 talk about Vim. highlight ColorColumn ctermbg=magenta call ...
-1
votes
1answer
44 views

How to define default path to CtrlP for Vim in windows 7?

This is what i put in _vimrc to make E:\Workspace as project folder after hit Ctrl+Space after activate Ctrlp nnoremap <C-Space> :CtrlP E:\Workspace\<CR> but when I hit Ctrl+Space it ...
0
votes
0answers
50 views

“Open with… Vim” does not load _vimrc settings

I use Vim (gVim to be precise) to write and edit files. When executing the editor directly, everything works fine. But if I open a file using the "Open with..." command on Windows, the _vimrc settings ...
-2
votes
1answer
54 views

Vim - Using Functions to Search (.vimrc)

I'm have a timing problem with a function that I use to search in Vim. I need the search to be executed immediately, not after the function ends. I'm using "feedkeys" function (eg. ...
0
votes
1answer
209 views

Change menu/ui language of vim to english

I search on google and I read several answers but I am unable to change the menu/ui language of vim to english. Im my .vimrc I have set langmenu=en_US.UTF-8 language messages en_US.UTF-8 but it ...
0
votes
1answer
362 views

Can't get vundle or neobundle to work on GVim on Windows 7 64bit

Can't get these add-ons (vundle or neobundle) to work on my Windows 7 machine. Everytime I try to install plugins I'm getting the following error messages: Error detected while processing function ...
0
votes
1answer
35 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
1
vote
2answers
37 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
86 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 ...
0
votes
3answers
51 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
1
vote
1answer
46 views

How can I check if the cursor is at the end of a line?

Gentleman, Simple question about Vim! How can I check if the cursor is at the end of a line using a function in vimrc? []'s
1
vote
2answers
145 views

vim - Autosave file to disk, efficiently

I keep a log file, and want it to be written to disk without having to manually save it after every edit. I've used the :au! CursorHoldI,CursorHold <buffer> silent! :update command that I found ...
0
votes
1answer
113 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 ...
0
votes
1answer
54 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 ...
1
vote
0answers
78 views

Vim will not stop creating backup files (Windows 8)

I'm using Gvim on Windows 8.1 and even after setting nobackup and nowritebackup in _vimrc, Vim insists on creating those pesky backup files (the .ext~ ones). I'd like to disable this behavior ...
2
votes
1answer
274 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
1answer
96 views

gvim how to remove word highlighting

Okay so I am using the 'slate' color scheme in gvim and it is really great and I like it a lot except recently I have starting working with html and css files and for some reason, it starts ...
0
votes
0answers
72 views

gvim how to open different FileTypes in different color schemes

okay so I want gvim to open all my files using the 'slate' color scheme except for .html and .css files. I want it to open .html and .css files using the 'ron' color scheme. I tried doing colo slate ...
0
votes
1answer
101 views

gvim: Map a command which uses the current file name (%) in vimrc

In gVim in windows, I want to map a command in the vimrc file that uses the current file (%). I write something like: map <F5> !mycommand % But then, when gVim first loads, it runs vimrc and ...
0
votes
1answer
91 views

Can I make the font size in my NERDTree window smaller than in all other windows of Vim?

Can I make the font size in my NERDTree window smaller than in all other windows of gvim? I like large font size of 15 but I'd like the folder tree window of NERDTree to be 12 - is this possible to ...
1
vote
1answer
564 views

Vim: How do you remap the functionality of CTRL-W to a different key?

I'd like to map CTRL-W to something else, but I'd also like to retain the functionality of CTRL-W, for resizing windows, moving between splits, etc. So I'd like to move it to something like CTRL-Q. ...
1
vote
3answers
116 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 ...
2
votes
3answers
627 views

Should I learn Vim without mapping keys?

I have been using vim for a few months its been a love/hate relationship. I love the concept of modal editing and never having the need to move you hands from the keyboard. The problem is that a lot ...
1
vote
1answer
177 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 ...
0
votes
1answer
215 views

set file type in vim according to the hashbang line

In vim, how can I set the file type not only according to the extension, but according to the #! line at the beginning? For instance, I would like vim to recognize files as coffee-script files when ...
4
votes
5answers
1k views

Disable mouse clicks in gvim on ubuntu

How do I make gvim ignore mouse clicks. I'm really sick of the trackpad making my cursor all over the place. I use xubuntu if that means anything.
2
votes
1answer
2k views

How can I set the default font for gvim on Windows?

I use gvim on Windows. By default it uses the Fixedsys font, but I would like to use Consolas as the default font instead. I tried to set it using the menu option; it worked but it was reset the next ...
4
votes
2answers
175 views

How do I specify custom settings for vim based on file path

More specifically, I want to disable backup and swap file creation in vim, but only when opening/editing files that are on a specific remote volume or a specific folder. So, how do I go about ...
0
votes
1answer
706 views

How do I get correct indentation for HTML and Javascript in gVim?

I've been using vim and gVim for over a year. I use it mainly for editing of HTML, PHP, Python and Javascript. Every time I've tried to set some automatic type of indentation I've got into troubles. ...
1
vote
2answers
720 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.
1
vote
1answer
198 views

GVim Specify Directory for :browse open Command

I have added the line: :browse open to my vimrc file, but have been unsuccessful in getting GVim to open a file browser starting in a specified directory. In particular, I would like to know if it ...
2
votes
1answer
98 views

Two different Windows installations running the same colorscheme, different results

I recently copied over my Vim settings to a new Windows computer. I use a tweaked version of the molokai vim theme that I named "molokai-mine". Here's what it should look like: On my new ...
1
vote
1answer
350 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 ...
1
vote
2answers
559 views

vimrc - Acess Denied

I'm trying to add in colorscheme desert at the bottom of my _vimrc file within Windows 7 and when trying to save it, I keep getting "Access Denied". I set my HOME variable to the "C:\Program Files ...
4
votes
5answers
2k views

Tips for using vim as a log viewer

As a log viewer, which of vim's features are convenient? less -F is quite good. But I believe vim could be better if we knew its hidden features. * or # v//d g//d etc.. PS. I don't use ...
0
votes
2answers
3k views

Setting the viminfo path in gVim for portability (Windows)

I'm trying to make my gVim installation as portable as possible, and in doing so I want to put the _viminfo file in the $VIM directory rather than $HOME. I'm pretty new to hacking vimrc ...