Questions tagged [vim]

Vim is a free and open-source modal text editor available for most major platforms. It allows high efficiency in many text editing tasks but has a steep learning curve. To learn the basics, run ":help vimtutor". For non-programming questions please use https://vi.stackexchange.com/ instead.

Vim is a free and open source text editor with a steep learning curve that leads to high efficiency in many tasks related to text editing. If you wish to start with Vim, run :help vimtutor in Vim or run the vimtutor command in shell, which will teach you basic commands.

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems and is available on a large number of other systems including Win32, MS-DOS, OS X, AMIGA, OS/2, Cygwin and many more. Vim is written by Bram Moolenaar.

Vim is often called a "programmer's editor," and is so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

Before you ask

  • If your question is not about programming, consider posting Vim related questions at the dedicated Vim Stack Exchange site.
  • Vim has an extensive help system that will often address your questions. Type :help <subject> within Vim to search for help on a particular subject; for instance: :help search. The help documentation is also available online.
  • Search Stack Overflow for similar or duplicate questions.

Free Vim books

Vim books

Documentation

Tutorial

See also

License/charityware

Vim is Charityware. You can use and copy it as much as you like, but you are encouraged to make a donation for needy children in Uganda. Please see |kcc| below or visit the ICCF web site, available at these URLs:

Related tags

27998 questions
24
votes
1 answer

Speed up VIM cursor moving through j/k

On my friend new Mac, he scrolls from line #1 to line #100 using k in around 4 seconds. On my Mac, it takes 10 seconds. Neither of us know what causes his MacVim scrolls that fast. Any way that I can improve the speed of scrolling on my MacVim? I…
Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96
24
votes
10 answers

Thinking of moving from TextMate to vim for Rails dev. What do I need?

I do Ruby on Rails development pretty much exclusively. I currently develop in OS X using TextMate. I have a virtual machine running to emulate as closely as possible the environment my app will be deployed into, and I mount the code on a Samba…
Josh Lindsey
  • 8,455
  • 3
  • 24
  • 25
24
votes
1 answer

VIM with Google Docs?

I finally got around to teaching myself VIM and am really liking it. I was wondering if anyone here knew of a way to set up my Google Docs to support the VIM commands?
ShowLove
  • 899
  • 1
  • 12
  • 21
24
votes
1 answer

Installing Vim with homebrew

After installing vim with homebrew how how do you configure the .vimrc and .gvimrc paths.
wuno
  • 9,547
  • 19
  • 96
  • 180
24
votes
2 answers

syntastic complaining about ES6 module syntax

I love syntastic for javascript but I am using the new ES6 module tranpiler and syntastic is not happy about these type of statements: import Typeahead from './lib/components/ember-typeahead'; Is there anyway that I can keep syntastic quiet about…
dagda1
  • 26,856
  • 59
  • 237
  • 450
24
votes
4 answers

HTML indenting not working in compiled Vim 7.4, any ideas?

In trying to get vim to indent .html files properly, I followed the examples set out here. Given the following file index.html:

text

I tried opening it like so (ignoring my .vimrc to make sure…
Cory Klein
  • 51,188
  • 43
  • 183
  • 243
24
votes
2 answers

how to write value of variable into current edit file in vim script

I get a variable's value in vim's script, and how to write it into the file I'm editing now. e.g. "=== get date let TodayDate=system("date")
songhir
  • 3,393
  • 3
  • 19
  • 27
24
votes
1 answer

Disable latex symbol conversion in vim

The vim editor on my Kubuntu 13.04 laptop seems to have some advance feature for latex edting, i.e. it can convert latex symbols to unicode chars on the fly and hide the source code when the cursor is not on the line. This may be a great function…
qed
  • 22,298
  • 21
  • 125
  • 196
24
votes
4 answers

Open item from quickfix window in vertical split?

I know you can open quickfix items in a new horizontal window with ctrl-w + enter. Is there a way to open an item from the quickfix window in a vertical split?
Ben J
  • 2,252
  • 4
  • 23
  • 30
24
votes
6 answers

Copy from Putty/Vim visual mode to windows clipboard

I currently have a vim session open in Putty, and I've selected everything in the file via visual mode. Normally to copy this onto clipboard I would use either "+y or "*y, but neither of those commands are working. Here's my vimrc: call…
user886596
  • 2,380
  • 5
  • 31
  • 53
24
votes
5 answers

Vim YouCompleteMe configuration

i just installed YouCompleteMe for Vim through vundle. It works, but it shows only the words contained in the current file. I want to use it to develop c++ programs, how can i configure it to show autocompletion from c++ headers file in /usr/include…
mastergap
  • 375
  • 1
  • 3
  • 10
24
votes
3 answers

Vim context highlighting

I think standard highlighting is useful -- to some extent. When programming with callbacks and nested structures, this does not help. Keywords and strings, they appear everywhere, and it helps when they are shown in a distinct color, but these…
user1621465
24
votes
2 answers

Vimscript: how to get current filetype as a variable

I'd like to get the current filetype as a variable in vimscript. I'm making a function that grabs the current filetype and edits another file of corresponding filetype. For example: editing "foo/bar.txt", want to open "tmp/other.txt" editing…
aweg awef
  • 249
  • 1
  • 2
  • 3
24
votes
8 answers

How to tab (back, forward) a block of code in Vim?

How do you tab a block of code, to the right to the left, on Vim?
vehomzzz
  • 42,832
  • 72
  • 186
  • 216
24
votes
4 answers

How do I use 'wildignore' in Vim?

I'm having a lot of trouble figuring out the syntax for the wildignore setting in Vim. Suppose I want my file finder plugin (I use Ctrlp, which uses wildignore) to not search through hidden files and folders, that is, files and folders prefixed…
Fawkes5
  • 1,001
  • 3
  • 9
  • 12
1 2 3
99
100