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...

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 ...

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...

6 May at 16:36

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...

8 Feb at 08:23

How to go back (ctrl+z) in vi/vim

How to go back (ctrl+z) in vi/vim In normal text editors [with all due respect to Vim] there is a shortcut + when you have done something nasty and want to return to the previous version of the text. ...

15 Aug at 10:42

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...

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...

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...

15 Nov at 06:39

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 ...

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...

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...

9 Feb at 01:55

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...

23 May at 02:29

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

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...

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 ...

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...

24 Nov at 06:11

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...

30 Jan at 22:27

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...

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...

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...

7 Apr at 17:23

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...

19 Feb at 01:42

How to replace a character by a newline in Vim

How to replace a character by a newline in Vim I'm trying to replace each `,` in the current file by a new line: But it inserts what looks like a `^@` instead of an actual newline. The file is not in ...

12 Apr at 13:18

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...

6 Oct at 15:6

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

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...

4 Jan at 04:21