1
vote
2answers
49 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
65 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
33 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
78 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
26 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
30 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
32 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
67 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
27 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 ...
0
votes
1answer
83 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
2answers
38 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
38 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
22 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
56 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
25 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
60 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
69 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
29 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
86 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
160 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
66 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 ...
5
votes
1answer
562 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
61 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
54 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
43 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
55 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
29 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
50 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
84 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
49 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 ...
0
votes
2answers
138 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
166 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
36 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
218 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
33 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
67 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
74 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
209 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
52 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
17 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?
3
votes
1answer
174 views

Unable to copy from vim to system clipboard

I read and tried several different solutions but I am still unable to copy from vim to system clipboard. Viceversa works, copying from outside vim and pasting with p is ok. I have installed clipboard ...
0
votes
1answer
50 views

How to use sudo tee in GVIM for Windows

Can I use something like :w !sudo tee % in GVIM for Windows? Is there any analogue? Or can I disable UAC for one program only and always run it as administrator?
-1
votes
1answer
146 views

How to compile a gvim from source using the latest version?

I'm using Ubuntu. I performed the following commands in the vim source folder: sudo apt-get build-dep vim ./configure --with-features=huge --enable-gui=gtk2 --enable-rubyinterp=yes ...
0
votes
1answer
34 views

gvim mapping keys to ex commands while in visual mode?

So in gvim, after I press <Shift> + v it goes into visual mode. I normally have an ex command set for the letting 'm'. When I go into visual mode and then hit 'm' it says No range allowed ...
2
votes
1answer
45 views

gVim for Windows: How to properly escape filenames that will be used with !start?

I have this piece of code in my .vimrc in order to make files of different types be opened in different gVim instances. function GetSvrName(ext) if !exists('s:ext2srv') let s:ext2srv = [ ...
3
votes
2answers
36 views

Replacing the pager inside vim?

Note: Not using vim as a pager. That's covered extensively on the Internet. When you press Tab to complete various kinds of stuff inside vim/gvim, it brings up a fairly basic pager. For example, ...
1
vote
2answers
221 views

gvim how to change exisitng colorscheme's syntax colors?

I use gvim and the color scheme which I use is called 'slate'. I mostly just code in python, html and css and I like slate's syntax coloring except for a few syntax colors. Is it possible for me to ...
2
votes
1answer
156 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
71 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
58 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 ...