0
votes
1answer
33 views

Vim line numbers in insert mode

For some reason, Vim (gVim for Windows) turns off the line numbers when I enter insert mode. This can be rather jarring, because it shifts all the code to the right or left when I leave or enter ...
0
votes
1answer
35 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
vote
1answer
29 views

Make (g)vim buffer a remote file

I regularly work remotely on a linux machine using vim. Sadly the connection to the remote host is not very good, giving me a very tough time. Is there a way to make my locally running vim or gvim ...
-1
votes
1answer
37 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 ...
1
vote
2answers
34 views

Vim: Open current windows/tabs in GVim instead

Let's say I have been working in a given Vim session for some time, and come to a point where I really would like to have everything I am looking at in GVim instead. The actual use-case is a terminal ...
0
votes
0answers
49 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
53 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
143 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
40 views

Vim experts: how to find a number within a range based on two numbers? Eg “777” matches “667:888”

I need to search for numbers in a text with Vim. The numbers I need to find are often within a range based on two numbers and I need to match that range based on a single number. For example, in my ...
2
votes
2answers
39 views

Highlight Search (hls) matches of multiple search terms with different colors

Many times when working on code, I search for the occurrences of variables with similar names. For examples, find all matches of var1 and var2 as: /\<var1\>\|\<var2\> Now I really like ...
1
vote
2answers
103 views

What color scheme is used for the code examples on o'reilly atlas site? [closed]

I would really like know what colorscheme this is, and if it is already available for vim. The screengrab is taken from the O'Reilly Atlas site. Link to the actual site with more code examples.
0
votes
1answer
279 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
38 views

How do I keep the window centered on a particular line number while switching files in vim?

I need to quickly compare different versions of a file and need to constantly change to a new file. Is it possible to fix the cursor on a particular line number while I cycle through different files? ...
3
votes
2answers
115 views

How to format a string substitute, or a text line, in Vim?

Is it possible to format the replacement string when substituting a match with Vim? Say I have a file with a 2-column table, where the entries in each row are separated with a space. The entries (and ...
0
votes
1answer
33 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 ...
2
votes
1answer
33 views

How to change the searched text under the cursor in vim?

Let say that you have the following text: test_text test_text_1 test_text_2 and you search for "text" (/text) and your cursor will go on the third "t" from "test_text", then how to change it (the ...
1
vote
2answers
36 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
83 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
1answer
32 views

How to change the default button on gVim's W11 (“File has changed”) warning popup?

When working with a file that is regularly changing externally, a popup warning dialog is opened, asking whether to keep buffer contents (the default) or load the updated file into the buffer: Is ...
1
vote
1answer
249 views

how to install a color scheme with yadr

someone advised me to use yadr, which is supposed to make installing dotfiles etc much easier for vim however I just couldn't figure out a way to install base16 through yadr.. before I had to ...
0
votes
3answers
47 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
44 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
1answer
41 views

How to remap backspace when using ibus and vim?

First I do :inoremap <BS> x and then enter insert mode. Then switch to Hangul input in ibus. Now I try to type 마 and it shows up as ㅁx마 I guess that makes sense, right? ibus must have ...
1
vote
1answer
84 views

Better mouse-click behavior with gVim's virtual edit

I like using Vim's virtualedit=all feature, but I also like being able to click after the end of a line and have the cursor go directly to the end of the line (instead of going to the exact position I ...
1
vote
1answer
33 views

In gvim on windows C-] does not work (but C left mouse works)

For some reason the follow tag (ctrl+]) in gvim on windows does not work for me, I know that the tags file is loaded since the ctrl+left mouse button works as intended. There is nothing on the help ...
0
votes
2answers
127 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 ...
2
votes
2answers
89 views

How can I pop-up a cheat sheet in GVIM on command?

I know there are lots of cheat sheets for VIM out there, but I hate having to print out so many cheat sheets. Is there a way I can pop-up a cheat sheet with a shortcut? I am using GVIM on Windows, ...
0
votes
1answer
33 views

Using vim for creating fixed width text?

I've got text in the form xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I'd like the second set in each line to begin at the same point ie xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I ...
1
vote
1answer
126 views

gvim latex interface not appearing after latex-suite installation

I have been installing gvim with the latex-suite plugin on a laptop running an Ubuntu 13.10 OS. The installation of gvim worked, but I'm not sure if the latex-suite installation did too. According to ...
0
votes
0answers
318 views

Compiling Vim 7.4 with GUI support on Fedora 20

I've installed the following dependencies before trying to compile Vim 7.4 from source on Fedora 20 (Default Gnome). I've removed the vim-enhanced package via yum before proceeding: yum install ...
0
votes
1answer
128 views

Cannot get konsole to show the right characters for fancy powerline

I'm using Kubuntu and the patched fonts for powerline are not working as expected... The screenshot is from terminal Vim, but gVim has the same problem in my machine. Does anyone have any ...
7
votes
1answer
2k views

Can't run Vimdiff (7.4) on Windows 7

I recently installed the 7.4 version of gVim on a Win 7 machine. Trying to diff two files from the context-sensitive menu on Windows Explorer, I keep getting the error messages: E810: Cannot read or ...
0
votes
1answer
100 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
69 views

vim - how to treat three quotations in a row as a comment rather than a string

I use python and in python, three quotation marks in a row """ or ''' signify a block-comment, and a normal comment is just a hashtag. (#) I want comments to be colored grey and strings to be ...
0
votes
1answer
54 views

how to search for vim files in lubuntu?

I want to change one of gvim's existing colorscheme's syntax coloring. For example, in the colorscheme called 'Ron', it highlights python comments in white. I want to change it to red. According to ...
0
votes
3answers
117 views

How to use my Eclipse CDT syntax coloring setup as my gVim color schemes?

As Eclipse cannot show two pans of code simultaneously, I am used to using gvim to have it. But the color scheme / syntax coloring is different, what makes code review and comparisons hard. Is there ...
0
votes
1answer
51 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
4answers
61 views

Vim: Jump to previous cursor position, NOT edit point

I am trying to write a tiny macro to append a ; to the end of the current line (A;), then return to the cursor position from which I jumped before executing the macro. C-o and C-i are not what I ...
0
votes
1answer
138 views

Vimscript: Error while checking for substring

I am currently trying to tie together a function to do something depending on current file path, triggered whenever I change the current buffer with autocmd BufEnter In my .vimrc autocmd BufEnter * ...
0
votes
1answer
70 views

Vim uses wrong encoding when invoking commands in the terminal

I'm using Vim (GVim, to be precise) under Windows 8 and I want to compile with the usual :!g++ %, but the name of the directory where my file is stored has accents, and Vim seems to have problems with ...
1
vote
2answers
198 views

gvim startup slow: huge GUI delay

vim starts up quickly. gvim takes ages, with or without loading plugins. The --startuptime option shows: 733.162 467.301: starting GUI 733.945 000.783: reading viminfo 25801.849 25067.904: GUI ...
1
vote
2answers
269 views

Shortcuts in gvim

I'm trying to migrate from Windows to Linux and am having difficulties with the shortcuts in gvim. For something as simple a copying you press "+y and I'm wondering 1)does order matter when ...
1
vote
3answers
42 views

How to Copy words highlighted after search directly into command line with shortcut?

Here is the situation, for example, I have several lines like this: foo test foo I searched "foo" with "/" and all the two "foo"s above are highlighted. And now I want to replace "foo" with ...
0
votes
1answer
352 views

Gvim fails to open: E25: GUI cannot be used: Not enabled at compile time

I'm new to Linux, and I just installed Linuz Mint under VMware Player. I'm trying to learn how to program, and I was trying Gvim (Vim's GUI). I installed Vim using sudo apt-get install vim and tried ...
0
votes
2answers
38 views

How to unbold listchars

My listchars characters looks like they are in bold as shown in screenshot below. How do I unbold them? I think it's set under the colorscheme but I don't know which setting to change.
2
votes
1answer
76 views

vim on Windows -Turn syntax highlighting OFF

I have downloaded Vim 7.4 on Windows 7 64 bit, and would like to turn off syntax highlighting. I have been using Vim for a long time on Unix, so I know to place "syntax off" in my vimrc. However, ...
0
votes
2answers
107 views

Why there are '~(tilde)' in every file's extention when I edited with gVIM?

I'm using gVIM on Windows. Everytime I edit text file and save it, VIM makes a file with '~(tilde)' in extention - like this : 'crappycode.txt~' It's so annoying that I have to delete it manually. ...
0
votes
1answer
300 views

Why isn't the scripts in my autoload folder being executed in Vim?

I'm trying to use Pathogen to manage my Vim extensions. My bundle folder looks like this: .../bundle/ ├── vim-pathogen │   └── autoload │   └── pathogen.vim └── vim-smoothscroll └── autoload ...
0
votes
1answer
57 views

vim default save is no file type? default setting advisable?

I just came across a problem that I seemed to have found a solution, but was a little surprised by the issue. In gVim, when I save a new document (new from "within" gVim), ala :w afile I ...
0
votes
1answer
20 views

mvim: display number of columns in window?

I'm transitioning to MacVim from terminal vim, and I've gotten used to the "80 x 24" display at the top of terminal windows (COLS x ROWS). Is there a way to enable some such display in MacVim?