FreeBSD Security Vim

Source: Internet
Author: User
Tags set background

 

FreeBSD Security Vim
FreeBSD Security Vim

[FreeBSD Vim]

1. CD/usr/ports/Editors/Vim

2. Make-dwithout_x11 install clean # Vim

3. CD/root

4. VI. vimrc # Add preference settings

5. Note! Do not import the Chinese interpretation of the following data. Otherwise, the loss occurs.
Set cindent
Set ENC = Taiwan
Set fileencoding = Taiwan
Set HLS
Set nocompatible # English cannot appear in the direction
Set Sw = 2
Set guifontset = 8x16, kc15f,-*-16-*-big5-0 # Set zh_tw.big5 locale
Syntax on
Highlight comment ctermfg = darkcyan
Highlight search term = reverse ctermbg = 4 ctermfg = 7

6. CP. vimrc/home/usr # Set a copy of. vimrc to existing users.

7. CP. vimrc/usr/share/skel/DOT. vimrc # added dynamic route for upload in the future.

* Take tcsh as an example:

After the user logs in, the/etc/CSH. cshrc &/etc/CSH. login will be retrieved.

1. VI/etc/CSH. cshrc

2. setenv editor Vim # change the setenv editor to VIM.
Alias VI Vim # When importing VI, VIM is used as the timer.

3. VI/etc/CSH. Login

4.
# The receiver can import Chinese characters.
Setenv enable_startup_locale zh_tw.big5
Setenv lc_ctype is_IS.ISO8859-1
Setenv Lang zh_tw.big5
# Importing Chinese characters to the console

# 5.x is_IS.ISO8859-1
# 4.x is_IS.ISO_8859-1

Zh_TW.UTF-8

5./usr/share/skel/DOT. cshrc & dot. Login

# You can add the above settings as the settings for adding new hosts in the future.

Paulnet.bbs@wretch.twbbs.org

Additional information:
Http://netlab.cse.yzu.edu.tw /~ Statue/FreeBSD/ZH-Tut/vim.html-vi
FreeBSD 5.x architecture management and application-Wang junbin

Cause:
ERICJ.bbs@ysmis.twbbs.org
Adios.bbs@bbs.comm.ccu.edu.tw

Draft-

--
Just make a note
You can add
If your background is black, you can add the following lines to make it clearer.
Set background = dark
Change the tab space to 8
Set expandtab
Set shiftwidth = 4
Set softtabstop = 4
Set tabstop = 4
--

From above
Http://phorum.study-area.org/index.php/topic,25722.html

19.3. vim-VI Import and Export Tool

It includes some features that are similar to VI but not available in celvis-1.3, such as line feed, back-to-line loading, and major features that can be written into Chinese.

Security guardEditors/Vim
.

I know someone is very familiar with using vim, because we still need to use X. In practice, you only need to useMake-dwithout_x11 install
Only the text version of VIM can be installed.

After installing ports/Editors/vim. Vimrc
:

Set fileencoding = Taiwan

Set guifontset = 8x16, kc15f,-*-16-*-big5-0

And set the locale of zh_tw.big5. In this way, the child can delete a Chinese text at a time.

The following are the suggestions

Set cindent

Set ENC = Taiwan

Set fileencoding = Taiwan

Set HLS

Set nocompatible

Set Sw = 2

Syntax on

Highlight comment ctermfg = darkcyan

Highlight search term = reverse ctermbg = 4 ctermfg = 7

Suggested use during the eventEnv term = xterm-color Vim
, This beautiful colors will come out.

If you think the color is too dark, you can use: Set background = dark
.

Drawing from http://netlab.cse.yzu.edu.tw /~ Statue/FreeBSD/ZH-Tut/vim.html

Hls is hlsearch, which is the deployment planner of highlight search. Address: http://magicalloveshe.blogspot.com/2008/06/freebsd-vim.html

Related Article

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.