zoukankan      html  css  js  c++  java
  • ubuntu16.04下c编程环境配置及vim基本配置

    配置编程环境: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

  • 相关阅读:
    java + jni + mingw实例开发(基于命令行窗口模式)
    OpenCv for Android
    Android图像处理实例教程
    eclipse使用技巧
    Android NDK开发实例教程
    Android开发的教程和资源
    JAVA安装,环境变量配置
    一些比较好的博客
    uwsgi启动Django项目时:unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode ***
    robot中使用evaluate转化数据格式
  • 原文地址:https://www.cnblogs.com/OoycyoO/p/8505446.html
Copyright © 2011-2022 走看看