Joined November 2012
·

Vim rocks

Warsaw
·
·

Posted to Fixing indentations in vim over 1 year ago

@janahrens This is the same:
=5j</code>

Posted to Highlight invisible chars in vim over 1 year ago

There was vimcast about it:
http://vimcasts.org/episodes/show-invisibles/

Posted to Compile and run programs online over 1 year ago

@design48

:set modifiable
Posted to Quickly increment/decrement over 1 year ago

The number doesn't have to be under the cursor. C^a, C^x work also on the first number on the right.

Posted to Vim tip over 1 year ago

It's calles text objects:


ci{
ci[
ci"
ci'
ci`
cit - tag
cip - paragraph
ciw - word
cis - sentence

di( - stays in normal mode (di[, di{, di" etc)
ca( - deletes also ()
</code></pre>
Posted to Vim tip over 1 year ago

This will open at the end of the file:

vim + file.js</pre></code>
Posted to Prevent VIM write misfires over 1 year ago

I prefer to use ZZ (2 keystrokes) instead of :wq enter (4 keystrokes)

Posted to Reindent an entire file over 1 year ago

@s1na
Yes, this is different.
:retab converts tabs to spaces, or spaces to tabs
gg=G fixes indentation level

Posted to Reindent an entire file over 1 year ago

This is even shorter (you don't need to go to visual mode)

gg=G</code></pre>

Not only under the cursor, it works on first occurence of the number in the current line from the cursor.

Posted to VIM: Add "/" and "|" to text objects over 1 year ago

Add ".", ":", "|", "/", "\", "*" to text objects: http://codepad.org/TNVK7vO4

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills