(原)Ubuntu下安装vim完整版
(引)GNU make、automake、qmake 学习指引

(原)简易配置vim

孔令春 posted @ 2009年9月21日 04:37 in 杂七杂八 with tags 配置vim vimrc , 3383 阅读

         要想在vim下操作尽量符合咱们编程习惯,需要简易修改一下其配置文件,所在路径:/etc/vim/vimrc

命令:cd /etc/vim/                             ------进入vimrc所在路径

sudo cp vimrc vimrc.d            ------备份vimrc文件

sudo vim vimrc                       ------打开vimrc文件

添加选项:(在任意位置)       


"中文
set helplang=cn

"utf-8编码
set encoding=utf-8

"语法高亮
syntax enable
syntax on
colorscheme desert

"设置(软)制表符宽度为4:
set tabstop=4
set softtabstop=4

"设置缩进的空格数为4
set shiftwidth=4

"设置自动缩进:即每行的缩进值与上一行相等;使用 noautoindent 取消设置:
set autoindent

"设置使用 C/C++ 语言的自动缩进方式:
set cindent

"如果想在左侧显示文本的行号,可以用以下语句:
set nu!

 

 

 

 

Avatar_small
Spice money login 说:
2022年8月01日 20:31

Spice Money is a multidisciplinary digital and Banking Services, has been popularly in use by individuals. Spice Money login seen to promote banking services in rural areas with AePS, where the trending Apps don’t make their way. Having used this tool the individual can make their payments for different services such as Gas Bill, Electricity Bill, PAN card, and many others. Spice money login The banking services happen through Aadhaar Card like settlement, balance inquiry, money withdrawal and more easily processed using Spice Money. Spice Money is a multidisciplinary digital and Banking Services, has been popularly in use by individuals. Spice Money login seen to promote banking services in rural areas with AePS, where the trending Apps don’t make their way.

Avatar_small
Samagra Model Pool 说:
2022年9月07日 02:02

Here we give the Samagra question pool questions in PDF format. This help students with their reference. We provide the PDF of all chapters in a single file. Social Science, Biology, Chemistry, Maths questions in all chapters are available. Samagra Model Pool This PDF note is also helpful for the Kerala PSC exam. The new questions from Kerala PSC are from Samagra questions. Class 10 Samagara Question Pool is below. You can easily download it as a PDF file. The Samagra portal aims to give the study materials in digital form. Below we give the Samagra question pool. You can easily download or read the notes from here.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter