tips:linux:vitricks
Differences
This shows you the differences between two versions of the page.
| tips:linux:vitricks [2009/06/08 15:52] – created erik | tips:linux:vitricks [2009/06/08 15:53] (current) – erik | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Useful VI Tricks ====== | ||
| + | Put this in your .vimrc: | ||
| + | |||
| + | map <F5> :s.^//.. <CR> :noh <CR> | ||
| + | map <F6> :s.^.//. <CR> :noh <CR> | ||
| + | |||
| + | Now you use a visual line select ('' | ||
| + | smack '' | ||
| + | |||
| + | As a bonus, use these to change indents. Change indent to your preference for | ||
| + | indenting. I use 4 spaces. Use '' | ||
| + | can move whole blocks left and right easily. | ||
| + | |||
| + | map <F7> : | ||
| + | map <F8> : | ||
tips/linux/vitricks.txt · Last modified: by erik
