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

(原)简易配置vim

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

         要想在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.

Avatar_small
BSE Odisha Model Pap 说:
2022年10月01日 20:57

Odisha Board Model Paper 2023 Pdf Download for School Education (Primary & Upper Primary) Secondary Education (BSE Odisha) and Council of Higher Secondary Education (CHSE) Sample Model Question Paper for Class 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 & 12 Standard Theory, Objective (MCQ) and Bit Questions to Odia Medium, English Medium and others. BSE Odisha Model Paper New Exam Scheme or Question Pattern for Sammittive Assignment Exams (SA1 & SA2): Very Long Answer (VLA), Long Answer (LA), Small Answer (SA), Very Small Answer (VSA), Single Answer, Multiple Choice and etc.

Avatar_small
WiFi Names 说:
2023年2月02日 23:59

Are you getting yourself a new WiFi router, then you might be happy because now you are able to set up your best WiFi names to your liking which is a funny act but a please to do indeed. WiFi Names Well as you already know that the The reason why people be objective about finding the best WiFi names for their new connections or routers is that they want some cool or funny names that make them feel nice and at the same time when your friends, family.


登录 *


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