Ask Your Question
0

fedora 20 vi editor key words highlighting

asked 2014-03-01 00:10:26 -0500

Dee gravatar image

updated 2014-03-01 09:04:52 -0500

mether gravatar image

is there a code to write in the terminal in order to highlight the key words in the vi editor in fedora 20?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-03-01 04:39:31 -0500

anishjp gravatar image

You can use vim instead. yum install vim-enhanced

vim have better highlighting than vi

edit flag offensive delete link more

Comments

Thanks a lot :)

Dee gravatar imageDee ( 2014-03-01 06:39:49 -0500 )edit
1

@Dee: if you are happy with the solution, you can mark it as the correct answer and close the thread!

anishjp gravatar imageanishjp ( 2014-03-02 03:03:19 -0500 )edit

You probably need syntax on in ~/.vimrc too. I'm not sure if it's enabled in Fedora by default.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-03-05 02:34:43 -0500 )edit

Question Tools

Stats

Asked: 2014-03-01 00:10:26 -0500

Seen: 313 times

Last updated: Mar 01 '14