Sonntag, 22. September 2013

VIM

VIM. That's another great "found and never let go" thing. For now i go with the words from the creators:
Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

After watching some Tutorials on youtube( VIM TC2 and VIM TC4 ) and extension videos (snipmate and it's intro) I tried the editor. After some hours i got used to the interface and usage. VIM is not like any other Texteditor.
The greatest Difference to other common TextEditor's is that it has Modes.
You have a mode to scan through the file (Normal), one mode to edit (Edit) and one mode to mark/copy (Visual).
The first two weeks it's hard to use it because if you only want to change 1 digit you have to press more than " 2 file-save" but the power lies within the customization of the editor and editing much more greater files and/or more files at once.
With Plugins you are able to build a MeanMachine out of this tiny little Editor.

TMUX - TerminalMUltipleXer

TMUX. Another great invention. Tmux is like screen but better.
TerminalMUltipleXer it's called and that's what it does.
With this little program you are able to log into a Remote system and let sessions open for later use. For Screen you have to extensively tweak it to do your belongings and tmux just has it built in. My killer feature for this app is it's ability to split Terminal Windows just like a tiling window manager does.
Let's say you have 200 ssh sessions open each in one seperate window.
Now search through the windows with screen:
ctrl-a is it here? nope. ctrl-a is it here? nope ctrl-a
you get it.

Search for a specific text in all terminal windows in tmux:
ctrl-b f myservernumber1 and boom!
you got a list of all windows with that specific string in it.
I still not discovered all features but it's insane what it does to your ssh and console behavoir.

Go and try it out.

Ubuntu:
apt-get install tmux