前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >专栏 >.vimrc-备份

.vimrc-备份

作者头像
吴易娃
发布于 2024-01-12 09:35:14
发布于 2024-01-12 09:35:14
1380
举报
文章被收录于专栏:易娃的杂货铺易娃的杂货铺

自用的vimrc配置文件备份:

代码语言:text
AI代码解释
复制
" encoding dectection
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1


" Set vundle settings here
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nocompatible              " be iMproved, required
filetype off                  " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
"Plugin 'VundleVim/Vundle.vim'        "https://github.com/VundleVim/Vundle.vim
Bundle 'Valloric/YouCompleteMe'
Plugin 'gmarik/Vundle.vim'
" Custom plugins
Plugin 'scrooloose/nerdtree'         "https://github.com/scrooloose/nerdtree
Plugin 'MattesGroeger/vim-bookmarks' "https://github.com/MattesGroeger/vim-bookmarks
Plugin 'maciakl/vim-neatstatus'      "https://github.com/maciakl/vim-neatstatus

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line


" Vim5 and later versions support syntax highlighting. Uncommenting the
" following enables syntax highlighting by default.
if has("syntax")
    syntax on   " 语法高亮
endif
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"have Vim load indentation rules and plugins according to the detected
"filetype on
"filetype plugin indent on
endif

set number
set autoindent
set softtabstop=4    " 设置软制表符的宽度
set shiftwidth=4     " (自动) 缩进使用的4个空格
set tabstop=4        " 设置制表符(tab键)的宽度
set expandtab        " 行首tab转换为4个空格
set cindent          " 使用 C/C++ 语言的自动缩进方式
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s     "设置C/C++语言的具体缩进方式
set showmatch        " 设置匹配模式,显示匹配的括号
set linebreak        " 整词换行
set whichwrap=b,s,<,>,[,] " 光标从行首和行末时可以跳到另一行去
set ruler            " 标尺,用于显示光标位置的行号和列号,逗号分隔。每个窗口都有自己的标尺。如果窗口有状态行,标尺在那里显示。否则,它显示在屏幕的最后一行上
set showcmd          " 命令行显示输入的命令
set showmode         " 命令行显示vim当前模式
set incsearch        " 输入字符串就显示匹配点
set hlsearch
set enc=utf-8        " 文件编码
set cursorline
set cursorcolumn
highlight CursorLine   cterm=NONE ctermbg=blue ctermfg=white guibg=NONE guifg=NONE
"highlight CursorColumn cterm=NONE ctermbg=green ctermfg=NONE guibg=NONE guifg=NONE
highlight  CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
" NERDTree settings
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif

" vim-bookmarks settings
let g:bookmark_auto_close = 1
let g:bookmark_save_per_working_dir = 1
let g:bookmark_highlight_lines = 1
let g:bookmark_center = 1
let g:bookmark_location_list = 1

" key mapping
:inoremap { {}<ESC>i
:map <f2> :NERDTreeToggle<CR>
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-02-24,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
vimrc配色和快捷键【工具】
效果如下: 源码如下: 1 "    ___
sinnoo
2020/11/13
1.1K0
vimrc配色和快捷键【工具】
将vim配置成python编辑器
参考: 1. Vim与Python真乃天作之合:打造强大的Python开发环境 2. vundle: vim插件管理安装之错误总结 3. 使用vim打造自己的python编辑器 4. 使用vim打造自己的python编辑器
py3study
2020/01/03
8590
搭建vim-go环境
安装插件 首先安装vim最新版和bundle插件(链接) 修改配置 cat ~/.vimrc " 剪贴板设为系统 set clipboard=unnamedplus " 打开鼠标控制 set mouse=a set backspace=2 filetype off " required" runtime! debian.vim " 开始插件配置啦 set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'Vu
超级大猪
2019/11/22
8990
vim配置
默认检查的是CPP,要检查C需要修改一下。 python项目要加进Pythonpath,否则包可能找不到定义:
超级大猪
2019/11/22
7250
手把手教你配置linux下C++开发工具——vim+ycm(YouCompleteMe),支持基于语义的自动补全和第三方库补全(史上最简单、史上最透彻、史上最全的终极解决方案)
截止到目前,vim稳定版本已经到了8.2+,ycm(YouCompleteMe的简称)最新版本与几年前的安装配置截然不同了。之前网上很多教程也教不得法,生搬硬套,没有讲透彻。所以,才下定决心写一篇自认为史上最简单、史上最全的教程出来。
Java架构师历程
2020/11/10
6K0
手把手教你配置linux下C++开发工具——vim+ycm(YouCompleteMe),支持基于语义的自动补全和第三方库补全(史上最简单、史上最透彻、史上最全的终极解决方案)
vim背景颜色详细设置_vim显示行号命令
highlight LineNr ctermfg=red :highlight LineNr ctermbg=white
全栈程序员站长
2022/11/19
5.5K0
vim背景颜色详细设置_vim显示行号命令
vim 插件管理 Vundle
2) Ag 依赖 ag mac: https://github.com/ggreer/the_silver_searcher windows: https://github.com/k-takata/the_silver_searcher-win32
lukachen
2023/10/22
2030
vim 插件管理 Vundle
Linux : Vim 使用与配置 (附 GitHub 自动化配置脚本)
由于经常使用 vim 编辑配置文件,有时候也会进行使用vim 编写一些脚本和c/c++ 程序,所以配置一个常用的 vim 是很是必要的。这篇博文主要是记录vim使用和配置相关的一些知识点。
西湖醋鱼
2020/12/30
4.8K0
Linux : Vim 使用与配置 (附 GitHub 自动化配置脚本)
python学习-vim插件安装
Vundle 是 Vim bundle 的简称,使用git来管理vim插件,有了它,安装其它插件就方便很多。
py3study
2020/01/06
1.3K0
python学习-vim插件安装
「个人vim插件+配置」
复制代码时执行`set paste`来取消自动缩进,再`set nopaste`恢复。
饶文津
2020/06/02
1K0
舒适美观的mac终端, iTerm+zsh+powerlevel9k+vim+virtualenv
每次提到homebrew, 除了必备神器之外, 还有就是谷歌: 我们90%的工程师使用您编写的软件(Homebrew), 但是您却无法在面试时在白板上写出翻转二叉树这道题, 这太糟糕了.(手动滑稽)
sean_yang
2019/09/27
4.4K0
舒适美观的mac终端, iTerm+zsh+powerlevel9k+vim+virtualenv
vim编辑器设置
用vim来写python程序,所需要设置的地方 下载插件: 1 git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 配置参考 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
dogfei
2020/07/31
4170
vim的配置_vim全局配置
因为写了一段时间前端,一直在考虑vim是否能够替代前端无敌编辑器vscode,最后发现只能高仿,自己配置的性能跟vscode下的vim模式差不多,灵活性更高点,喜欢折腾的朋友可以试试,否则用vscode vim模式吧,已经神一般的完美了(不是高级黑-。-)。 这套插件目前包含了代码自动补全,目录树,js/jsx eslint自动格式化,小黑屋模式, 文件搜索ctrlp,快速检索ack,emmet,函数工具条还有各种奇奇插插的主题配置而成, 别想歪。这里我做了一堆的配置,大家可以根据个人喜好,配置任意的快捷键。我是一边做一边写的文章,有些东西可能没考虑到,有问题可以给我留言。
全栈程序员站长
2022/11/14
2.9K0
vim的配置_vim全局配置
舒适美观的mac终端, iTerm2+zsh+powerlevel9k+vim+virtualenv
> 如果图片崩了, 请移步[某hub](https://github.com/SoSkyrim/SeanPics/blob/master/iTerm/seanSetting.md)
sean_yang
2019/09/17
1.7K0
舒适美观的mac终端, iTerm2+zsh+powerlevel9k+vim+virtualenv
ubuntu16.04打造vim和pyt
ubuntu16.04 安装支持python3的IDE 1. 安装vim: # apt-get install  -y vim-gnome 2. 安装ctags,ctags用于支持taglist # apt-get install ctags 3. 安装taglist # apt-get install vim-scripts vim-addon-manager # vim-addons install taglist 4. 安装pydiction 实现代码补全: #wget  https://www.vi
py3study
2020/01/03
6770
vimrc 配置文件
vim的配置文件 配置教程: 把vim配置成顺手的python轻量级IDE(1) 把vim配置成顺手的python轻量级IDE(2) "set backspace=indent,eol,start "backspace键" indent 删除自动缩进的值” eol 删除上一行行末尾的回车,两行合并” start 除了刚输入的,还删除原来的字符 set expandtab "使用空格替换tab "set autoindent " 自动缩进 "syn on "语法高亮 filetype on "文件类型 set
十四君
2019/11/29
9040
golang实战-1:搭建vim-go开发环境
LSB Version: :core-4.1-amd64:core-4.1-noarch
千里行走
2019/11/06
3.5K0
golang实战-1:搭建vim-go开发环境
配置vim为pythonIDE小结
1.在.vimrc中配置插件 " vundle 环境设置 filetype off set rtp+=~/.vim/bundle/Vundle.vim " vundle 管理的插件列表必须位于 vundle#begin() 和 vundle#end() 之间 call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'altercation/vim-colors-solarized' Plugin 'tomasr/molokai' Plugin 'vi
阿章-python小学生
2018/05/18
9650
这个方法,让 Vim 输入中文成为一种享受
我相信,你在 Vim 中输入中文时,一定有过很痛苦的经历:在切换为命令模式时,需要切换为英文输入法,然后在插入模式时,再切换为中文,这两次切换,让原本高效的 Vim 显得笨拙无比,这个麻烦,劝退了很多 Vim 初学者。
somenzz
2021/09/14
5.2K0
超级强大的vim配置(vimplus)
最近在重新配置Vim,也在GitHub上找了三个star和fork数目很高的方案,在这里分享给大家: https://github.com/amix/vimrc - star 3,482 ; Fork
_gongluck
2018/03/13
29.9K2
超级强大的vim配置(vimplus)
相关推荐
vimrc配色和快捷键【工具】
更多 >
领券
社区富文本编辑器全新改版!诚邀体验~
全新交互,全新视觉,新增快捷键、悬浮工具栏、高亮块等功能并同时优化现有功能,全面提升创作效率和体验
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文