You could customize your vim environment by this tools. http://yoursachet.com MEMO: 1. comment "filetype plugin indent on" and "autoindent" to avoid auto indent mess up the indent during past "Python" script code. 2. add, :vmap <C-C>"+y, to enable Ctrl-C to copy text into clipborad. 2-1. $ vim --version | grep xterm_clipboard 2-2. $ sudo apt-get -y install vim-gtk 2-3. $ sudo update-alternatives --config vim 3. add the following settings to set different tab definition with different extension name, autocmd FileType py :setlocal sw=4 ts=4 sts=4 autocmd FileType sh :setlocal sw=2 ts=2 sts=2 Wish this helps. regards, Stanley Huang