Created
July 28, 2020 09:54
-
-
Save uxgnaw/701a01f622a4d6ab1dcab584300c8df6 to your computer and use it in GitHub Desktop.
vim configure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"基础配置 | |
syntax on | |
filetype plugin indent on | |
set nu | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
"插件 | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'majutsushi/tagbar' | |
Plug 'preservim/nerdtree' | |
call plug#end() | |
"快捷键配置 | |
autocmd FileType go nmap <C-r> <Plug>(go-run) | |
autocmd FileType go nmap <C-l> <Plug>(gofmt) | |
map <C-n> :NERDTreeToggle<CR> | |
nmap <F8> :TagbarToggle<CR> | |
"插件配置 | |
let g:deoplete#enable_at_startup = 1 | |
call deoplete#custom#option('omni_patterns', { 'go': '[^. *\t]\.\w*' }) | |
call deoplete#custom#option({ | |
\ 'auto_complete_delay': 200, | |
\ 'smart_case': v:true, | |
\ 'min_pattern_length': 3, | |
\ }) | |
highlight Pmenu ctermbg=8 guibg=#7b68ee | |
highlight PmenuSel ctermbg=1 guifg=#1f82cd guibg=#7b68ee | |
highlight PmenuSbar ctermbg=0 guibg=#7B68EE | |
"Note: This option must be set in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)! | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
" Use smartcase. | |
let g:neocomplete#enable_smart_case = 1 | |
" Set minimum syntax keyword length. | |
let g:neocomplete#sources#syntax#min_keyword_length = 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment