Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Vi syntax highlighting settings     - Linux common network tools: batch scanning of nmap hosting service (Linux)

- Python basis: os module on the file / directory using methods commonly used functions (Programming)

- How to fix Ubuntu / Mint can not add PPA source of error (Linux)

- java.net.NoRouteToHostException of Hadoop problem: no route to host (Server)

- Two minutes thoroughly so that you understand Android Activity Lifecycle (Programming)

- Visual Studio Code experience (Linux)

- JEdit 5.2 Pro Edition installation on Ubuntu 14.04 (Linux)

- Linux compiler installation Redis (Database)

- Java multi-threaded shared communications variables (Programming)

- Linux system monitoring, top command of the diagnostic tool Detailed (Linux)

- Static member variable modified (Programming)

- Installing PHP Memcache extension under Linux (Server)

- The REVERSE function of DB2 (Database)

- Getting the Linux shell flow control statements (Programming)

- CentOS yum configuration under local sources (Linux)

- Android Studio interface-related settings (Linux)

- Python virtual environment: Virtualenv (Linux)

- ARP spoofing prevent Linux environment LAN (Linux)

- How to remove the files inside the privacy of data on Linux (Linux)

- Android WebView use layman (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
- Ubuntu 14.04.1 LTS compile and install the new kernel (Linux)
- Nginx + ownCloud + PHP + MySQL to build personal private cloud under CentOS7 (Server)
- SSL VPN SSL VPN access to security websites patron (Linux)
- How to find an IP address through the command line (Linux)
- Ubucompilator-Ubuntu, Debian, Linux Mint created deb package of graphical tools (Linux)
- Redis configuration file interpretation (Database)
- Java, boolean operators & =, | = ^ = use (Programming)
- Use XtraBackup be physical standby database MySQL (Database)
- Depth understanding of DB2 table space (Tablespace) (Database)
- swap space is insufficient cause OOM kill MySQL Case (Database)
- Fedora 22 Server how to upgrade to Fedora 23 Beta Server (Linux)
- Ubuntu PPA install SMPlayer 14.9 (Linux)
- Installation and Configuration OpenVPN server and client on Ubuntu 15.04 (Server)
- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)
- Linux system ARP attack solution (Linux)
- Netfilter / Iptables Comments (Linux)
- MySQL function: group_concat () function (Database)
- Based LNMP + uWSGI deploy Django applications (Server)
- 2 minutes to read large data framework Hadoop and Spark similarities and differences (Server)
- MySQL simple operation notes under Linux (Database)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.