Config Vim

2018-10-31  本文已影响0人  Jedore
       Plugin 'micha/vim-colors-solarized'
       "" for mini program
       Plugin 'chemzqm/wxapp.vim'
       Plugin 'chemzqm/mycomment.vim'
       Plugin 'jiangmiao/auto-pairs'
       "" for browser directory
       Plugin 'scrooloose/nerdtree'
       Plugin 'jistr/vim-nerdtree-tabs'
       
       Plugin 'vim-scripts/taglist.vim'
       "" for syntastic check
       Plugin 'vim-syntastic/syntastic'
       
       Plugin 'powerline/powerline'
       
       colorscheme solarized
       set background=dark

       set encoding=utf-8
       set fileencoding=utf-8
       set fileencodings=ucs-bom,utf-8,gbk,gb18030,gk2312

       let mapleader=","
       let g:mapleader=","
       nmap <leader>w :w!<cr>
       nmap <leader>q :q!<cr>

       nnoremap <C-J> <C-W><C-J>
       nnoremap <C-K> <C-W><C-K>
       nnoremap <C-L> <C-W><C-L>
       nnoremap <C-H> <C-W><C-H>

       set splitbelow
       set splitright

       syntax enable
       syntax on
       set nu
       set nobackup
       set noswapfile
       set noundofile
       set ts=4
       set et
       set ingorecase
       set foldmethod=indent
       "" cursor line highlight
       set cursorcolumn
       hi CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=grey

       ""for comment color
       hi Comment guifg=#0f9b0f gui=underline

       "" switch for transparent
       map <F2> :call libcallnr("vimtweak.dll", "SetAlpha", 200)<CR>
       map <S-F2> :call libcallnr("vimtweak.dll", "SetAlpha", 255)<CR>
       "" switch for maximized
       map <F3> :call libcallnr("vimtweak.dll", "EnableMaximize", 1)<CR>
       map <S-F3> :call libcallnr("vimtweak.dll", "EnableMaximize", 0)<CR>
上一篇 下一篇

猜你喜欢

热点阅读