[已存]我的Linux使用环境

VIM配置如下:

默认配置:

set bg=dark    " 设置背景色深淡。影响批注颜色

set hlsearch    " 高亮度反白搜索结果

VIM配置路径:$HOME/.vimrc

我的VIM配置:

set tabstop=4           " 制表符为4
set expandtab           " Tab用空格填充
set nobackup            " 不产生备份文件
set fileencodings=utf-8,gbk     " 支持打开某格式的文件

"===========================================================================
" 设置C开发环境
"===========================================================================
set shiftwidth=4       " SHIFT缩进长度
set autoindent          " 继承前一行的缩进方式
"set smartindent         " 智能缩进
syntax on                " 语法高亮

"===========================================================================
" 代码折叠
" 1.manual      " 手工定义折叠
" 2.indent      " 用缩进表示折叠
" 3.expr        " 用表达式来定义折叠
" 4.syntax      " 用语法高亮来定义折叠
" 5.diff        " 对没有更改的文本进行折叠
" 6.marker      " 用标志折叠
"===========================================================================
set foldmethod=indent   " 用缩进表示折叠
set foldlevelstart=99   " 打开文件时默认不折叠代码
nnoremap <space> @=((foldclosed(line('.'))<0)?'zc':'zo')<CR>    " 用空格键来开关折叠
" 按F5键插入当前时间
inoremap <F5> <C-R>=strftime("%F %T")<CR>

"===========================================================================
" 设置VUE开发环境
"===========================================================================
au BufNewFile,BufRead *.html,*.vue set tabstop=2
au BufNewFile,BufRead *.html,*.vue set softtabstop=2
au BufNewFile,BufRead *.html,*.vue set shiftwidth=2
au BufNewFile,BufRead *.html,*.vue set expandtab
au BufNewFile,BufRead *.html,*.vue set autoindent
au BufNewFile,BufRead *.html,*.vue set fileformat=unix

编辑:~/.bash_profile
添加:
# 语法真正高亮显示,而非下划线显示
export TERM=xterm-color

附:SecureCRT部分设置:
1、ANSI颜色设置:
选项-->会话选项-->终端-->仿真,选用“Linux”终端,勾选“ANSI颜色”复选框
选项-->全局选项-->终端-->外观-->ANSI颜色
(1)标准颜色
       ① 背景颜色:色调86/饱和度78/亮度61
(2)粗体颜色
       ⑤ 关键字及常规目录颜色:色调40/饱和度240/亮度180

原文地址:https://www.cnblogs.com/alwu007/p/2826052.html