Open Laboratory for Technocrats

Grab the developer role, learn concepts & prepare with senior software engineers to get solutions for problems in a software job. Coding and Programming Solutions crafted for you.

VIM - Command List for Developers [Shortcuts]

VIM LOGO
Vim Logo
All though VIM is very popular among developers, there are various users who think to use it and find it difficult to start it. There are various good books and tutorials out there and I am not going to elaborate then here.

All the users who are willing to use vim must give vim some time to use it and I am sure they will  LOVE it after that. Today I am going to put some of the shortcuts for vim as they are commands that usually new vim user need to access while doing and it takes time to grab the right from the web.

So here is the list of commands that new users will love to use:

 Split the screen  :vsp  :sp
 Save current file  :w
 Splitted screen width adjust  :vertical resize +10  :vertical resize -20
 Splitted screen width adjust  :resize +20   :resize -10



Note: Addition of commands will be granted please comment to add

Vi/Vim Set Line Number By Default/Permanent - Ubuntu

Vim Editor
VIM Editor
Mostly every developer tries VI/VIM editor in dev lifespan.
Like other features, if you need to check the line number you need to play with the vimrc file.

Now let's explore the vimrc file, you can check the URL for more.

Now open the vimrc file by the following command:
vim ~/.vimrc
After the file is opened in the vim editor press
i
which will get you into insert mode.
Now at the end of the page put this if it's not there in the file
set number
Now save the file with the command
:wq
Now onwards the vim session will display the line numbers by default.

Keep Coding and Keep Smiling :)

Install ATOM Editor on Ubuntu 32 Bit System

Its easy to install the ATOM editor into Windows/Mac.
But when it comes to the different architecture on Ubuntu there where we need our Dev's Cap to get it using on the system.

So there are various solution's available through out the internet.
The solution that worked at once is simple as well as easy.

Want to learn more about this editor have a look at ATOM's Website
So lets have a look at the solution that just worked as charm at first hit. It uses the PPA which goes as, Open Terminal and use this command:
sudo add-apt-repository ppa:webupd8team/atom
Accept the request to add, then update the system with the command
sudo apt-get update
Then finally use this command to install the  atom editor
sudo apt-get install atom

After installing enjoy with the lightweight editor.
If you want to open the atom editor as the root user then we can change few line as :

Go to the Directory under /usr/share/applications
There is a file named Atom,
Right click Atom file and go to Properties 
Under the Basic tab you can find an entry named Command
Replace it with this:
gksudo -k -u root  /opt/atom/atom
That's it close and enjoy the editor with root privileges.

Happy Learning and Enjoy :) 

GEDIT - Editor with Xtra Plugins



Every one uses the text editor any many of us love to work on simple editors as well as powerfull.

Here in this post we will be adding some more plugins to the editor  named GEDIT.

As this comes handy with Ubuntu so any one can just use it easily like notepad or word pad in windows.

By Default there are some plugins that are already installed in the system. We can manually added various more plugins.

Lets see how we can install and make the gEdit more useful for every user by following simple steps:

  • Open Terminal
  • Type command : sudo apt-get install gedit-plugins

And that's it all work is done from your side.

To verify just open the gEdit and go to -> Edit->Preferences->Plugins.

Here you will see a lot new plugins for you waiting to be used. 

Enjoy using then and share the knowledge.

Top #3 Articles

Most Read