Questions tagged [vim]

Vim is an open-source text editor with a steep learning curve that leads to high efficiency in many tasks related to text edition. If you wish to start with vim, try to run “vimtutor”, 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.

Vim is often called a "programmer's editor," and 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.

Visit the home page of vim or visit the Official Vim Tips Wiki.

95 questions
6
votes
7 answers

Split vim window

How do I have vim and a console in the same window? For example, I am splitting up the vim window into multiple windows (vertically or horizontally). What I want is to have the code window on the left side, and the interpreter or console or whatever…
hyperboreean
  • 294
  • 5
  • 13
6
votes
1 answer

Vim SCP parameter with private public key pair

Currently, I am trying to edit a file on a remote server using Vim's built-in netrw plugin. I can SSH fine into my Amazon EC2 server using a command like this: ssh -i bitname@ However, I'd like to be able to use my own Vim…
Delos Chang
  • 163
  • 1
  • 4
6
votes
6 answers

How do you use VIM to edit tabular data (tables)? Specifically, BIND (named) DNS db files

I'm usually a purist when it comes to vimming. I don't like remapping keys, or learning to rely on a bunch of plugins. I like to feel just as powerful on foreign boxen as I do on my own dev box. I do, however, believe in syntax files. Even though…
Bruno Bronosky
  • 4,529
  • 3
  • 26
  • 34
6
votes
6 answers

emacs for sys admins

Are you a sys admin that uses emacs? What tools/plugins do you find essential? In my organization the programmers tend to use emacs whereas the sys admins gravitate towards vim. Since we have 4:1 programmers:sys admins, the global emacs config has…
mbac32768
  • 858
  • 1
  • 7
  • 13
5
votes
4 answers

Change location _viminfo file on Windows

I use gvim 7.2 script dev and other admin work on a Windows XP laptop and it has picked my network share as the location of the _viminfo. This is problematic because it takes a long time for vim to start. Is there a way to change the location of…
bkoch
  • 239
  • 2
  • 6
5
votes
4 answers

How to I use Vim's increment (Control-a) when in a screen session?

Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
alesplin
  • 228
  • 1
  • 6
3
votes
1 answer

Vim hangs on one specific file?

My putty session keeps on hanging when I'm in the middle of editing a file in vim. This has happened three times this morning. Hopefully it's nothing, just a glitch in the matrix somewhere, but I fear it means disk/memory problems on my server. …
Codemonkey
  • 1,086
  • 4
  • 19
  • 41
3
votes
3 answers

Vim keyboard remap on Snow Leopard (MacOs 10.6)

I want to have my external keyboard's HOME, END, PAGEDOWN and PAGEUP working on Leopard's Terminal. So that I changed in Terminal > File > Preferences: Home: \033[H End: \033[F PageUp: \033[5~ PageDown: \033[6~ It works 100% in command…
jbastos
  • 265
  • 1
  • 3
  • 9
3
votes
1 answer

Creating a global Vim configuration, including separate configuration files for plugins?

I use Arch Linux (ARM, but irrelevant) on a server machine, and I want to create a global configuration for Vim, based on my current personal configuration. I have already moved my ~/.vimrc to /etc/vimrc, and that works fine, but I want to configure…
Archimaredes
  • 131
  • 1
  • 4
3
votes
2 answers

Setting a default vim filetype for syntax highlighting

How do I tell vim to automatically use a particular filetype (usually for syntax highlighting) when none is detected?
MikeyB
  • 39,291
  • 10
  • 105
  • 189
3
votes
1 answer

disabling specific byobu/screen keybindings that conflict with vim keybindings

ctrl + a under byobu has either emacs mode or screen mode. However, I need keybindings like ctrl + a for vim's "increment value" method. How would I prevent byobu/screen from blocking certain keyboard shortcuts? Note: I get that the function…
dan
  • 31
  • 1
  • 2
3
votes
1 answer

Linode Lish Shell Vim and Nano rendering troubles: lines not appearing / cursor positions wrong

I'm using a linode VPS and I just cloned one of my servers to my development server as I've done many times before. As usual SSH is inaccessible until /etc/network/interfaces is correctly updated. I log into the linode lish shell via ssh AND the…
Yuji Tomita
  • 463
  • 1
  • 3
  • 15
3
votes
1 answer

Can vim execute buffer without addons?

If editing some script in vim, a file with .py or .sh extension, is it any build-in vim command that allows to run such file? I know it's a lot of IDE-like addons for VIM that allows to execute files vim edit, but is it possible without addons?
grigoryvp
  • 3,655
  • 11
  • 39
  • 59
3
votes
1 answer

Command output in vi editor

I open a text file using vi editor in linux and want to insert date command output without exiting vi editor. What is the trick? Thanks
vnix27
  • 886
  • 2
  • 11
  • 19
3
votes
13 answers

Vim features and extension that make your work easier

What Vim features and extension do you use? Which would you recommend for a Linux sysadmin?
Alakdae
  • 1,233
  • 8
  • 21