Linux Lite Forums

Full Version: Tab = 4 spaces
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

I will like to permanently and everywhere for the tab to be 4 spaces. Can somebody help me with this please.
http://vim.wikia.com/wiki/Indenting_source_code

My only question is: why would you want enabled globally?

TC
Thanks for the quick reply. I want to enable this globally as i dont use the tab key for nothingelse and i read in searches that different editors might interpret the tab differently and cause problems and so on.

Im all ears though on the best way to do this. All i want to do is use this when im pretending to code on wordpress.

Thanks
I assume you are speaking of posting code to WordPress. If so just use your native editor or vim, and use the css wrap code from there.

https://en.support.wordpress.com/code/po...urce-code/

Otherwise you can fool with the emacs, but you will run into unnecessary problems depending on what your system will see. I/E boot screen functions, and other minibuff functions will override your setting. Global is overkill. Just get your editor configured for the WP wrap code.

http://ergoemacs.org/emacs/emacs_tabs_sp...setup.html

I can't walk you through the WordPress setup, as I never use it, but I bet vim will work fine with it.

TC