- 浏览: 3291698 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (567)
- Web前端-html/表单 (19)
- Web前端-CSS (24)
- Web前端-CSS框架 (4)
- Web前端-JS语言核心 (50)
- Web前端-JS客户端 (26)
- nodejs生态+grunt (10)
- seajs和requirejs (9)
- backbone等框架 (7)
- 模板基础 (7)
- Web前端-deps(不改动) (6)
- Web前端-component (10)
- Web前端-jquery-plugin (13)
- 浏览器兼容性 (6)
- Web前端-使用jQuery (25)
- Web前端-使用jqueryui (6)
- Web前端-性能优化 (3)
- Web协议-HTTP (6)
- ExtJS (13)
- PHP (22)
- PHP面向对象 (4)
- PHP扩展-SOAP (6)
- PHP扩展-curl (4)
- PHP与HTML(导出) (5)
- PHP扩展-综合 (7)
- mysql基础应用 (18)
- 技术心情 (18)
- 算法和面试题 (17)
- 工具(开发)使用 (36)
- memcached原理 (2)
- session和cookie (4)
- UML (2)
- Web前端_FusionCharts (5)
- Web前端_Flex (4)
- Web前端_JSP (3)
- JavaSE (10)
- JavaEE (4)
- tomcat (2)
- Servlet开发 (3)
- Spring开发 (1)
- REST相关 (2)
- 大访问量、高并发 (2)
- 网络编程 (1)
- YII (21)
- linux命令和内核 (12)
- yii与数据库 (10)
- yii与表单 (12)
- yii view层 (1)
- perl (7)
- yii扩展 (7)
- shell (4)
- photoshop (7)
- 视觉设计 (2)
- 我关注的名人在路上 (4)
- 1-自学能力 (1)
- 2-人际沟通能力 (3)
- 3-职业规划能力 (7)
- 4-项目管理能力 (2)
- python (3)
- django (4)
- Mysql高级应用 (6)
- prototype.js (4)
- Web系统安全 (1)
- Web前端-mobile (2)
- egret (6)
- jQuery源码分析 (5)
- fis (4)
最新评论
-
yzq21056563:
感谢作者分享~请教下,http://www.lisa33xia ...
CSS基础:text-overflow:ellipsis溢出文本 -
u012206458:
$.ajax的error,complete,success方法 -
DEMONU:
谢谢,虽然不能给你赞助,但是要给你顶
mysql中key 、primary key 、unique key 与index区别 -
njupt_tolmes:
阿凡达阿凡达阿凡达阿凡达阿凡达阿凡达阿凡达阿凡达阿凡达阿滕庆亚 ...
CSS基础:text-overflow:ellipsis溢出文本 -
zenmshuo:
用过SpreadJS,也包含数据可视化的图表
推荐几个web中常用js图表插件
作者:zccst
一、服务器端用户目录设置
批注:至此今天(2012-8-15),我才知道在linux上,每一个用户都有自己的一套环境,包括./vimrc,此外还有bashrc等。
代码颜色设置(文件夹颜色修改详见:http://zccst.iteye.com/blog/1901544)
复制下面代码到~/.vimrc。注意,我也同时追加代码到/etc/vimrc
版本二:
关于中文乱码:
1,修改远程linux机器的配置
vim /etc/sysconfig/i18n
把LANG改成支持UTF-8的字符集
如:
LANG=”zh_CN.UTF-8″
或者是
LANG=”en_US.UTF-8″
2,还有就是:客户端securecrt的设置了。会话-->Appearance-->字符编码 UTF-8
二、客户端设置
文件颜色设置
1,选择xterm.
options -> session options --> emulation
Terminal选项:xterm 勾上ANSI Color 包括use color scheme。
2,颜色方案
options -> session options -> appearance
选择traditional
3,全局配置
options -> Global Options -> ANSI Color
Normal colors 选择default。
应用即可。
如果没有显示出颜色,而且你确认你的终端支持颜色显示,请先退出VIM,输入如下命令:
TERM=xterm-color; export TREM
用于告诉VIM你的终端是支持颜色显示的。
退出secureCRT,重新登录,源码已经变为彩色了。
一、服务器端用户目录设置
批注:至此今天(2012-8-15),我才知道在linux上,每一个用户都有自己的一套环境,包括./vimrc,此外还有bashrc等。
代码颜色设置(文件夹颜色修改详见:http://zccst.iteye.com/blog/1901544)
复制下面代码到~/.vimrc。注意,我也同时追加代码到/etc/vimrc
" ============================================== " General settings " ============================================== set nocp set ru set nu "set cin "set cino = :0g0t0(sus set sm set ai set sw=4 set ts=4 set noet set lbr set hls "set backspace = indent , eol , start "set whichwrap = b , s , < , > , [ , ] "set fo+ = mB set selectmode = "set mousemodel = popup set keymodel = "set selection = inclusive "set matchpairs+ = " ============================================== " Cursor movement " ============================================== "nnoremap gj "nnoremap gk "vnoremap gj "vnoremap gk "inoremap gj "inoremap gk "nnoremap g$ "nnoremap g0 "vnoremap g$ "vnoremap g0 "inoremap g$ "inoremap g0 "nmap :confirm bd "vmap :confirm bd "omap :confirm bd "map! :confirm bd syntax on set foldmethod=syntax if (has( " gui_running " )) set nowrap set guioptions+=b colo inkpot else set wrap colo ron endif "let mapleader = " , " if !has("gui_running") set t_Co=8 set t_Sf=^[[3%p1%dm set t_Sb=^[[4%p1%dm endif
版本二:
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Maintainer: " Amir Salihefendic " http://amix.dk - amix@amix.dk " " Version: " 5.0 - 29/05/12 15:43:36 " " Blog_post: " http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github " " Awesome_version: " Get this config, nice color schemes and lots of plugins! " " Install the awesome version from: " " https://github.com/amix/vimrc " " Syntax_highlighted: " http://amix.dk/vim/vimrc.html " " Raw_version: " http://amix.dk/vim/vimrc.txt " " Sections: " -> General " -> VIM user interface " -> Colors and Fonts " -> Files and backups " -> Text, tab and indent related " -> Visual mode related " -> Moving around, tabs and buffers " -> Status line " -> Editing mappings " -> vimgrep searching and cope displaying " -> Spell checking " -> Misc " -> Helper functions " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => General """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Sets how many lines of history VIM has to remember set history=700 " Enable filetype plugins filetype plugin on filetype indent on " Set to auto read when a file is changed from the outside set autoread " With a map leader it's possible to do extra key combinations " like <leader>w saves the current file let mapleader = "," let g:mapleader = "," " Fast saving nmap <leader>w :w!<cr> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => VIM user interface """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Set 7 lines to the cursor - when moving vertically using j/k set so=7 " Turn on the WiLd menu set wildmenu " Ignore compiled files set wildignore=*.o,*~,*.pyc "Always show current position set ruler " Height of the command bar set cmdheight=2 " A buffer becomes hidden when it is abandoned set hid " Configure backspace so it acts as it should act set backspace=eol,start,indent set whichwrap+=<,>,h,l " Ignore case when searching set ignorecase " When searching try to be smart about cases set smartcase " Highlight search results set hlsearch " Makes search act like search in modern browsers set incsearch " Don't redraw while executing macros (good performance config) set lazyredraw " For regular expressions turn magic on set magic " Show matching brackets when text indicator is over them set showmatch " How many tenths of a second to blink when matching brackets set mat=2 " No annoying sound on errors set noerrorbells set novisualbell set t_vb= set tm=500 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Colors and Fonts """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Enable syntax highlighting syntax enable colorscheme desert set background=dark " Set extra options when running in GUI mode if has("gui_running") set guioptions-=T set guioptions+=e set t_Co=256 set guitablabel=%M\ %t endif " Set utf8 as standard encoding and en_US as the standard language set encoding=utf8 " Use Unix as the standard file type set ffs=unix,dos,mac """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Files, backups and undo """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Turn backup off, since most stuff is in SVN, git et.c anyway... set nobackup set nowb set noswapfile """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Text, tab and indent related """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Use spaces instead of tabs set expandtab " Be smart when using tabs ;) set smarttab " 1 tab == 4 spaces set shiftwidth=4 set tabstop=4 " Linebreak on 500 characters set lbr set tw=500 set ai "Auto indent set si "Smart indent set wrap "Wrap lines """""""""""""""""""""""""""""" " => Visual mode related """""""""""""""""""""""""""""" " Visual mode pressing * or # searches for the current selection " Super useful! From an idea by Michael Naumann vnoremap <silent> * :call VisualSelection('f')<CR> vnoremap <silent> # :call VisualSelection('b')<CR> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Moving around, tabs, windows and buffers """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Treat long lines as break lines (useful when moving around in them) map j gj map k gk " Map <Space> to / (search) and Ctrl-<Space> to ? (backwards search) map <space> / map <c-space> ? " Disable highlight when <leader><cr> is pressed map <silent> <leader><cr> :noh<cr> " Smart way to move between windows map <C-j> <C-W>j map <C-k> <C-W>k map <C-h> <C-W>h map <C-l> <C-W>l " Close the current buffer map <leader>bd :Bclose<cr> " Close all the buffers map <leader>ba :1,1000 bd!<cr> " Useful mappings for managing tabs map <leader>tn :tabnew<cr> map <leader>to :tabonly<cr> map <leader>tc :tabclose<cr> map <leader>tm :tabmove " Opens a new tab with the current buffer's path " Super useful when editing files in the same directory map <leader>te :tabedit <c-r>=expand("%:p:h")<cr>/ " Switch CWD to the directory of the open buffer map <leader>cd :cd %:p:h<cr>:pwd<cr> " Specify the behavior when switching between buffers try set switchbuf=useopen,usetab,newtab set stal=2 catch endtry " Return to last edit position when opening files (You want this!) autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif " Remember info about open buffers on close set viminfo^=% """""""""""""""""""""""""""""" " => Status line """""""""""""""""""""""""""""" " Always show the status line set laststatus=2 " Format the status line set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Editing mappings """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Remap VIM 0 to first non-blank character map 0 ^ " Move a line of text using ALT+[jk] or Comamnd+[jk] on mac nmap <M-j> mz:m+<cr>`z nmap <M-k> mz:m-2<cr>`z vmap <M-j> :m'>+<cr>`<my`>mzgv`yo`z vmap <M-k> :m'<-2<cr>`>my`<mzgv`yo`z if has("mac") || has("macunix") nmap <D-j> <M-j> nmap <D-k> <M-k> vmap <D-j> <M-j> vmap <D-k> <M-k> endif " Delete trailing white space on save, useful for Python and CoffeeScript ;) func! DeleteTrailingWS() exe "normal mz" %s/\s\+$//ge exe "normal `z" endfunc autocmd BufWrite *.py :call DeleteTrailingWS() autocmd BufWrite *.coffee :call DeleteTrailingWS() """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => vimgrep searching and cope displaying """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " When you press gv you vimgrep after the selected text vnoremap <silent> gv :call VisualSelection('gv')<CR> " Open vimgrep and put the cursor in the right position map <leader>g :vimgrep // **/*.<left><left><left><left><left><left><left> " Vimgreps in the current file map <leader><space> :vimgrep // <C-R>%<C-A><right><right><right><right><right><right><right><right><right> " When you press <leader>r you can search and replace the selected text vnoremap <silent> <leader>r :call VisualSelection('replace')<CR> " Do :help cope if you are unsure what cope is. It's super useful! " " When you search with vimgrep, display your results in cope by doing: " <leader>cc " " To go to the next search result do: " <leader>n " " To go to the previous search results do: " <leader>p " map <leader>cc :botright cope<cr> map <leader>co ggVGy:tabnew<cr>:set syntax=qf<cr>pgg map <leader>n :cn<cr> map <leader>p :cp<cr> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Spell checking """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Pressing ,ss will toggle and untoggle spell checking map <leader>ss :setlocal spell!<cr> " Shortcuts using <leader> map <leader>sn ]s map <leader>sp [s map <leader>sa zg map <leader>s? z= """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Misc """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Remove the Windows ^M - when the encodings gets messed up noremap <Leader>m mmHmt:%s/<C-V><cr>//ge<cr>'tzt'm " Quickly open a buffer for scripbble map <leader>q :e ~/buffer<cr> " Toggle paste mode on and off map <leader>pp :setlocal paste!<cr> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Helper functions """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" function! CmdLine(str) exe "menu Foo.Bar :" . a:str emenu Foo.Bar unmenu Foo endfunction function! VisualSelection(direction) range let l:saved_reg = @" execute "normal! vgvy" let l:pattern = escape(@", '\\/.*$^~[]') let l:pattern = substitute(l:pattern, "\n$", "", "") if a:direction == 'b' execute "normal ?" . l:pattern . "^M" elseif a:direction == 'gv' call CmdLine("vimgrep " . '/'. l:pattern . '/' . ' **/*.') elseif a:direction == 'replace' call CmdLine("%s" . '/'. l:pattern . '/') elseif a:direction == 'f' execute "normal /" . l:pattern . "^M" endif let @/ = l:pattern let @" = l:saved_reg endfunction " Returns true if paste mode is enabled function! HasPaste() if &paste return 'PASTE MODE ' en return '' endfunction " Don't close window, when deleting a buffer command! Bclose call <SID>BufcloseCloseIt() function! <SID>BufcloseCloseIt() let l:currentBufNum = bufnr("%") let l:alternateBufNum = bufnr("#") if buflisted(l:alternateBufNum) buffer # else bnext endif if bufnr("%") == l:currentBufNum new endif if buflisted(l:currentBufNum) execute("bdelete! ".l:currentBufNum) endif endfunction
关于中文乱码:
1,修改远程linux机器的配置
vim /etc/sysconfig/i18n
把LANG改成支持UTF-8的字符集
如:
LANG=”zh_CN.UTF-8″
或者是
LANG=”en_US.UTF-8″
2,还有就是:客户端securecrt的设置了。会话-->Appearance-->字符编码 UTF-8
二、客户端设置
文件颜色设置
1,选择xterm.
options -> session options --> emulation
Terminal选项:xterm 勾上ANSI Color 包括use color scheme。
2,颜色方案
options -> session options -> appearance
选择traditional
3,全局配置
options -> Global Options -> ANSI Color
Normal colors 选择default。
应用即可。
如果没有显示出颜色,而且你确认你的终端支持颜色显示,请先退出VIM,输入如下命令:
TERM=xterm-color; export TREM
用于告诉VIM你的终端是支持颜色显示的。
退出secureCRT,重新登录,源码已经变为彩色了。
发表评论
-
如何安装chrome扩展,以json-handle为例
2015-06-24 20:03 15833作者:zccst chrome插件安装 方式一,在线安装 直 ... -
如何停掉无法响应被关闭的eclipse启动的tomcat
2015-06-11 16:10 8700作者:zccst 问: 我的eclipse启动了tomcat后 ... -
如何导入google-style-guide-javascript-eclipse.xml到eclipse里?
2015-06-02 20:16 3942作者:zccst 如何导入google-style-gui ... -
git代码管理原理
2015-03-11 18:48 10363作者:zccst SVN用得很熟 ... -
Git常用命令备忘[转载]
2015-03-10 20:01 825Git常用命令备忘[转载] Git配置 git config ... -
git命令使用(自己总结)
2015-02-12 16:37 1653作者:zccst 查看远程 ... -
献给网页开发者的20款Firefox插件
2014-11-26 18:54 1068作者:zccst 献给网页开发者的20款Firefox插件 ... -
打开MPP格式文件的十种方法
2014-09-28 18:03 6949zccst转载 Microsoft Project ... -
windows下查看端口占用情况
2014-08-20 18:51 730作者:zccst 1.查看所有的端口占用情况 C:\> ... -
windows下使用github上传下载文件和文件夹
2014-08-19 16:51 7993作者:zccst 1,下载客户端,安装 生成两个,一个是界 ... -
也开始使用高大上的在线SVN了
2014-07-18 19:17 1294作者:zccst 截至目前,我发现自己只是代码的搬运工,连 ... -
最近使用的几个开发利器
2014-07-02 10:39 954作者:zccst 最近又学习到几个在开发过程中可以提高效率的 ... -
windows eclipse svn分支代码合并至主干的方法
2014-06-26 15:26 5799作者:zccst 之前一直是用Linux环境合并代码,现在 ... -
Editplus快捷键
2013-07-18 13:59 1626作者:zccst 2014-09-10 ... -
Editplus支持sql语法高亮显示
2013-07-18 13:30 1656作者:zccst (之前找到的这种方法不行:在editpl ... -
eclipse下安装svn插件
2013-07-16 18:08 1054作者:zccst SVN插件下载地址及更新地址,你根据需要选 ... -
linux文本模式下修改文件夹颜色
2013-07-08 18:30 2983作者:zccst 1.cp /etc/DIR_COLORS ... -
Word2007—如何快速提取文档中的图片
2013-05-29 17:16 1203如果你想提取一份word文档中图片,一张张的获取太麻烦了,有没 ... -
zend Studio 插件卸载
2013-04-10 20:10 3626zccst转载 由于7.0开始的eclipse中help菜单 ... -
[svn] merge使用
2013-04-01 17:53 2492作者:zccst 分支1:待上线(new_branch) 分 ...
相关推荐
securecrt设置字体颜色
SecureCRT颜色设置-推荐.docx
ubuntu的secureCRT的ssh设置ubuntu的secureCRT的ssh设置ubuntu的secureCRT的ssh设置
SecureCRT的设置,本文主要介绍SecureCRT的使用方法和技巧
SecureCRT和SecureFx设置中文乱码参考.pdf
岛主精品! 让SecureCRT 不再单调,以彩色方式显示网络相关的关键字,不必再面对单调的命令行界面,网工必备。 目前你能百度到的95%教程都是基于我这个内容。 1.2 版本增加了光模块光衰等配色。
有时SecureCRT窗口在输出串口信息或代码时,想要快速找到或定位某些关键字,本文将提供详细介绍
SecureCRT保存日志设置1
SecureCRT中文免安装版修改字体颜色-附件资源
SecureCRT配置颜色添加colorful-network脚本
SecureCRT和SecureFx设置中文乱码.docx
SecureCRT 关键字配色显示方案是为了各类网络设备的输出结果所做,不是为了输入
SecureCRT 7.3最佳颜色配置
secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用secureCRT串口使用
SecureCRTSecureCRT SecureCRT
SecureCRT 可以直接登录linux等服务器 便于操作管理
SecureCRT
SecureCRT 配色方案
脚本实现securecrt语法高亮 之前要实现securtcrt语法高亮要纯手工云设置,很麻烦,使用脚本则小白都可实现,只要在securtcrt菜单栏选择script-->run,在弹出的对话框中选择highlight.py,这是会让选择高亮语法的配置...
secureCRT设置自动保存log.pdf