tagged [vim]
How to set default vim colorscheme
How to set default vim colorscheme The latest upgrade of Ubuntu made my vim colorscheme unusable. I know how to set it manually (`:colo evening`, for example), but I want to set the default for all vi...
- Modified
- 20 Sep at 07:4
What is the difference between MacVim and regular Vim?
What is the difference between MacVim and regular Vim? I'm reasonably new to OS X, but I'm familiar with Vim from using it in various *nix systems. I've seen many people recommend running MacVim over ...
- Modified
- 26 Apr at 23:49
How can I open a Shell inside a Vim Window?
How can I open a Shell inside a Vim Window? I can open a shell by using the :shell command in Vim, however I can't edit a file and at the same time use the shell. Is there any way to split Vim in many...
How do I exit from the text window in Git?
How do I exit from the text window in Git? I am using Windows and before committing, Git wants me to enter a text message and a new text window appears. ![screenshot](https://i.stack.imgur.com/DSfuw.p...
vim - How to delete a large block of text without counting the lines?
vim - How to delete a large block of text without counting the lines? In vim, I often find myself deleting (or copying) large blocks of text. One can count the lines of text and say (for example) `50d...
- Modified
- 19 Mar at 13:29
How can I use VIM to do .Net Development
How can I use VIM to do .Net Development Visual Studio is the defacto editor, but what are our other options that avoid a heavy UI while still integrating with a C# build chain? Looking for options wh...
- Modified
- 4 Oct at 13:52
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...
delete word after or around cursor in VIM
delete word after or around cursor in VIM I'm now switching to `VIM` from TextMate. I found `^+W` in INSERT mode very useful. However, I'd like to delete not only the word before cursor, but the word ...
- Modified
- 19 Jan at 15:35
Vim omnicompletion for C#
Vim omnicompletion for C# I was wondering if there is any tool like [OmniCppComplete](http://www.vim.org/scripts/script.php?script_id=1520) for C# (method signature shown in the abbreviation is what I...
- Modified
- 30 Sep at 18:42
Tips for using Vim as a Java IDE?
Tips for using Vim as a Java IDE? I'm addicted to Vim, it's now my de facto way of editing text files. Being that it's mainly a text editor and not an IDE, has anyone got tricks for me to make it easi...
Replace tabs with spaces in vim
Replace tabs with spaces in vim I would like to convert tab to spaces in gVim. I added the following line to my `_vimrc`: It works to stop at two spaces but it still looks like one tab key is inserted...
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 ...
How do I run a terminal inside of Vim?
How do I run a terminal inside of Vim? I am used to Emacs, but I am trying out Vim to see which one I like better. One thing that I like about Emacs is the ability to run a terminal inside Emacs. Is t...
- Modified
- 31 Dec at 12:30
How can I quickly delete a line in VIM starting at the cursor position?
How can I quickly delete a line in VIM starting at the cursor position? I want to be able to delete the remainder of the line I'm on starting at the cursor's position in VIM. Is there an easy command ...
- Modified
- 28 Nov at 13:28
How to insert text at beginning of a multi-line selection in vi/Vim
How to insert text at beginning of a multi-line selection in vi/Vim In [Vim](http://en.wikipedia.org/wiki/Vim_%28text_editor%29), how do I insert characters at the beginning of each line in a selectio...
How to jump back to NERDTree from file in tab?
How to jump back to NERDTree from file in tab? I usually: 1. Choose the needed file. 2. Open it in a tab(t character, by default). But how I can jump back to NERDTree to open one more file in a tab? T...
How can I enable VIM for mac in Visual Studio?
How can I enable VIM for mac in Visual Studio? I just got Visual Studio for my Mac. Although in Beta, it seems nice. Unfortunately, I can't seem to figure out where VIM could be. I've searched the mar...
- Modified
- 23 Apr at 09:13
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
Print problems in GVIM
Print problems in GVIM I have set linebreak and wrap. The document looks great on my screen but when I print it the words are broken p.e. How can I resolve this problem? ps: I don't want to reformat t...
Vim Can't Save File (E212)
Vim Can't Save File (E212) Sometimes when I create a file using `vim some/path/newfile`, vim lets me edit it, only to complain when I attempt to save my changes. This appears to happen only when the n...
How to Emulate TextMate's Command-Return Feature in Vim
How to Emulate TextMate's Command-Return Feature in Vim TextMate has a feature where pressing Command-Return at any point inserts a new line below the current line placing your cursor at the beginning...
Setting the Vim background colors
Setting the Vim background colors When I try to change the background colors in `.vimrc` or directly in Vim using the command: ... it doesn't affect my background at all. Neither does the `light` opti...
- Modified
- 4 Jan at 04:21
vim commands in Eclipse
vim commands in Eclipse I have been doing some java development lately and have started using Eclipse. For the most part, I think it is great, but being a C/C++ guy used to doing all of his editing in...
How can I automatically add some skeleton code when creating a new file with vim
How can I automatically add some skeleton code when creating a new file with vim When creating a new file with vim, I would like to automatically add some skeleton code. For example, when creating a n...
- Modified
- 2 Oct at 14:33
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
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
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 ...
How to effectively work with multiple files in Vim
How to effectively work with multiple files in Vim I've started using Vim to develop Perl scripts and am starting to find it very powerful. One thing I like is to be able to open multiple files at onc...
Project Explorer ,Mini buf expl Use in VIM
Project Explorer ,Mini buf expl Use in VIM Any tricks for using project explorer in VIM? How can I search from all files in project? I tried \g \G but they dont work . How to toggle on off Project exp...
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
Turning off auto indent when pasting text into vim
Turning off auto indent when pasting text into vim I am making the effort to learn Vim. When I paste code into my document from the clipboard, I get extra spaces at the start of each new line: I know ...
- Modified
- 3 May at 14:57
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
Vim: good way to setup makeprg=xcodebuild?
Vim: good way to setup makeprg=xcodebuild? What is the best way to set `makeprg=xcodebuild` in vim? I'm using filetype line in files to indicate that the file is objective-c (as opposed to matlab or c...
- Modified
- 4 Dec at 12:39
Is there any way to get vim to auto wrap python strings at 79 chars?
Is there any way to get vim to auto wrap python strings at 79 chars? I found this [answer](https://stackoverflow.com/questions/1302364/python-pep8-printing-wrapped-strings-without-indent/1302381#13023...
How can I expand/collapse a diff sections in Vimdiff?
How can I expand/collapse a diff sections in Vimdiff? I've started using vimdiff today, and wanted to do some of the things that I've taken for granted on Windows based diff editors (like expand/colla...
- Modified
- 11 Aug at 16:51
Vim 80 column layout concerns
Vim 80 column layout concerns The way I do 80-column indication in Vim seems incorrect:`set columns=80`. At times I also `set textwidth`, but I want to be able to see and anticipate line overflow with...
- Modified
- 26 Nov at 04:10
How do I switch between command and insert mode in Vim?
How do I switch between command and insert mode in Vim? I just started using Vim as an IDE. I was using it as a test editor for a while now, so I didn't have to go to command mode very often. But, sin...
GVim highlighting with matchadd eventually slows down?
GVim highlighting with matchadd eventually slows down? I have the following in ~/.vim/ftplugin/python.vim to highlight long lines, accidental tabs and extra whitespace in Python files: ``` hi CustomPy...
- Modified
- 4 Apr at 03:27
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
In Vim, what is the best way to select, delete, or comment out large portions of multi-screen text?
In Vim, what is the best way to select, delete, or comment out large portions of multi-screen text? Selecting a large amount of text that extends over many screens in an IDE like Eclipse is fairly eas...
Viewing all `git diffs` with vimdiff
Viewing all `git diffs` with vimdiff I setup `git diff` to wrap into vimdiff, using "[Git Diff with Vimdiff](http://technotales.wordpress.com/2009/05/17/git-diff-with-vimdiff/)" as a guide, and it's w...
Vim [m motion with c#
Vim [m motion with c# Vim provides very useful motion commands to jump to next start/end of a method: ]m, ]M, [m and ]m. These works for Java or similar structured language. (as described in :help ]m ...
Vim with Powershell
Vim with Powershell I'm using gvim on Windows. In my _vimrc I've added: If I execute this function (:Test) I see nonsense characters (non number/letter ASCII characters). If I use cmd as the shell, it...
- Modified
- 23 May at 12:34
How to view UTF-8 Characters in Vim or gVim
How to view UTF-8 Characters in Vim or gVim I work on webpages involving non-English scripts from time to time, most of them are encoded using UTF-8. Vim and gVim do not display those UTF-8 characters...
- Modified
- 16 Jun at 08:17
What is your most productive shortcut with Vim?
What is your most productive shortcut with Vim? I've heard a lot about [Vim](http://www.vim.org/), both pros and cons. It really seems you should be (as a developer) faster with Vim than with any othe...
Vim: insert the same characters across multiple lines
Vim: insert the same characters across multiple lines Sometimes I want to edit a certain visual block of text across multiple lines. For example, I would take a text that looks like this: And make it ...
- Modified
- 18 Jan at 17:24