Questions tagged [gvim]

Graphical mode for vim (vi improved).

gvim starts (Vi IMproved) in a graphical window with behavior that is a super set of textmode. (see vim)

Like vim gvim is modal, but has prettier cursors, and simpler clipboard support.

Unless your question pertains to the graphical version being different from the regular version, you probably want the vim tag.

vimtutor has a twin: gvimtutor

More ressources:

77 questions
46
votes
1 answer

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 command? (i.e. :!echo "%current-directory") I'll…
new123456
  • 575
  • 1
  • 4
  • 9
30
votes
4 answers

vim - open file and goto line number using ::

Several tools such as grep, py.test, etc ... use the pattern :: to point to errors. For example: ; grep -Hn Common setup.cfg setup.cfg:11: Common How can I modify vim and gvim so that I can invoke them like so: gvim…
22
votes
5 answers

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 f. This is a really nice and time saving feature. However, I can't figure out, how to open the file in…
psibar
  • 461
  • 1
  • 3
  • 10
21
votes
3 answers

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 necessarily need to use tabs: you can just use…
13
votes
2 answers

Best way to upgrade vim/gvim to 7.3 in Ubuntu 10.04?

I have to use Ubuntu 10.04 at work, and can't 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 sources.lists and install a 7.3 vim/gvim package from it,…
13
votes
1 answer

Vim delay when using Ctrl+C, but only in SQL files

I'm working on a side project with both JavaScript and SQL source files. When I'm editing the JavaScript, Vim behaves normally. However, when I'm editing the SQL files, there's about a one-second delay between when I press CtrlC and when Vim exits…
Ryan Kennedy
  • 265
  • 2
  • 6
12
votes
1 answer

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 just add something to my vimrc that redraws on…
Jeromy Anglim
  • 271
  • 2
  • 10
12
votes
5 answers

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 ?
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
6
votes
1 answer

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 would like to do is that when I open my notes…
latexnewbie
  • 171
  • 3
5
votes
1 answer

How can I set check interval for set autoread option in VIM

How can I set check interval for set autoread option in VIM? Is it possible?
FrozenHeart
  • 771
  • 3
  • 11
  • 18
5
votes
2 answers

Comment from start of file to a pattern matched line using sed

I search a pattern, say 'START OF ARAMBOL' and it is matched in a file. Now I would like to comment every line from the line no 1 to the current matched pattern line no. I have to do it for more than 200 files. I can do this using perl too but is…
5
votes
3 answers

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 the gVim window is maximized, opening a tab pushes…
Trey Hunner
  • 405
  • 3
  • 10
5
votes
1 answer

Can we patch an already patched font?

Powerline is some sort of plugin for Vim and Gvim. In order to be more useful it uses fonts that has some pictures (symbols) added to them. In other words they've "patched" the font set. Recently Powerline stated that the code has been changed and…
r004
  • 3,339
  • 8
  • 29
  • 51
4
votes
2 answers

How to delete a line which contains a specific syntax but I want to avoid a line which contains another word

How can I remove a line with a specific word but keeping in mind: if another word is found, then don't delete the line. For example, I'm deleting a line having sup or gnd with :%s/.*sup.*//g or :%s/.*gnd.*//g, but it is also deleting some lines…
CLEX420
  • 43
  • 2
4
votes
1 answer

How can I uniquely identify different GVim instances?

With gnome-terminal, I can use the --role command line argument to make the new terminal window uniquely identifiable by the window manager or other applications, for example: gnome-terminal --role=irc This sets the X window role to "irc", as…
Hubro
  • 1,030
  • 1
  • 11
  • 19
1
2 3 4 5 6