Saturday, 21 November 2015

My first test drive of Atom

Was pleasantly surprise with Atom editor where it really make one very productive in writing codes through the installation of additional package.

I installed additional packages for
  • vim 
  • beautify codes
  • javascript snippet
  • autocomplete
 I like the vi and the autocomplete for nodejs coding and I want to be able to move to end of the line where I can quickly insert ';' or ','.

What I did, was to create a custom key map as shown below.
  1. Go to Atom/Preferences.../Setting/Keybindings/your keymap file
  2. Add the keymap shown below.


With above key map, I can used 'Ctrl-l' in edit mode of VIM-mode of Atom to quickly move to end of line and then type ';' or ','. 

VI Editor

The same behaviour can be achieved for VIM editor by adding the following to ~/.vimrc file.

imap <C-l> <Esc>$a