vim Questions

35

Solved

How do I globally configure git to use a particular editor (e.g. vim) for commit messages?
Leyte asked 8/4, 2010 at 0:28

19

Solved

I access a sever over ssh on which I run vim for editing files. When I try to yank text from vim into an editor locally on my mac (lion) either with y OR "+y it does not work. I end up with the tex...
Allomerism asked 22/5, 2012 at 0:55

7

Solved

Is there a way to profile Vim plugins? My MacVim becomes slower and slower when I open a large .py. I know I could deselect all plugins and reselect one by one to check which plugin is the culprit...
Sarcastic asked 31/8, 2012 at 10:33

3

I recently started learning Vim and before I go deeper I have a question I need answered. Using a AZERTY keyboard, should I remap the keys for the commands and shortcuts to fit the position of the...
Snub asked 20/10, 2015 at 19:33

6

Solved

The % key is one of the best features of vim: it lets you jump from { to }, [ to ], and so on. However, it does not work by default with quotes: Either " or ', probably because the opening and cl...
Misbehavior asked 18/9, 2009 at 11:46

2

Solved

Whenever I execute a command like :imap, Vim fires up some sort of (internal?) pager that doesn't support searching through the output. Is there any way to configure Vim to use a different pager?
vim
Alderson asked 15/9, 2013 at 21:20

11

Solved

Which is the shortest way to select an entire line without the new line character in VIM? I know that SHIFT + v selects the entire line, but with new line character. To do this I go to the line...
vim
Ulric asked 23/11, 2013 at 17:34

14

Open Source project Trac has an excellent diff highlighter — it highlights changed lines and changed bytes in each changed line! See here or here for examples. Is there way to use the same c...
Gregson asked 16/3, 2011 at 13:29

8

Solved

I use the following Vim macro a lot (it puts the current line inside XML tags): I<e>^[A</e> So I saved it into my .vimrc let @e='I<e>^[A</e>' But it does not work. Th...
Gunflint asked 31/5, 2010 at 12:38

4

Solved

I want to apply a search and replace regular expression pattern that work only in a given range of line and column on a text file like this : AAABBBFFFFBBBAAABBB AAABBBFFFFBBBAAABBB GGGBBBFFFFBHH...
Farias asked 2/10, 2010 at 18:29

5

Solved

There is a phrase that I want to look for in Vim. When found, I want to delete that occurrence of the phrase. What is the easiest way to cycle through all the occurrences (via n), and delete a matc...
vim
Panhellenic asked 20/10, 2011 at 21:14

1

Solved

The airline plugin has an extension which uses Tagbar to show the current function name. (I know this because of this question which I found via asking this question) This works really well and l...
Novick asked 18/11, 2015 at 18:9

5

Solved

I select a block of text using Ctrl-V, but when I then type Shift-A or Shift-I, my vim editor goes into insert mode on only the location where I began the visual block mode. For example, Here is ...
vim
Freese asked 17/2, 2013 at 20:53

16

Solved

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on?
Lahdidah asked 19/9, 2008 at 21:19

5

Solved

When I do an interactive rebase, e.g. git rebase -i HEAD~3 the rebase interactive editor (vim in my case) opens to let me edit the commits to rebase pick c843ea2 Set Vim column limit to 80 (OS ...
Solution asked 1/12, 2014 at 10:58

5

Solved

I'm looking for a convenient way to quickly look up the documentation for different functions and/or packages in Go. My current approach is to google for say ioutil.ReadFile, but that is pretty slo...
Kultur asked 30/7, 2013 at 10:54

4

Solved

Currently, if I type :Glog I get the list of revisions for the current file. If I type :Glog -- I get the list of commits for all files. What do I need to type to get the list of commits for the cu...
Keikokeil asked 20/9, 2013 at 19:48

2

Solved

I have made my .vimrc fitting my needs in a quite cool way and I'm already really used to it. That's why I get always confused when my different shortcut and bindings don't work as they do in the g...
Strophe asked 15/6, 2017 at 7:8

10

Solved

I am currently playing around with emacs and happy with most of the concepts. But I really adored the convenience of the three vim commands: dd,o,O Hopefully you can tell me how to mirror them in e...
Bootlace asked 31/1, 2010 at 21:6

14

Solved

My current setting assumes 8 spaces; how could I redefine it?
vim
Dunedin asked 10/12, 2009 at 6:18

8

Solved

When I open Vim from a terminal, copy some text to the system clipboard, and exit Vim, the system clipboard gets cleared. How to keep the copied text in the clipboard?
Fatherinlaw asked 23/6, 2011 at 11:56

5

Solved

I have been writing R scripts in Vim for some time now. Starting an hour ago, I began facing an issue that every time I type an underscore (_), it gets automatically converted to <-. What sett...
Prevaricator asked 13/3, 2014 at 13:59

5

Solved

I want to debug a process, hence I attached strace to the process and redirected the output to a file and then performed the operation. During the process it has created a lot of processes. So here...
vim
Onanism asked 16/6, 2011 at 14:11

3

Solved

This maybe really simple, But I tried searching and I ended up with stuff like copying multiple lines, cut and paste multiple lines etc. What am looking for is pasting a single line multiple times ...
Hyrax asked 22/5, 2013 at 20:26

4

Here's the scenario. I am on the unix command line (in home directory). I want to browse the directory through $ vim . thus opening the vim netrw. Now I am browsing the directory using the net...
Rump asked 18/3, 2013 at 2:58

© 2022 - 2024 — McMap. All rights reserved.