All about the VIM editor in one of its graphical incarnations.
2
votes
1answer
2k views
How do I set up neocomplcache?
I just started using vim and saw a cool plugin: neocomplcache.
My problem is that I can't get it to work properly. After installing, I took the example config from the help files of neocomplcache and ...
0
votes
1answer
14 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 ...
0
votes
0answers
20 views
Vimscript: Unable to run python script that imports win32 library
I am writing a vim plugin in python that fails when importing the python library "win32com.client". The following reproduces it:
myplugin.vim:
pyfile [path to python file]
python file:
import ...
-1
votes
2answers
58 views
Is vim better installed in C:\Program files\
I've installed gVim and the install has gone into here:
C:\Program Files (x86)\Vim
Would there have been advantages to installing it in the following location?:
C:\Users\myName\Vim
0
votes
0answers
10 views
is it possible to change vim's scrollbar color in windows?
That is by putting some command in .vimrc file ? I cannot find it anywhere, everytime I search I got posts how to hide the scrollbar not how to color it.
0
votes
1answer
14 views
How to run NERDTree manually it it was setup with pathogen?
I'd like to install NERDTree (I'm on 32-bit Win 7, anyway).
And to make vim plugins management easier, pathogen needs to be installed first.
So here's the steps:
Take pathogen.vim and put it on ...
3
votes
5answers
2k views
Compile gvim from sources?
Recently, I've installed vim like so:
hg clone https://vim.googlecode.com/hg/ vim
cd vim
sudo ./configure --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-gui=gtk2 --prefix=/opt/vim
make
...
1
vote
2answers
247 views
How to Hide or Delete Files created by Vim in Windows?
Whenever I open a file with Vim, the program automatically creates a copy of the file ending with a tilde~
When I'm done editing a few files, the folder is littered with extraneous files ending in ~
...
2
votes
5answers
546 views
How to hide gvim's backup files under Windows XP?
How to hide gvim's backup files under Windows XP?
EDIT: I think I have mistaken backup files as swap files. Actually I mean the files that end with ~. Sorry.
0
votes
0answers
18 views
gVim setting read-only flag on file after saving through symlink (windows and gvim)
I think the title is pretty clear about my problem. Summarized this is what happens: The symlink works fine for saving one time. The original file gets a read-only flag after that. Next time I try to ...
3
votes
3answers
3k 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 ...
0
votes
1answer
43 views
gVim does not source .bashrc, .bash_profile, or .profile from non-interactive non-login shell
I have the following on my .vimrc
set shell=C:/cygwin/bin/bash
set shellcmdflag=-c
set shellxquote=\"
So the shell I am using is non-interactive and non-login.
I thought that non-login shells ...
0
votes
0answers
11 views
The docked gVim in Windows 7 jumps upon tab switch
gVim window jumps when it is on half screen mode in Windows and I switch the tab. I expect the gVim window to stay in the same location unless I move it manually. The jump is subtle, but it is always ...
1
vote
1answer
57 views
How to change the default font of gVim
Edit: I moved the original question to 'The docked gVim in Windows 7 jumps upon tab switch'
After struggling with my .vimrc, I am resorting to setting the font from windows registry instead, because ...
10
votes
5answers
8k views
How to remove this symbol “^@” with vim?
i have some files that are corrupted with this symbol
^@
It's not part of the string, it's not searchable. How do i substitute this symbol with nothing or how do i delete this symbols?
Here is ...
0
votes
3answers
43 views
Why does Vim require every key mapping to have a unique ascii code?
My understanding is that Vim cannot differentiate between <c-s-[key]> and <c-[key]> because they map to the same ascii code. And also the same reason why <c-i> is equivalent to ...
0
votes
1answer
44 views
How do I move to the next line in gVim running on Windows 7?
Finally decided to take the plunge and start learning vim.
I am however having an issue whereby I can't go the end of the line i.e. after the last letter so that I can hit enter on my keyboard and ...
0
votes
2answers
56 views
Git for Windows: Run vim in background without ampersand (&)
On my Windows machine, running gVim appears to tie up the git for windows shell, whereas if I run from the command prompt, this is not the case.
How might I be able to run gVim (or any other program, ...
0
votes
1answer
79 views
Solved — Hide dot and dotdot (“./”, “../”) directories in NERDTree gVim
This is in gVim on Windows.
NERDTree is registering ../ and ./ links in every directory. By the -> I thought perhaps they were shortcuts/symlinks that got added to all my directories, however in ...
0
votes
1answer
39 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.
...
13
votes
5answers
5k views
Vim: How to synchronize NERDTree with current opened tab file path?
When I open a new tab with different path from the previous file in VIM, NERDTree will still remains the same directory hierarchy of the previous file.
Is there a sync shortcut to change the current ...
1
vote
1answer
31 views
Vim Script: Is it possible to refer to script-local variables in mappings?
I know that you can refer to script-local functions using <SID> but what about script-local variables? I tried the following, and hitting <c-space> fails:
let s:testVar = "foo"
function! ...
0
votes
2answers
130 views
How to close last-opened tab in gvim?
How to close the last opened tab in gvim/windows without quitting gvim?
1
vote
1answer
37 views
VIM: Searching for text in fold titles without automatically opening folds
In many cases it would be useful to search for text only in the currently visible fold titles, instead of having Vim automatically opening lots of different folds along the way. Is there a way to do ...
0
votes
2answers
213 views
How do I compile gVim.exe as a 64 bit executable? (Windows 8)
Very straight-forward question. I have downloaded mingw32 and the Vim source code and I have edited Make_mind.mak to use the correct Python version and location. I'm located in the src directory and I ...
1
vote
2answers
2k views
How can I open gVim in full screen mode in GNOME?
I would like to open gVim in full screen mode, i.e. without upper and lower panes.
I try to achieve it editing
System -> Preferences -> Keyboard shortcuts->Window management -> Toggle ...
5
votes
6answers
217 views
select just pasted text
Pretty simple - how can one select just pasted text (after pasting it) ?
I'm editing some files which are purely data, and I get "lost" sometimes ... so it would help if I could select it or somehow ...
4
votes
2answers
2k views
How do you change the default colorscheme in gvim?
In GVIM for Windows I know you are supposed to be able to add something to the $VIM/_vimrc file in order to customize the start up and I have managed how to figure out a few neat tricks with that but ...
2
votes
3answers
31 views
VIM: Is it possible to add custom behavior when using /c with the substitute command?
There's been a few cases where it would be convenient to hook into the search and replace behavior for certain things. For example, I have the following mapping in my vimrc:
nnoremap n nzzzv
Which ...
1
vote
1answer
89 views
How to run gvim.exe inside comEmu
I have seen in the screenshot that gvim is running inside of conEmu. But I am not knowing how to do this.
Any guideline will be very helpful
6
votes
3answers
4k views
How do I move around and otherwise rearrange splits in vim?
So far, I've figured out swapping splits laterally via CTRL+W x, and that's pretty much it.
How do I move a split anywhere in a viewport that contains multiple vertical and horizontal splits?
How do ...
1
vote
1answer
44 views
VIM: Moving to next sentence/paragraph without adding to navigation history
I like to use the CTRL-O and CTRL-I keys to move around. The problem is that it quickly fills up with small movements like moving by paragraph with }/{ or moving by sentence with )/( . Is there a ...
2
votes
1answer
42 views
How to force gvim to display All Files (*.*) in Edit File dialog box
I am using gvim on Windows 7.
My question relates to the Edit File dialog box that appears when File->Open is selected from the gvim menu bar.
At the bottom right of the Edit File dialog box is a ...
1
vote
4answers
111 views
vim: delete all lines but unique?
I am looking for a way in VIM to delete all lines that are duplicates and only leave unique lines that exist in the file. I would prefer a macro but a command or function would be great.
Say I have ...
1
vote
1answer
116 views
ubuntu mono font on vim across linux and windows have different spacing?
On windows gvim:
http://i.imgur.com/K8cjO3U.png
On ubuntu gvim(same on vim):
http://i.imgur.com/Nudu5o8.png
Why is the padding across the two operating systems so different? Is this a changable ...
2
votes
2answers
2k views
Change color scheme when calling vimdiff inside Vim
I'm using the VCSCommand plugin.
I'm calling VimDiff utility inside Vim by calling :VCSVimDiff.
I have in my vimrc:
if &diff
set t_Co=256
set background=dark
colorscheme peaksea
...
2
votes
1answer
238 views
Using an external text editor to edit VBA code
I have inherited a lot of VBA code to maintain and so far I am using the VBE. Sometimes is quite hard to do some tasks, like advanced text search, so usually I export the module, edit the content with ...
1
vote
1answer
63 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.
...
2
votes
2answers
343 views
How can I make gVim show a correct taskbar icon in Windows 7?
I'm using gvim 7.3, and for some reason the taskbar icon shown is just the default Win32 "program" icon. I run the EXE itself.
Any idea how can I make gVim show an actual icon? I don't want to create ...
1
vote
2answers
59 views
Vim: Moving around using relativenumber and adding it to the jump list for use with CTRL-O
I have relativenumber enabled and often navigate to a specific line by pressing 25k or 7j, etc. The problem is that after I've changed the line I often find myself wanting to go back to where I was ...
0
votes
3answers
64 views
In Vim, how to move text to be edited to the middle of the window?
Is it possible to have the text in a (g)Vim window in the middle?
This is the default:
And this is what I would like to achieve (mockup created with gimp):
2
votes
2answers
60 views
How to compile GTK2 on Linux machine without administrator privileges?
I'm working on a "SUSE Linux Enterprise Server 10 (x86_64)" machine, which has GVim version 6.4.6, which is quite old, and not supported by some plugins.
This is a corporate machine, and no one will ...
2
votes
2answers
82 views
gvim missing menu on arch/xfce
See topic.
set guioptions?
guioptions=aegirLtmT
The normal tip is to delete ~/.gnome2/Vim, but this file doesn't exist.
The strange thing is that after installing some plugins, Plugin shows as a ...
1
vote
3answers
127 views
How do I get Vim to automatically load .vimrc config from the current directory?
I have a few projects that need different commands for running, building and testing, so I've put a .vimrc file in each of the project directories that define mappings to some F buttons. In the vim ...
0
votes
2answers
88 views
Vim snippets pop-up but don't complete
I'm using spf13-vim in Fedora. When I try to use a snippet, I get options that pop up but when I don't know how to actually insert the snippet. For example, if I type for in a .cpp file, I get four ...
2
votes
2answers
829 views
Compile .tex files to .pdf as default in gvim with latexsuite plugin
Now I am using the pull-down menus to set :TTarget, :TCTarget, and :TVTarget to pdf.
I also tried setting g:Tex_DefaultTargetFormat='pdf' and g:tex_flavor='pdflatex', but neither worked.
Thanks!
0
votes
1answer
67 views
gVim crashing while opening 8GB text file
I have an 8GB text file which contains output from a structural analysis program. The output is in the form of lines corresponding to time steps - with each line representing state of a system at a ...
0
votes
0answers
22 views
Installing the AnsiEsc.vba for vim
When I attempt to source AnsiEsc.vba from gvim I get :
Error detected while processing function vimball#Vimball
What am I doing wrong ?
1
vote
1answer
50 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 ...
1
vote
3answers
581 views
Vim - how to substitute a word in-place?
I would like to substitute a word in-place. For example, after yanking some word by pressing yw and then setting a cursor on some other word, I would like to press something so that substitution will ...
