• mini vimrc


     Mini version:

    set enc=utf-8 ffs=unix,dos,mac lm=zh_CN.utf-8
    set nu nowb nocp nowrap ru nobk sm is noswf acd hls autoread 
    set hi=700 mouse=a sel=exclusive slm=mouse,key
    set cin sta et ai si ts=4 bs=2 sw=4 sts=4
    set guifont=DejaVu Sans Mono 14
    colorscheme desert
    syntax on
    filetype indent plugin on
    map <C-s> <ESC>:wall<CR>

    Full version:

    "----Encoding setting----
    set enc=utf-8                   "encoding
    set ffs=unix,dos,mac            "fileformats
    set lm=zh_CN.utf-8              "langmenu
    
    "----Basic function----
    set nu                          "number
    set nowb                        "nowritebackup  禁止自动保存
    set nocp                        "nocompatible   去除vi一致性
    set ru                          "ruler          显示标尺
    set nobk                        "nobackup       禁止缓冲保存
    set sm                          "showmatch      符号自动匹配
    set is                          "incsearch      搜索增强模式
    set noswf                       "noswapfile     去除swap文件
    set hi=700                      "history        最大历史记录
    set acd                         "autochdir      设置为当前文件目录
    set hls                         "highlightsearch 高亮搜索
    set ar                          "autoread       自动读文件
    "----Mouse setting----
    set mouse=a                     "mouse          鼠标模式
    set sel=exclusive               "selection      不包含最后的换行符
    set slm=mouse,key               "selectmode     选择模式
    
    "----Indent habit----
    set nowrap                      "nowrap         不自动换行
    set cin                         "cindent        C格式缩进
    set sta                         "smarttab       智能tab
    set et                          "expandtab      tab=backspace
    set ts=4                        "tabstop        tab=4个字符
    set ai                          "autoindent     自动缩进
    set si                          "smartindent    智能缩进
    set bs=2                        "backspace      =indent,eol,start
    set sw=4                        "shiftwidth     自动缩进设置为4个字符
    set sts=4                       "softtabstop    按一次tab 前进4个字符
    
    "一键ctrl+s保存
    map <C-s> <ESC>:wall<CR>
    
    "----Theme setting----
    syntax on                       "开启高亮
    colorscheme desert              "主题配色
    set guifont=DejaVu Sans Mono 14
    
    "----Autoread the text----  
    filetype on                     "自动识别文件类型
    

      

  • 相关阅读:
    linux常用命令:
    解决css添加padding后元素变长的问题
    Hbase常用命令
    集群部署的三种方式(hadoop集群部署三种方式)
    linux编译安装指定依赖的软件包
    vue使用Element隐藏侧边栏进度条
    css相对于父容器,固定放在底部并撑满
    java中23种设计模式
    adb remount'的作用是什么?在什么情况下有用?
    java常用http请求库
  • 原文地址:https://www.cnblogs.com/Felix-F/p/3867549.html
Copyright © 2020-2023  润新知