tagged [vim]
Vim: how do I swap two characters?
Vim: how do I swap two characters? Is there a fast command to change to
- Modified
- 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?
- Modified
- 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`?
- Modified
- 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...
- Modified
- 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...
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...
- Modified
- 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
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 ...
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...
- Modified
- 2 Apr at 12:50
Redefine tab as 4 spaces
Redefine tab as 4 spaces My current setting assumes 8 spaces; how could I redefine it?
- Modified
- 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`,...
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...
- Modified
- 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...
- Modified
- 1 Feb at 15:43
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 ...
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?
- Modified
- 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)
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?
- Modified
- 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...
- Modified
- 8 May at 18:25
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 ...
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?
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...
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...
- Modified
- 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...
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...