vi

Is it possible to use VI or VIM keymap in NetBeans?

Vim is my favorite tool for programming in OSX, but my team mate all use NetBeans. Some of them use Eclipse Keymap. Any suggestion plug-in to enable VI command in NetBeans 6.5? Related: Does any IDE have a vi keybindings option? ...

Will Emacs make me a better programmer?

Steve Yegge wrote a comment on his blog: All of the greatest engineers in the world use Emacs. The world-changer types. Not the great gal in the cube next to you. Not Fred, the amazing guy down the hall. I'm talking about the greatest software developers of our profession, the ones who changed the face of the industry. ...

vi / vim - how to set the tab label/title length to a fixed size in chars

As I open new tabs in vi/vim(7.2), if the opened files are in different paths the tab title displays the complete path and hogs the screen real estate so the other tabs are not visible. This means I can't use my mouse to click to the tab I want but have to resort to : & keyboard commands to move between tabs. Is there any way I can res...

How do I fix the indentation of an entire file in Vi?

In Vim, what is the command to correct the indentation of all the lines? Often times I'll copy and paste code into a remote terminal and have the whole thing messed up. I want to fix this in one fell swoop. ...

What is your favorite colorscheme FOR PROGRAMMING in Vim?

I think this is a relevant question for programmers and I'd like to hear other people's answers because some syntax highlighting color schemes are better on the eyes than others. This can affect productivity as much as ergonomic keyboards or anything else on here. It's about comfort and productivity. So, I'm curious. Do you find some ...

Standard python interpreter has a vi command mode?!

Hi, this is going to sound pretty ignorant, but: I was working a bit in the python interpreter (python 2.4 on RHEL 5.3), and suddenly found myself in what seems to be a 'vi command mode'. That is, I can edit previous commands with typical vi key bindings, going left with h, deleting with x... I love it - the only thing is, I don't know...

vi, vim buffers overrun

I'm losing all previous buffers when by mistake I'm trying to switch behind the last buffer [n:]. If for example I open couple of files in editor :ls 1 # "/etc/moduli" line 1 2 %a "/etc/motd" line 1 :n E163: There is only one file to edit :p E163: There is only one file to edit now i can ...

Vimdiff current line compare

In Beyond Compare, the line you currently have selected is compared on top of each other at the bottom of the window. Is there any way to accomplish this in vimdiff? ...

Vim encryption: how to break it?

Recently I decided to encrypt my engineering log using vim's :X encryption feature. I wrote down the password, but evidently I misspelled something or messed something up because decrypting the file just gives gibberish. To make matters worse, all my backups are somehow corrupted (don't ask, I am not sure how either). I am not going...

Vi substitution command

Using vi, how do I substitute the current line number somewhere into the current line? For example, if the cursor is on line 10, I would like to put the number 10 somewhere on that line. ...

Tips for using vim over a slow connection?

I'm using vim over a slow connection and it is a little painful. Is there anything I can do in vim to alleviate the pain? ...

How can I indent a block of C code in Vim?

Duplicate: How to indent code in vim editor in Windows? Tabbing selected section in VIM Sometimes I want to indent a block of C code in Vim. I usually ended up tabbing it line by line. What is a better/faster way? ...

How to detect vi (not vim) in .vimrc?

I carry a vimrc to all the machines that I work on and it naturally contains options that are not present in old vi. If I accidentally start a vi session on a machine where vi is not an alias to vim and/or vim is not installed, vi reads vimrc and throws a bunch of annoying errors to let me know that option such and such are unsupported....

How can I spellcheck in gvim?

What is the best way to spellcheck in gvim? Is there an add-on or something? Update: I would like it to offer corrections as well. ...

Zend Studio for Eclipse and VIplugin

Anyone using VIplugin with Zend Studio for Eclipse? I would love to be able to use vi keybinding and in theory it sounds like it would work. But wanted to check before buying the plugin. ...

Trying to standardize exports

I am trying to standardize my exports file. I need to remove all spaces and tabs between the first two fields and replace them with two tabs. I am using VI. So I want to change /vol/vol1/home1/xxx -rw=admin:app:admhosts to /vol/vol1/home1/xxx -rw=admin:app:admhosts making the space equil to To two TABS. I am using VI....

Vim delete blank lines

What command can I run to remove blank lines in Vim? ...

Search for string and get count in VI editor

Well I want to search for a string and find number of occurrences in a file opened using Vi editor. ...

What's the point of viEmu plugin for Visual Studio?

This may sound a bit provocative but it actually is a real question. Feel free to edit if you don't like the tone. Now, as much as I understand vi from my short experience with it like 10 years ago, it's a primitive text editor with one editable line at the bottom of the screen created before the scrollbars were invented, with some craz...

What are the dark corners of Vim your mom never told you about?

There is a plethora of questions where people talk about common tricks, notably "Vim+ctags tips and tricks". However, I don't refer to commonly used shortcuts that someone new to Vim would find cool. I am talking about a seasoned Unix user (be she/he a developer, administrator, both, etc.), who thinks (s)he knows something 99% of us ne...