Search This Blog

24 April, 2014

vim converting tabs to spaces

For converting tabs to spaces while editing the source codes

1) To insert space characters whenever the tab key is pressed.
 :set expandtab

2) To control the number of space characters that will be inserted when the tab key is pressed, set the 'tabstop' option.
To insert 4 spaces for a tab, you have to type the below command
:set tabstop=4

No comments:

Post a Comment

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...