-
My Config
-
Platform
win7
gvim8.0
-
Install vundle
Plugins and other sets
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>
VimTweak
download
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
switch for nerdtree tab
map <F4> :NERDTree<CR>
Load config do not restart gvim
execute:source $VIM/_vimrc
-
auto complete
inoremap ' ''<ESC>i inoremap " ""<ESC>i inoremap ( ()<ESC>i inoremap [ []<ESC>i inoremap { {<CR>}<ESC>O func SkipPair() if getline('.')[col('.') - 1] == ')' || getline('.')[col('.') - 1] == ']' || getline('.')[col('.') - 1] == '"' || getline('.')[col('.') - 1] == "'" || getline('.')[col('.') - 1] == '}' return "\<ESC>la" else return "\t" endif endfunc inoremap <TAB> <c-r>=SkipPair()<CR>
-
Reference