超强超美观的vim配置文件

修改~/.vimrc文件 修改内容如下:
if v:lang =~ “utf8 " ∣ ∣ v : l a n g =   " U T F − 8 " || v:lang =~ "UTF-8 "v:lang= "UTF8
set fileencodings=utf-8,latin1
endif
set encoding=utf-8

syntax on
set ts=4
set so=7
set cc=80
set ruler " show the cursor position all the time
set number
set cindent
set t_Co=256
set expandtab
set autoindent
set history=50 " keep 50 lines of command line history
set autochdir
set nocompatible " Use Vim defaults (much better!)
set shiftwidth=4
set background=dark
set viminfo='20,"50 " read/write a .viminfo file, don’t store more
colorscheme PaperColor
set bs=indent,eol,start " allow backspacing over everything in insert mode
set statusline=[%F]\ [%{&ff}]

set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set shiftwidth=4
set laststatus=2
set wrap
set nohlsearch
set nofoldenable
set mouse=a

"
" this will lead to vim too slow
"
" set foldmethod=syntax

nmap :cs find g =expand("")
nmap :cs find c =expand("")
nmap :cs find t =expand("")
nmap :cs find e =expand("")
nmap :cs find f =expand("")
nmap :!gtags
nmap :vsp:l
“configure of PaperColor”
let g:PaperColor_Theme_Options = {
\ ‘cpp’: {
\ ‘highlight_standard_library’: 1
\ },
\ ‘c’: {
\ ‘highlight_builtins’ : 1
\ }
\ }

filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

"let Vundle manage Vundle
Bundle ‘gmarik/vundle’
Bundle ‘majutsushi/tagbar’
Bundle ‘Valloric/YouCompleteMe’
Bundle ‘DoxygenToolkit.vim’
Bundle ‘scrooloose/nerdtree’
Bundle ‘scrooloose/nerdcommenter’
Bundle ‘NLKNguyen/papercolor-theme’
Bundle ‘Yggdroot/LeaderF’
Bundle ‘Yggdroot/indentLine’
Bundle ‘Shougo/deol.nvim’
" Bundle ‘davidhalter/jedi-vim’

“unite”
" let g:unite_source_history_yank_enable = 1

" call unite#filters#matcher_default#use([‘matcher_fuzzy’])
" call unite#filters#sorter_default#use([‘sorter_rank’])
" nnoremap :Unite -no-split -buffer-name=lines -start-insert line
" " nnoremap f :Unite -no-split -buffer-name=files -start-insert file_rec/async
" autocmd FileType unite call s:unite_settings()
" function! s:unite_settings()
" let b:SuperTabDisabled=1
" imap (unite_select_next_line)
" imap (unite_select_previous_line)
" endfunction

“indent line”
let g:indentLine_enabled = 1
" cscope
set cscopetag
set cscopeprg=‘gtags-cscope’
let GtagsCscope_Auto_Update = 0
let GtagsCscope_Auto_Load = 1
let CtagsCscope_Auto_Map = 1
let GtagsCscope_Quiet = 1
“content of make_file_list.sh is:”
“find source_code_path -path “dictionary_ignore” -prune -o -type f -print > /tmp/gtags.files”
“this script generate a file list with ignore files in specific dictionary,”
“and file list will be used by gtags”
nmap :!make_file_list.sh && gtags -f /tmp/gtags.files &
nmap :!gtags &
“configure of nerdcommenter”
let g:NERDSpaceDelims=1
let g:NERDAltDelims_c = 1
“configure of tagbar”
nmap :TagbarToggle
let g:tagbar_left = 0
let g:tagbar_width = 60
let g:tagbar_autoclose = 1
let g:tagbar_type_ruby = {
\ ‘kinds’ : [
\ ‘m:modules’,
\ ‘c:classes’,
\ ‘d:describes’,
\ ‘C:contexts’,
\ ‘f:methods’,
\ ‘F:singleton methods’
\ ]
\ }
“configure of NERDTree”
nmap f :NERDTreeToggle
let NERDTreeWinPos=‘left’
let NERDTreeShowLineNumbers=1
let NERDTreeAutoCenter=1
let NERDTreeShowHidden=1
let NERDTreeWinSize=31
let g:nerdtree_tabs_open_on_console_startup=1
let NERDTreeIgnore=[’.pyc’,’~$’,’.swp’,’.ycm_extra_conf.py’,’\GPATH’,’\GRTAGS’,’\GTAGS’,’\build’]
let NERDTreeShowBookmarks=1
let NERDTreeQuitOnOpen=1
let NERDTreeStatusline=1
let g:NERDTreeDirArrowExpandable = ‘
let g:NERDTreeDirArrowCollapsible = '

“configure of YouCompleteMe”
set completeopt=longest,menu
let g:ycm_min_num_of_chars_for_completion=2
let g:ycm_complete_in_strings = 1
let g:ycm_key_invoke_completion = ‘’
let g:ycm_global_ycm_extra_conf = ‘~/.ycm_extra_conf.py’
let g:ycm_confirm_extra_conf=0
let g:ycm_seed_identifiers_with_syntax=1
let g:ycm_filetype_blacklist = {
\ ‘tagbar’ : 1,
\ ‘nerdtree’ : 1,
}
nnoremap gd :YcmCompleter GoToDeclaration
nnoremap gf :YcmCompleter GoToDefinition
nnoremap gg :YcmCompleter GoToDefinitionElseDeclaration
let g:ycm_error_symbol = ‘>>’
let g:ycm_warning_symbol = ‘>>’
nmap :YcmDiags
“config of leaderf”
nmap :LeaderfLine
nmap :LeaderfFile /home/zxy/sflagent_c7/branches/sflagent_lenovo_dongde_v0
nmap :LeaderfFile
let g:Lf_WildIgnore = {
\ ‘dir’: [’.svn’,’.git’,’.hg’,‘build’],
\ ‘file’: [’.o’,’.cmd’,’.a’]
}
“Deol.vim”
nmap s :Deol
nmap q :q
filetype plugin indent on

各个插件配置设置单独配置: ls bundle/.configs/ : asyncrun.vim_conf.vim EasyMotion_conf.vim lookupfile_conf.vim supertab_conf.vim vim-markdown-toc_conf.vim bufexplorer_conf.vim eclim_conf.vim maximizer_conf.vim syntastic_conf.vim vim-powerline_conf.vim CCTree_conf.vim errormarker.vim_conf.vim neocomplcache_conf.vim tagbar_conf.vim vimshell.vim_conf.vim CompleteParameter.vim_conf.vim fuzzyfinder_conf.vim neocomplete.vim_conf.vim ultisnips_conf.vim vim-snippets_conf.vim deoplete-jedi_conf.vim grep.vim_conf.vim neosnippet_conf.vim unite.vim_conf.vim ydtrans_conf.vim deoplete.nvim_conf.vim init.vim nerdcommenter_conf.vim vcscommand_conf.vim YouCompleteMe_conf.vim DoxygenToolkit.vim_conf.vim jedi-vim_conf.vim nerdtree_conf.vim VimIM_conf.vim DrawIt_conf.vim jupyter-vim_conf.vim Nvim-R_conf.vim vim-instant-markdown_conf.vimvimrc文件进行基础配置: let mapleader="," let g:mapleader="," autocmd! :mapclear "==========很多插件,可能进行过修改, 若感觉不爽,可以在.vim搜索lidong, 进行还原=================== +-- 11 lines: 插件依赖设置 ---------------------------------------------------------------------------------- source ~/.vim/bundle/.configs/init.vim +--104 lines: F1~F12快捷键映射------------------------------------------------------------------------------- +-- 22 lines: 非F1~F12快捷键--------------------------------------------------------------------------------- +-- 5 lines: 自己定义的命令 -------------------------------------------------------------------------------- +-- 17 lines: 窗口配置--------------------------------------------------------------------------------------- +--229 lines: 简单配置--------------------------------------------------------------------------------------- +-- 55 lines: Gui选项 放到.gvimrc---------------------------------------------------------------------------- +-- 5 lines: 高亮 注释代码的颜色---------------------------------------------------------------------------- +-- 6 lines: 高亮 menu color ------------------------------------------------------------------------------- +-- 7 lines: 高亮 当前行(列)-------------------------------------------------------------------------------- +-- 3 lines: 高亮列----------------------------------------------------------------------------------------- +-- 13 lines: 高亮tab标签------------------------------------------------------------------------------------ +-- 8 lines: 高亮 其他-------------------------------------------------------------------------------------- +-- 10 lines: 字符编码(多字节)------------------------------------------------------------------------------- +-- 12 lines: 设置C/C++语言的具体缩进方式 eg. switch case 缩进----------------------------------------------- +-- 42 lines: vim折叠功能------------------------------------------------------------------------------------ +-- 19 lines: 文件比较--------------------------------------------------------------------------------------- +-- 26 lines: 单词列表匹配-----------------------------------------------------------------------------------
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值