Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Vi syntax highlighting settings     - Cool Android realization SVG animation (Programming)

- Why you should choose Python Programming (Programming)

- Zabbix monitors Nginx status (Server)

- Sysdig: system troubleshooting tool (Linux)

- CentOS 6 Install Xen4.2 Virtualization Practice (Linux)

- CentOS 7 Test Marathon start Docker container (Server)

- The principle Httpclient4.4 (HttpClient Interface) (Programming)

- Parts of the partition is not recognized after Debian mount mobile hard disk (Linux)

- LVS + Keepalived the DR mode (Server)

- Cryptography development environment to build under Ubuntu (Linux)

- bash login and welcome message: / etc / issue, / etc / motd (Linux)

- Add your own kernel and ramfs based on an existing Linux LiveCD (Linux)

- Java inheritance initialization problem (Programming)

- Embedded Linux Optimization (Programming)

- CentOS 6.7 install Nagios Tutorials (Server)

- linux raid levels and concepts introduced (Linux)

- How to back up Debian system backupninja (Linux)

- CentOS yum source deployment (Linux)

- CentOS7 set boot directly into the command line interface (Linux)

- Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes) (Programming)

  Vi syntax highlighting settings
  Add Date : 2018-11-21      
  Because he often do some C / C ++ is a small problem. Very inconvenient to use gedit drops when the test each machine, so just get to use Vi. Therefore, it first set about to suit my needs.

First, let Vi syntax highlighting

vi ~ / .vimrc
If not the new
Adding syntax on

If an error
E319: Sorry, the command is not available in this version: syntax enable
  Press ENTER or type command to continue
It may be tiny version of vim. You can re-install vim
"Sudo apt-get install vim"

My linux version
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-18etch1) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) # 1 SMP Sun Feb 10 22:11:31 UTC 2008
Initially, it was to use netinstall version installed, it is likely to be tiny version

Then a number of other settings
set tabstop = 4
set softtabstop = 4
set shiftwidth = 4
set autoindent
set cindent
. Set cinoptions = {0,1s, t0, n-2, p2s, (03s, = 5s,> 1s, = 1s,: 1s
set nu // automatically display line numbers
set hlsearch // search results highlighted
- How to cool down your Ubuntu system (Linux)
- Python configuration tortuous road of third-party libraries Numpy and matplotlib (Programming)
- Update GAMIT10.6 command (Linux)
- MariaDB 10.1 and MySQL 5.7 in general performance on commodity hardware (Database)
- Oracle 12c users create (Database)
- C ++ input and output summary _ Input (Programming)
- Linux firewall anti-hacker disguise malicious attacks (Linux)
- A brief introduction to some important Docker commands (Server)
- XP virtual machine under VirtualBox solve occupy 100% CPU problem (Linux)
- Some common Linux commands Study Notes (Linux)
- Ubuntu under VirtualBox virtual machine serial port settings (Linux)
- Android Custom View password box example (Programming)
- Percona MySQL 5.6 semi-synchronous replication (Database)
- Python context managers (Programming)
- To get Java class / jar package path (Programming)
- java.net.NoRouteToHostException of Hadoop problem: no route to host (Server)
- Migu online music player for Linux (Linux)
- Linux, modify / etc / profile file (Linux)
- Linux port mapping system (routing and forwarding) (Server)
- MySQL query performance comparison of a single truth (Database)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.