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

05 April, 2014

ctags useful tips

first run in the base directory ctags -R

In VI/VIM below commands can be used
Ctrl-] - go to function definition
Ctrl-T - Jump back from the definition.
Ctrl-W C-] - Open the definition in a horizontal split

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 ...