I have encountered problems using linux

Source: Internet
Author: User
I have encountered a problem using linux-general Linux technology-Linux technology and application information. The following is a detailed description. How do I set the highlight syntax and indentation for the vi editor? My system is suse10.2

A: Suse is not used. It is safer to use vim instead of vi at startup. : Syntax on

Thanks. This command works, but it won't work after vim is disabled,:
1. How can we keep him effective?
2. How can I cancel it for a long time?
3. How do I set the number of indented spaces?

A: modify "/etc/vimrc ".

Answer: cp/usr/share/vim/vim64/vimrc_example.vim ~ /. Vimrc

Vi ~ /. Vimrc Add the following line

Set tabstop = 4 # set the number of spaces displayed on the TAB

The syntax is automatically highlighted and configured. to cancel the configuration, delete the corresponding row.

In linux, what is the meaning and function of vimrc?

A: This is a file name. It is definitely a part of the file name. If you create a file named. vimrc file (hidden file) and write set nu or set ic in it, these two statements indicate that when opening a file in the VI editor, the row number is automatically added and the search words are case-insensitive by default.

Fedora8
The following error occurs when too many layers of symbolic connections are established:
[Quietheart @ lvkai z_filesInLinux] $ ln-s experiment // home/quietheart/Documents/
[Quietheart @ lvkai z_filesInLinux] $ cd ~
[Quietheart @ lvkai ~] $ Ls
Desktop clients file: nautilus-debug-log.txt Public Videos
Dic.txt Download Music Pictures Templates vmware
[Quietheart @ lvkai ~] $ Cd Documents/
[Quietheart @ lvkai Documents] $ ls
Experiment tmpLinux
[Quietheart @ lvkai Documents] $ cd experiment
Bash: cd: experiment: too many symbolic connections

After the above problem occurs, I checked the Internet. The problem also exists:

Title: ln command error: too many symbolic connections. Ask!

[Root @ localhost shell] # ls-ld ppptest1
Drwxr-xr-x 2 root 4096 11 comment  23 07:26 ppptest1
[Root @ localhost shell] # pwd
/Root/shell
[Root @ localhost shell] # ln-s./ppptest1./ceshi/ppptest1
[Root @ localhost shell] # cd ceshi/ppptest1
-Bash: cd: ceshi/ppptest1: too many symbolic connections.

The situation is as follows:

I will give a directory:/root/shell/ppptest1
A symbolic connection is established:/root/shell/ceshi/ppptest1, but the above error occurs when I access/root/shell/ceshi/ppptest1.

Check the results of ls-l/root/shell/ceshi/ppptest1 to see where to connect
[Root @ localhost shell] # ln-s./ppptest1./ceshi/ppptest1
Use an absolute path to create a symlink.

I can do this without any problems.
[Quietheart @ lvkai Documents] $ ln-s/media/FILES/_ lvkaiFile/z_filesInLinux/experiment // home/quietheart/Documents/
[Quietheart @ lvkai Documents] $ ls
Experiment tmpLinux
[Quietheart @ lvkai Documents] $ cd experiment/
[Quietheart @ lvkai experiment] $ ls
TestTDCPP_Solver20071027_success.rar
TestTDCPP_Solver20071027_success.rar_FILES
[Quietheart @ lvkai experiment] $

Original Author quietheart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.