码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu16.04下c编程环境配置及vim基本配置

时间:2018-03-04 19:06:53      阅读:408      评论:0      收藏:0      [点我收藏+]

标签:search   boa   line   enc   ++   his   兼容   ble   文件的   

配置编程环境:sudo apt-get install vim

                        sudo apt-get install g++

                        sudo apt-get install gdb

        

vim环境配置:set nocompatible                                       "vim比vi支持更多的功能,为了避免冲突,最好关闭兼容

                       set encoding=utf-8                                    "使用uhf-8编码格式

                       set showcmd                                             "显示输入命令

                       set clipboard=unnamed,unnamedplus      "可以从vim复制到剪贴板

                       set nu                                                        "显示当前行

                       set tabstop=4                                            "设置tab长度为4

                       set nobackup                                            "覆盖文件时不备份

                       set cursorline                                            "突出显示当前行

                       set ruler                                                    "在右下角显示光标位置的状态行(行号和列号)

                       set autoindent                                           "自动缩进

                       set hlsearch                                              "显示高亮搜索

                       set history=100                                         "指令记录

                       set background=dark                                "设置背景颜色,有两种,dark 和 light ,dark为深色模式,light为浅色模式

                       set background=light                                 "设置背景颜色为浅色模式

                       syntax on                                                  "显示语法高亮

                       syntax enable                                            "显示语法高亮,同syntax on

 

vim的配置环境在文件vimrc中

以“只读”方式进入vimrc文件的命令:vim /etc/vim/vimrc

如果想要对vimrc文件进行写操作,必须使用sudo命令:sudo vim /etc/vim/vimrc

ubuntu16.04下c编程环境配置及vim基本配置

标签:search   boa   line   enc   ++   his   兼容   ble   文件的   

原文地址:https://www.cnblogs.com/latup/p/8505446.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!