I decided to make vim my default text editor. Here are a couple of tips:
To get syntax highlighting in vim, add the following to your ~/.vimrc file or enter while editing (command mode, remember to press ':' before entering):
set background=dark # if your console background is dark..
syntax onTo get line numbers:
set nuTo split the screen in 2
split
vsplit # Vertical SplitTo Move from split windows
Ctrl+W+(direction)Open a file
open fileClose a file
closeSearch Reg Ex
/regexGoto Line Number
:numberSearch word under cursor
*I will post more eventually... vim kicks emacs butt by the way.
No comments:
Post a Comment