分页: 1 / 1

我的控制台没有颜色呢?

发表于 : 2005-07-11 20:31
wwwlion
我发现我的控制台界面,没有颜色的,很不方便,分不清楚那个是目录,那个是什么文件?是我机器的问题,还是ubuntu下都这样?

发表于 : 2005-07-11 20:42
yongyi
viewtopic.php?t=362&highlight=vim

viewtopic.php?t=855&highlight=vim

不过,好像你是在说目录和文件??怎么我这有颜色的?

发表于 : 2005-07-11 20:46
lyreopera
我的好像也有的样子……

发表于 : 2005-07-11 21:27
wwwlion
哈哈,是因为我~/文件全部丢失的原因吧。
谢谢Yongyi,安装你提供方法,加了个~/.bashrc文件后。ls就可以有颜色了。

发表于 : 2005-07-11 21:42
yongyi
wwwlion 写了:哈哈,是因为我~/文件全部丢失的原因吧。
谢谢Yongyi,安装你提供方法,加了个~/.bashrc文件后。ls就可以有颜色了。
呵呵,,你是xfce4那个? 8)

Re: 我的控制台没有颜色呢?

发表于 : 2009-05-24 2:22
linuxleio
#vim /etc/vim/vimrc:

" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd " Show (partial) command in status line.
"set showmatch " Show matching brackets.
"set ignorecase " Do case insensitive matching
"set smartcase " Do smart case matching
"set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)


"========================================================================"
"show lines by leio 2008
set nu
"设定文件编码
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
"开启语法加亮
syntax on
"bash shell配色风格
"colorscheme desert
"colorscheme evening
"colorscheme pablo
"设定行距 GUI界面中生效
set linespace=4
"设定GUI选项
"set guioptions=gmrLtT m:菜单 T:工具栏
set guioptions=gmrLt
"设置自动缩进
set ai
"设定Tab键缩进的空格数
"set tabstop=4
"设定编辑器将多少空格视为一个缩进
"set shiftwidth=4
"将缩进转换为空格
"set expandtab
"设定折叠方式
"set foldmethod=indent
"以下字符将被视为单词的一部分 (ASCII):
"set iskeyword+=33-47,58-64,91-96,123-128
"================================================================"

" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif

Re: 我的控制台没有颜色呢?

发表于 : 2009-08-19 20:09
tusooa
ls --color=auto