Joined November 2012
·
Posted to
Highlight invisible chars in vim
over 1 year
ago
There was vimcast about it:
http://vimcasts.org/episodes/show-invisibles/
Posted to
Use the command line without leaving Vim
over 1 year
ago
For git
in vim
: https://github.com/tpope/vim-fugitive
Posted to
Compile and run programs online
over 1 year
ago
Similar: http://ideone.com/
Posted to
Vim: Find and Replace text across files
over 1 year
ago
: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>
Posted to
Vim: Increment/Decrement a number under cursor
over 1 year
ago
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
@janahrens This is the same:
=5j</code>