Posts

Showing posts from October, 2013

Vim Keyboard Shortcuts

General Nearly all commands can be preceded by a number for a repeat count. eg.  5dd  delete 5 lines  gets you out of any mode and back to command mode Commands preceded by  :  are executed on the command line at the bottom of the screen :help  help with any command Navigation Cursor movement: ← h  ↓ j  ↑ k  l→ By words: w  next word (by punctuation);  W  next word (by spaces) b  back word (by punctuation);  B  back word (by spaces) e  end word (by punctuation);  E  end word (by spaces) By line: 0  start of line;  ^  first non-whitespace $  end of line By paragraph: {  previous blank line;  }  next blank line By file: gg  start of file;  G  end of file 123G  go to specific line number By marker: mx  set mark  x ;  'x  go to mark  x '.  go to position of last edit ' '  go back to last point before jump Scrolling: ^F  forward full screen;  ^B  backward full screen ^D  down half screen;  ^U  up half screen ^E  scroll one line up; 

Keyboard Shortcuts for working with Gnome Terminal

Here are some key board shortcut for terminal. Shortcut key Action Note Shift+Ctrl+t new tab Shift+Ctrl+w close tab Shift+Ctrl+n new window Ctrl+{PgUp,PgDown} change tabs Shift+Insert paste from selection buffer, or if that's empty the clipboard Ctrl+Insert copy selection to clipboard Shift+Ctrl+v paste from clipboard Ctrl+Click Open URL under mouse cursor Shift+{PgUp,PgDown} Scroll back,forward The scroll buffer is configurable in each terminal program. For e.g. the scroll buffer is lost when you switch virtual consoles as it uses video memory. Ctrl+l redraw Very handy if command line is messed up with wall messages, or mc session is corrupted for e.g. Ctrl+s pause Ctrl+q resume Ctrl+u del to start of line Ctrl+w del word (to left) Hope this information will be helpful for you while working in terminal. Any comment and/or suggestion is always welcome. Cheers A.Paul Sources:    http://www.pixelbeat.org/lkdb/gnome-terminal.html