tagged [vim]

Vim: how do I swap two characters?

Vim: how do I swap two characters? Is there a fast command to change to

3 Jun at 16:10

A more useful statusline in vim?

A more useful statusline in vim? I’d like to make my statusline in vim more informative and interesting, and for that I need some ideas. How did you customize your statusline?

28 Jul at 15:23

Searching word in vim?

Searching word in vim? I can search word in vim with `/word`. How can I search only for `word`, excluding searches for `word1` and `word2`?

1 Aug at 03:55

How to get the list of all installed color schemes in Vim?

How to get the list of all installed color schemes in Vim? Is there a way to get a list of all installed color schemes in Vim? That would make very easy to select one without looking at the `.vim` dir...

5 Oct at 00:44

Find and replace strings in vim on multiple lines

Find and replace strings in vim on multiple lines I can do `:%s///g` for replacing a string across a file, or `:s///` to replace in current line. How can I select and replace words from selective line...

15 Nov at 06:39

How to move screen without moving cursor in Vim?

How to move screen without moving cursor in Vim? I recently discovered + and + shortcuts for Vim that respectively move the screen up and down with a one line step, . Do you know any command that leav...

20 Nov at 14:30

What's a quick way to comment/uncomment lines in Vim?

What's a quick way to comment/uncomment lines in Vim? I have a Ruby code file open in vi, there are lines commented out with `#`: ``` class Search

25 Dec at 02:0

Running Python code in Vim

Running Python code in Vim I am writing Python code using Vim, and every time I want to run my code, I type this inside Vim: This gets frustrating, so I was looking for a quicker method to run Python ...

17 Feb at 10:7

How to do case insensitive search in Vim

How to do case insensitive search in Vim I'd like to search for an upper case word, for example COPYRIGHT in a file. I tried performing a search like: but it doesn't work. I know that in Perl, if I gi...

2 Apr at 12:50

How to replace space with comma using sed?

How to replace space with comma using sed? I would like to replace the empty space between each and every field with comma delimiter.Could someone let me know how can I do this.I tried the below comma...

24 Jun at 05:59

Redefine tab as 4 spaces

Redefine tab as 4 spaces My current setting assumes 8 spaces; how could I redefine it?

20 Aug at 15:0

How to specify a editor to open crontab file? "export EDITOR=vi" does not work

How to specify a editor to open crontab file? "export EDITOR=vi" does not work I'm using Red Hat Enterprise Linux 5, and I want to set the vim editor to edit the crontab file. If I run `echo $EDITOR`,...

2 Oct at 07:20

Vi editing for Visual Studio

Vi editing for Visual Studio I'm used to the Vi(m) editor and am using MS Visual Studio 2005 at work. I couldn't find a free Vi add-in (there's only one for the 2003 version). I googled a bit, saw tha...

13 Dec at 01:56

Tab key == 4 spaces and auto-indent after curly braces in Vim

Tab key == 4 spaces and auto-indent after curly braces in Vim How do I make [vi](http://en.wikipedia.org/wiki/Vi)-[Vim](http://en.wikipedia.org/wiki/Vim_%28text_editor%29) never use tabs (converting s...

How to make vim paste from (and copy to) system's clipboard?

How to make vim paste from (and copy to) system's clipboard? Unlike other editors, vim stores copied text in its own clipboard. So, it's very hard for me to copy some text from a webpage and paste it ...

28 Feb at 17:24

go to character in vim

go to character in vim I'm getting an error message from a python script `at position 21490`. How can I go to this position in Vim?

20 Apr at 10:10

Why are there so few modal-editors that aren't vi*?

Why are there so few modal-editors that aren't vi*? Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts (+ to delete back a word and so on)

21 Apr at 15:52

How can I autoformat/indent C code in vim?

How can I autoformat/indent C code in vim? When I copy code from another file, the formatting is messed up, like this: How can I autoformat this code in vim?

7 May at 19:6

Do you know of any "best practice" or "what works" vi tutorial for programmers?

Do you know of any "best practice" or "what works" vi tutorial for programmers? There are thousands of `vi` tutorials on the web, most of them generically listing all the commands. There are even vide...

Move entire line up and down in Vim

Move entire line up and down in Vim In Notepad++, I can use + + / to move the current line up and down. Is there a similar command to this in Vim? I have looked through endless guides, but have found ...

15 Jul at 20:59

Using Caps Lock as Esc in Mac OS X

Using Caps Lock as Esc in Mac OS X How do I make work like in Mac OS X?

4 Sep at 12:14

How do I use vim registers?

How do I use vim registers? I only know of one instance using registers is via whereby I paste text from a clipboard. What are other uses of registers? How to use them? Everything you know about VI re...

25 Jan at 09:33

Vim and Ctags tips and tricks

Vim and Ctags tips and tricks I have just installed [Ctags](http://en.wikipedia.org/wiki/Ctags) (to help with C++ development) with my Vim (or rather gVim), and would like to find out your favorite co...

2 Feb at 12:53

How to copy to clipboard in Vim?

How to copy to clipboard in Vim? Is it possible to copy to clipboard directly from Vim? `yy` only copies stuff to Vim's internal buffer. I want to copy to the OS's clipboard. Is there any such command...

31 Mar at 00:28

How do I list loaded plugins in Vim?

How do I list loaded plugins in Vim? Does anybody know of a way to list up the "loaded plugins" in ? I know I should be keeping track of this kind of stuff myself but it would always be nice to be abl...

7 Apr at 07:29