How to set syntax enable permanently in Vim

2

How do I make Vim to remember the syntax enable (or syntax on) command, so I don't have to type it every time I open a new file?

user3075063

Posted 2014-10-10T13:42:33.930

Reputation: 21

I can recommend http://vi.stackexchange.com/ for Vim related questions.

– lindhe – 2017-06-24T21:03:59.203

Answers

1

Put your stuff in ~/.vimrc. Search for a good script for developing c, you can find good indentation and other options.

akostadinov

Posted 2014-10-10T13:42:33.930

Reputation: 1 140

0

Create .vim folder in your home directory (if not exist) and ftplugin

mkdir ~/.vim
mkdir ~/.vim/ftplugin
vi  ~/.vim/ftplugin/c.vim

now start type your commands for example :

!echo 'I am c file ,, '

now save :w

Ahed Eid

Posted 2014-10-10T13:42:33.930

Reputation: 792