博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vim.rc配置(deepin)
阅读量:5046 次
发布时间:2019-06-12

本文共 4367 字,大约阅读时间需要 14 分钟。

set nocompatible              " be iMproved, requiredfiletype off                  " required" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repoPlugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.html" Plugin 'L9'" Git plugin not hosted on GitHub"Plugin 'git://git.wincent.com/command-t.git'" git repos on your local machine (i.e. when working on your own plugin)"Plugin 'file:///home/gmarik/path/to/plugin'" The sparkup vim script is in a subdirectory of this repo called vim." Pass the path to set the runtimepath properly.Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}" Install L9 and avoid a Naming conflict if you've already installed a" different version somewhere else." Plugin 'ascenator/L9', {'name': 'newL9'}Plugin 'mhinz/vim-startify'Plugin 'aperezdc/vim-template'Plugin 'thinca/vim-quickrun'Plugin 'jiangmiao/auto-pairs'Plugin 'Chiel92/vim-autoformat'"" Theme PluginPlugin 'sjl/badwolf'" All of your Plugins must be added before the following linecall vundle#end()            " requiredfiletype 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"" display settingsset t_Co=256syntax enablesyntax onset background=darkcolorscheme badwolfset cursorlineset cursorcolumnset number" file encodingset fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1" enable mouseset mouse=a" indentset expandtabset tabstop=4set softtabstop=4set shiftwidth=4" foldset nofoldenableset foldmethod=syntax" searchset hlsearchset incsearch" caseset ignorecaseset smartcase" keep 200 lines of command line historyset history=200" Show a few lines of context around the cursor." Note that this makes the text scroll" if you mouse-click near the start or end of the window.set scrolloff=5set sidescrolloff=5" display completion matches in a status lineset wildmenu" display incomplete commandsset showcmd" Allow backspacing over everything in insert mode.set backspace=eol,start,indent" Use ; as 
let mapleader = ";"" Quick select whole filennoremap
a ggVG" Quick save or quit filennoremap
w :w
nnoremap
q :q
nnoremap
fq :q!
" Copy to and paste from system clipboardnnoremap
y "+ynnoremap
p "+pnnoremap
fz ggVG"+y" vim smart autocompleteset wildmenu" man the informationnnoremap
man :Man
"""" Plugin settings" vim-startifylet g:startify_files_number = 20" vim-templatelet g:templates_no_autocmd=1let g:templates_directory='~/.vim/templates'nnoremap
tp2 :Template tp2
" vim-quickrunlet g:quickrun_config = { \ "_" : { \ "outputter" : "message", \ }, \}let g:quickrun_no_default_key_mappings = 1nmap
(quickrun)" YouCompleteMelet g:ycm_collect_identifiers_from_tags_files=1set tags+=~/.tags/stdcpp.tagslet g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'let g:ycm_complete_in_comments=1let g:ycm_cache_omnifunc=0let g:ycm_seed_identifiers_with_syntax=1set completeopt-=preview" Airlinelet g:airline_theme='luna'let g:airline_powerline_fonts = 1if !exists('g:airline_symbols') let g:airline_symbols = {}endiflet g:airline_symbols.linenr = '&'" AutoFormatlet g:formatdef_my_cpp = '"astyle --style=google"'let g:formatters_cpp = ['my_cpp']"au BufWrite * :Autoformatnmap
fmt
(Autoformat)""" My Own Functionfunc! CppDebug() exe "silent !g++ -O0 -std=c++14 -g % -o %<" exe "!gdb %<" exe "silent !rm -rf %<"endfuncnnoremap
db :call CppDebug()
map
:call Run()
func! Run() exe "silent w" exe "silent !g++ % -o %<" exe "!./%<" exe "silent !rm %<"endf

 

转载于:https://www.cnblogs.com/linruier/p/10035291.html

你可能感兴趣的文章
HDU 1548 A strange lift (Dijkstra)
查看>>
每天一个小程序—0005题(批量处理图片大小)
查看>>
C# 启动进程和杀死进程
查看>>
tcp实现交互
查看>>
IIS的各种身份验证详细测试
查看>>
JavaScript特效源码(3、菜单特效)
查看>>
聊聊、Zookeeper Linux 单服务
查看>>
Linux常用命令总结
查看>>
yii模型ar中备忘
查看>>
C#线程入门
查看>>
CSS清除浮动方法
查看>>
JVM内存回收机制简述
查看>>
洛咕 P2480 [SDOI2010]古代猪文
查看>>
js-创建对象的几种方式
查看>>
JDK JRE Java虚拟机的关系
查看>>
2018.11.20
查看>>
word20161215
查看>>
12th week blog
查看>>
dijkstra (模板)
查看>>
python小记(3)
查看>>