How to turn on syntax highlighting in osx

put follow code in ~/.vimrc

set ai                  " auto indenting
 set history=100         " keep 100 lines of history
 set ruler               " show the cursor position
 syntax on               " syntax highlighting
 set hlsearch            " highlight the last searched term
 filetype plugin on      " use the file type plugins

Don‘t having this file ,you will build a new one.

note: my english is so poor that I can‘t writing a complete sentence .

Also please see understanding !

quote:http://stackoverflow.com/questions/24666518/how-to-turn-on-syntax-highlighting-in-vim-7-3-osx
时间: 2025-01-07 09:45:21

How to turn on syntax highlighting in osx的相关文章

Quick Tip: How to Add Syntax Highlighting to Any Project

Quick Tip: How to Add Syntax Highlighting to Any Projectpublic String showAllArticleForPage() throws Exception{HttpServletRequest request = ServletActionContext.getRequest();String username=(String) ActionContext.getContext().getSession().get("user&q

Syntax Highlighting Post – 做人如果没有梦想,那和咸鱼有什么分别

原文引用https://www.dazhuanlan.com/2019/08/25/5d623609295dd/ Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a

第16篇 Shell脚本基础(一)

1.什么是shell?shell是一个命令解释器. 是介于操作系统内核与用户之间的一个绝缘层.对于一个linux系统使用人员来说,shell是你驾驭类linux系统最基本的工具.所有的系统命令和工具再加上应用程序,对于shell脚本来说,都是可调用的.shell扮演者操作系统内核和用户的中间人的角色,用户通过键入shell command,然后shell通过解析用户输入,然后将请求转发给操作系统的内核进行处理. 1)一个系统可以存在多个shell,可以通过cat /etc/shells命令查看系

超过 130 个你需要了解的 vim 命令

从 1970 年开始,vi 和 vim 就成为了程序员最喜爱的文本编辑器之一.5年前,我写了一个问自己名为 "每个程序员都应该知道的 100 个 vim 命令" 这次算是之前那篇文章的改进版,希望你会喜欢. 基础 :e filename Open filename for edition :w Save file :q Exit Vim :q! Quit without saving :x Write file (if changes has been made) and exit :

你需要的130个vim命令

参考文章:http://www.oschina.net/news/43167/130-essential-vim-commands,其中有些我以为需要补充的及时补充或修改 从 1970 年开始,vi 和 vim 就成为了程序员最喜爱的文本编辑器之一.5年前,我写了一个问自己名为 "每个程序员都应该知道的 100 个 vim 命令" 这次算是之前那篇文章的改进版,希望你会喜欢. 基础 :e filename Open filename for edition :w Save file :

vi 和vim 命令大全

从 1970 年开始,vi 和 vim 就成为了程序员最喜爱的文本编辑器之一.这个是从其它博主复制来的,感觉很实用 基础 :e filename Open filename for edition :w Save file :q Exit Vim :q! Quit without saving :x Write file (if changes has been made) and exit :sav filename Saves file as filename . Repeats the l

vim 命令合集

基础 :e filename Open filename for edition :w Save file :q Exit Vim :q! Quit without saving :x Write file (if changes has been made) and exit :sav filename Saves file as filename . Repeats the last change made in normal mode 5. Repeats 5 times the last

VIM常用快捷命令

Since the 70′s, vi and vim are very popular text editors among programmers. 5 years ago, I wrote an article named "100 vim commands every programmer should know" and here is a reworked, updated version. Enjoy! Basics :e filename Open filename fo

qdoc.exe

qdoc.exe Usage: qdoc [options] file1.qdocconf ... # Qt文档生成器 Qt documentation generator # 设置 Options: # 显示此帮助. -?, -h, --help Displays this help. # 显示版本信息. -v, --version Displays version information. # 在解析源代码时将参数定义为宏 -D <macro[=def]> Define the argum