- 浏览: 13763766 次
- 性别:
- 来自: 洛杉矶
-
文章分类
- 全部博客 (1994)
- Php / Pear / Mysql / Node.js (378)
- Javascript /Jquery / Bootstrap / Web (435)
- Phone / IOS / Objective-C / Swift (137)
- Ubuntu / Mac / Github / Aptana / Nginx / Shell / Linux (335)
- Perl / Koha / Ruby / Markdown (8)
- Java / Jsp (12)
- Python 2 / Wxpython (25)
- Codeigniter / CakePHP (32)
- Div / Css / XML / HTML5 (179)
- WP / Joomla! / Magento / Shopify / Drupal / Moodle / Zimbra (275)
- Apache / VPN / Software (31)
- AS3.0/2.0 / Flex / Flash (45)
- Smarty (6)
- SEO (24)
- Google / Facebook / Pinterest / SNS (80)
- Tools (22)
最新评论
-
1455975567:
xuezhongyu01 写道wocan23 写道我想问下那个 ...
Mysql: LBS实现查找附近的人 (两经纬度之间的距离) -
xuezhongyu01:
wocan23 写道我想问下那个111.1是怎么得来的我也看不 ...
Mysql: LBS实现查找附近的人 (两经纬度之间的距离) -
18335864773:
试试 pageoffice 在线打开 PDF 文件吧. pag ...
jquery在线预览PDF文件,打开PDF文件 -
青春依旧:
opacity: 0.5; 个人喜欢这种方式!关于其他css特 ...
css透明度的设置 (兼容所有浏览器) -
July01:
推荐用StratoIO打印控件,浏览器和系统的兼容性都很好,而 ...
搞定网页打印自动分页问题
/etc/vim/vimrc
set nocompatible " use vim defaults set backspace=2 "make backspace like most other apps set ls=2 " allways show status line set tabstop=5 " numbers of spaces of tab character set shiftwidth=5 " numbers of spaces to (auto)indent set scrolloff=5 " keep 3 lines when scrolling set showcmd " display incomplete commands set hlsearch " highlight searches set incsearch " do incremental searching set ruler " show the cursor position all the time set visualbell t_vb= " turn off error beep/flash set novisualbell " turn off visual bell set nobackup " do not keep a backup file set number " show line numbers set ignorecase " ignore case when searching "set noignorecase " don't ignore case set title " show title in console title bar set ttyfast " smoother changes "set ttyscroll=0 " turn off scrolling, didn't work well with PuTTY set modeline " last lines in document sets vim mode set modelines=3 " number lines checked for modelines set shortmess=atI " Abbreviate messages set nostartofline " don't jump to first character when paging set whichwrap=b,s,h,l,<,>,[,] " move freely between files "set viminfo='20,<50,s10,h set mouse=a set fileencodings=utf-8,gb2312,gbk,gb18030 set termencoding=utf-8 set encoding=prc colorscheme desert set autoindent " always set autoindenting on set smartindent " smart indent set cindent " cindent "set noautoindent "set nosmartindent "set nocindent "set autowrite " auto saves changes when quitting and swiching buffer "set expandtab " tabs are converted to spaces, use only when required "set sm " show matching braces, somewhat annoying... "set nowrap " don't wrap lines highlight Normal guibg=grey90 highlight Cursor guibg=Green guifg=NONE highlight NonText guibg=grey80 highlight Constant gui=NONE guibg=grey95 highlight Special gui=NONE guibg=grey95 " Color settings for the cursor (different colors for insert mode) " Modified for black "highlight Cursor guifg=white guibg=black "highlight Cursor guifg=red guibg=lightgreen highlight Cursor guifg=white guibg=black highlight iCursor guifg=white guibg=black " Cursor shape (insert => vertical line) set guicursor=n-v-c:block-Cursor "set guicursor+=i:ver30-iCursor " Gui background color " highlight Normal guibg=lightblue " highlight Normal guibg=lightyellow " highlight Normal guibg=#fffddd " highlight Normal guibg=#99cccc " highlight Normal guibg=lightmagenta " highlight Normal guibg=lightgreen " Modified for black highlight Normal guibg=#eeeeee highlight Normal guibg=white guifg=darkblue highlight Normal guibg=black guifg=white highlight Visual guibg=black " highlight Visual guibg=lightmagenta :highlight Normal ctermfg=grey ctermbg=black syntax on " syntax highlighing if has("gui_running") " See ~/.gvimrc set guifont=Monospace\ 10 " use this font set lines=50 " height = 50 lines set columns=100 " width = 100 columns set background=light " adapt colors for background set selectmode=mouse,key,cmd " set keymodel= else " colorscheme elflord " use this color scheme set background=dark " adapt colors for background endif if has("autocmd") " Restore cursor position au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif " Filetypes (au = autocmd) au FileType helpfile set nonumber " no line numbers when viewing help au FileType helpfile nnoremap <buffer><cr> <c-]> " Enter selects subject au FileType helpfile nnoremap <buffer><bs> <c-T> " Backspace to go back " When using mutt, text width=72 au FileType mail,tex set textwidth=72 au FileType cpp,c,java,sh,pl,php,asp set autoindent au FileType cpp,c,java,sh,pl,php,asp set smartindent au FileType cpp,c,java,sh,pl,php,asp set cindent "au BufRead mutt*[0-9] set tw=72 " Automatically chmod +x Shell and Perl scripts "au BufWritePost *.sh !chmod +x % "au BufWritePost *.pl !chmod +x % " File formats au BufNewFile,BufRead *.pls set syntax=dosini au BufNewFile,BufRead modprobe.conf set syntax=modconf endif
others
" use extended function of vim (no compatible with vi) set nocompatible " specify encoding set encoding=euc-jp " specify file encoding set fileencodings=iso-2022-jp,sjis " specify file formats set fileformats=unix,dos " take backup " if not, specify [ set nobackup ] set backup " specify backup directory set backupdir=~/backup " take 50 search histories set history=50 " ignore Case set ignorecase " distinct Capital if you mix it in search words set smartcase " highlights matched words " if not, specify [ set nohlsearch ] set hlsearch " use incremental search " if not, specify [ set noincsearch ] set incsearch " show line number " if not, specify [ set nonumber ] set number " Visualize break ( $ ) or tab ( ^I ) set list " highlights parentheses set showmatch " show color display " if not, specify [ syntax off ] syntax on " change colors for comments if it's set [ syntax on ] highlight Comment ctermfg=LightCyan " wrap lines " if not, specify [ set nowrap ] set wrap
发表评论
-
如何直接在github上预览html网页效果
2016-08-30 02:20 12755在github上托管的项目, 经常会存放一些demo的htm ... -
如何备份及恢复 Linux 文件权限
2016-08-26 02:29 1079你可能听说或碰到过这样的事情:一个系统管理员菜鸟不小心输入” ... -
Linux: 近100个常用命令大全
2016-08-17 11:37 19061.ls [选项] [目录名 | 列出相关目录下的所有目录和 ... -
Linux: terminal 终端生存指南
2016-08-17 11:32 3564完全利用Linux终端处理日常工作并非易事,但其可行性却是不 ... -
Linux: 利用 Alpine 在命令行里访问 Gmail
2016-08-17 11:30 1450假如你是一个命令行爱好者,我很确信你会使用这个强大的工作环境 ... -
Linux: chmod 和 chown用法小结
2016-08-16 05:38 935chmod chmod指令是更 ... -
Linux: 系统文件权限总结
2016-08-16 05:39 809在 Linux 中最基本的 ... -
Linux: 系统结构详解
2016-08-16 05:38 884Linux系统一般有4个 ... -
开启Windows或者Mac OSX 本地服务器 (非安装第三方服务器软件)
2016-07-21 01:52 2184因为安全的原因,无法直接在浏览器中打开工程目录下的index ... -
Ubuntu: 安装 Sublime Text 2 或者 3 How to Install Sublime Text 2 or 3 in Ubuntu 15.0
2016-07-20 13:44 1076Sublime Text is a cross- ... -
用Vim编程——配置与技巧
2016-06-25 06:59 2144本文介绍如何用强大的文本编辑器 Vim编程。只要配置得当,效 ... -
无插件Vim编程技巧
2016-06-14 05:42 1010相信大家看过《简明Vim教程》也玩了《Vim大冒险》 的游戏 ... -
Vimrc设置教程:A Good Vimrc (英文)
2016-06-14 05:33 1176How To Vimrc There is just o ... -
Linux Shell脚本入门教程系列之(十六) Shell输入输出重定向
2016-06-14 05:21 1039本文是Linux Shell系列教程的第(十六)篇,更多 ... -
Linux Shell脚本入门教程系列之(十五) Shell函数简介
2016-06-14 05:19 1037本文是Linux Shell脚本系列教程的第(十五)篇, ... -
Linux Shell脚本入门教程系列之(十四) Shell Select教程
2016-06-10 02:28 1117本文是Linux Shell脚本系列教程的第(十四)篇, ... -
Linux Shell脚本入门教程系列之(十三)Shell分支语句case … esac教程
2016-06-10 02:28 1979本文是Linux Shell脚本 ... -
Linux Shell脚本入门教程系列之(十二)Shell until循环
2016-06-10 02:26 1071本文是Linux Shell脚本系列教程的第(十二)篇, ... -
Linux Shell脚本入门教程系列之(十一)Shell while循环
2016-06-10 02:24 1185本文是Linux Shell脚本系列教程的第(十一)篇, ... -
Linux Shell脚本入门教程系列之(十)Shell for循环
2016-06-10 02:22 783本文是Linux Shell脚本系列教程的第(十)篇,更 ...
相关推荐
:改善 vim 对 js 的高亮和语法支持。 :直接拷贝的,并修改、添加了对 self 的支持。 :语法检查。 :检查python代码是否符合 pep8规范。 :插件管理。 : indent improved : zen coding in vim, a tutorial is here ...
vim myvimrepo(old vim setting)相关设定说明$\vim\vimrc Your personal vimrc. $\vim\viminfo Dynamic info for 'viminfo'. 记录你编辑过的档案$\vim\vimfiles\ftplugin*.vim 'Filetype plugins 你要加入的套件' $\...
【标题】"Linux vim schemacolor settings" 涉及的知识点主要集中在Linux操作系统中的文本编辑器vim(Vi Improved)的使用以及颜色方案(schemacolor)的配置上。vim是一个强大的、高度可定制的命令行文本编辑器,被...
这是我自己一直使用VIM 的一些设置, 仅供参考
3. 设置选项(Setting Options):Vim有很多配置选项,可以设置布尔值选项、检查选项值,以及对带值的选项进行配置。 4. 映射(Mappings):在Vim中使用映射可以将一系列按键操作绑定到一个命令上。书中介绍了基础...
7. Setting up connection information |dbext-connect| 7.1 Connection Parameters |dbext-connect-parameters| 7.2 Prompting for Parameters |dbext-connect-prompting| 7.3 Connection profiles |dbext-...
### gvim setting:vim在Windows环境下的配置 #### 概述 `gvim`是`vim`的一个图形界面版本,在Windows环境下使用时,通常需要进行一些特定的设置以优化其性能与用户体验。本文将深入探讨如何针对Windows环境进行`...
**vim-lsp-settings** 是一个专门为 **vim-lsp** 插件设计的自动化配置工具,旨在简化在 Vim 编辑器中集成语言服务器的过程。语言服务器协议(Language Server Protocol,LSP)是一种标准,允许编辑器与后端服务通信...
Vim是一款强大的文本编辑器,深受程序员和代码爱好者喜爱。Monokai主题是源自Textmate的一款流行的颜色方案,以其暗色背景和高对比度的色彩搭配,为代码提供了清晰的可读性。在Vim中引入Monokai主题,可以极大地提升...
在实际使用中,遇到不明白的`vimrc`设置,可以通过`:help <setting>`在Vim内置的帮助系统中查找相关文档,了解其作用和用法。Vim的学习曲线虽然陡峭,但一旦掌握,将极大地提升你的文本编辑效率。
" --fold setting --- set foldmethod=syntax "用语法高亮来定义折叠 set foldlevel=100 "启动vim时不要自动折叠代码 set foldcolumn=5 "设置折叠栏宽度 常用命令: za 打开/关闭在光标下的折叠 zA 循环地打开/关闭...
设置: 在您的主目录中添加文件夹“ vim”,文件夹“ tags”,文件“ vimrc”,文件“ ycm_extra_conf.py”(cd〜) 将名称“ vim”,“标签”,“ vimrc”,“ ycm_extra_conf.py”修改为“ .vim”,“标签”,....
Sublime-Like-Vim 这个存储库使 Sublime-Text-like-Vim 环境...下载此存储库并执行 vim-setting.py。 如果它返回“Completed Sublime-Like-Vim 安装没有错误”。 留言,都搞定了。 您可以在安装后删除下载的文件。
- 在 vscode-vim 插件的 setting.json 中设置 ``` "vim.useSystemClipboard": true, "vim.autoSwitchInputMethod.enable": true, "vim.autoSwitchInputMethod.defaultIM": "1033", "vim....
服务器规范片段 这是vim 片段。 从上 。 要求 安装 文德尔 设置包管理器 为设置包 ... " setting example let g: neosnippet #snippets_directory = [ \' ~/.vim/snippets', \' ~/.vim/bundle/
vimplugin-cli 用于管理vim插件的CLI 支持: 用法: Usage: vimplugin [options] [command] Options: -V, --version output the version number ... customize [plugin] Open/Edit a plugin setting help [cmd
总之,`devsetting`项目是Linux开发环境中个人化设置的一个实例,通过`Vimscript`定制Vim编辑器,结合其他工具和脚本,创建了一个高效、舒适的工作环境。对于任何希望在Linux上进行高效开发的人来说,理解和掌握这些...
vim有编辑器之神的称谓,本资源就是设置脚本,插件安装管理
【BoxSetting:我的编辑器设置-Vim,Tmux和ITERM】 在IT行业中,高效的工作环境是提升生产力的关键。编辑器、终端管理器和shell的个性化配置能够大大提高程序员的工作效率。本篇将深入探讨Vim、Tmux以及iTerm这三个...