The gvim tag has no wiki summary.
3
votes
2answers
51 views
vim shortcut to open a file under cursor in an already opened window
In vim you can open a file under the cursor by using the gf command.
One can also easily open that file in a new split window by hitting <c-w> f. This is a really nice and time saving feature. ...
0
votes
2answers
52 views
Calendar.vim E492: Not an editor command: Calendar
I am trying to install the calendar.vim plugin on mac osx snow leopard running gvim. I have pathogen.vim installed, so I followed the instructions on github to install calendar.vim from the terminal:
...
0
votes
0answers
37 views
Trouble with Vim Auto Commands from Learn Vimscript the Hard Way
I have been working through the examples and exercises in Steve Losh's book Learn Vimscript the Hard Way, and I have hit some serious trouble in chapter 12 on Auto Commands. I am running MacVim on ...
2
votes
2answers
71 views
gvim colors the same as is the terminal
Is there a command I can put in the .vimrc to make gvim look like vim's setup in the terminal?
Same back ground, syntax highlighting, colors, and font.
To add to my question, is there a may for gvim ...
0
votes
0answers
28 views
screen flashes when I press ^S in gvim
I bind ^S in gvim, by:
map <C-S> :w<CR>
Now if I press the ^S combination, althrough file is saved (I saw the XXX written message), but gvim window flashes, is there a way to avoid that?
...
0
votes
0answers
40 views
mapping <C-F9> in gvim: no response
I'm trying to map <C-F9> in gvim (note the "g"). No response. Neither <C-V><C-F9> nor <C-K><C-F9> produce any response either so I suspect it's not sending any keycode at ...
4
votes
1answer
162 views
How to automatically refresh Vim on buffer/window focus?
I often use Control+L to redraw the screen in Vim.
In particular, when I come out of sleep or change monitor configurations I often find that Vim needs to be redrawn. I thought it might be simpler to ...
1
vote
2answers
65 views
Make gvim scroll to the center after opening a file with line numbers?
When I open a file with gvim with the following command line option,
gvim file +5
I would like the current line (the 5th line) be scrolled to the center of gVIM's window,
Is that possible?
...
7
votes
1answer
223 views
vim - open file and goto line number using <filename>:<line nbr>:
Several tools such as grep, py.test, etc ... use the pattern <FileName>:<line number>: to point to errors. For example:
; grep -Hn Common setup.cfg
setup.cfg:11: Common
How can I ...
1
vote
1answer
642 views
Vim powerline plugin colour of Normal mode
I installed vim-powerline and was wondering how to change the backlground colour of the normal mode -- currently set to #adf000 according to the Gimp -- to something else. I assume that the change ...
0
votes
1answer
111 views
Gvim opening files in new tabs
I was wondering how I can modify the gvim.desktop file so that it opens files in new tabs. Also I want it to create a new instance of vim in case it is not supplied with any files(eg. Invoked from ...
1
vote
4answers
485 views
Advantages (or downsides) of GVim over Vim to edit code
Should I install vim or GVim ?
I develop mainly Ruby on Rails (I also use IDE's, but different topic).
Are there any differences or advantage of using Gvim vs vim ?
3
votes
1answer
289 views
GVim compiled from source does not use gtk2
I have two HP-UX machines say A and B with HP-UX 11.11 and 11.31 respectively. I'have compiled gvim 7.3 from source an B, and gvim 7.0 on A.
On A, gvim uses "version with GTK GUI", Compilation with ...
2
votes
1answer
315 views
Using vim/gvim as editor for Thunderbird
Is there a way to use vim/gvim as an editor for thunderbird? There was an add-on for it but it is now very out of date.
3
votes
3answers
230 views
gVim opening a tab pushes status line out of window
When opening a new tab in gVim (with :tabe), the status line at the bottom of the screen disappears. If I press : and start typing a command I can no longer see the command on the status line.
When ...
1
vote
1answer
84 views
File open in tabs automatically
I want to set up vim so that it opens automatically in tab and not in buffers. I know that I could use alias gvim='gvim -p' or some such shell mapping but I am wondering if there is a way to do that ...
2
votes
1answer
545 views
Install Gvim after vim
I would like to run vim via X11 (over SSH). Vim comes pre-installed on my NAS (running Debian), however the GUI is not.
When I run vim -g, I get this error:
E25: GUI cannot be used: Not enabled at ...
7
votes
1answer
358 views
Note-taking and outlining using Vi: On startup, highlight tags and display tags in a preview window
I am using vi as a note-taking and outlining tool and therefore I thought that this stackexchange site would be appropriate to ask this question. I am constructing the "tags" file by myself. What I ...
1
vote
1answer
279 views
Gtk application (Gvim) rendering troubleshooting
When I switch from gvim to another application and then after some time switch back gvim window appears blank with cursor blinking in the middle. Sometimes toolbar and tabs look like a white space.
...
1
vote
1answer
1k views
Vim - Get Current Directory
I'm currently adding a little bit of Git functionality to my menu.vim file, and for using a certain command (Gitk) I need to find out Vim's current directory.
How does one do that and include it in a ...
14
votes
3answers
3k views
Buffers or tabs in vim? What are advantages/disadvantages of each approach?
I'm used to modeless editors. Only the past year I've been using vim/gvim, which has a modal approach.
I'm used to tabs in all editors, since before vim all of them are used to it. In gvim, you don't ...
11
votes
2answers
5k views
Best way to upgrade vim/gvim to 7.3 in Ubuntu 10.04?
I have to use Ubuntu 10.04 at work, and cant upgrade it. I'm using Vim/gVim 7.2.
I want to upgrade it to 7.3 (with Python and Ruby extension support). Which is the best way? Add an entry in ...
