Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104set runtimepath^=~/.vimlet &packpath = &runtimepath
let mapleader=" "
set backupdir=.backup/,~/.backup/,/tmp//set directory=.swp/,~/.swp/,/tmp//set undodir=.undo/,~/.undo/,/tmp//syntax onfiletype onfiletype indent onfiletype plugin onset cursorlineset noerrorbellsset vb t_vb=set belloff=allset numberset tabstop=4set expandtabset shiftwidth=4set softtabstop=4set scrolloff=900set scroll=4set nocursorline"set cursorcolumnset autoindentset smarttabset incsearchset showmatchset nohlsearchset matchtime=5set nowrapset ignorecaseset nobackupset updatetime=50set undofilecolorscheme tortehighlight Normal ctermbg=256"encodingset encoding=UTF-8set fileencodings=ucs-bom,utf-8,utf-16,gbk,big5,bg18030,latin1set backspace=indent,eol,start
" key bindings
" copy to system clipboard via <Ctrl-c> in visual mode.vnoremap <C-c> "+y" select allnnoremap <C-a> ggVG" close windownnoremap <C-q> :q<CR>" save filennoremap <C-s> :wa<CR>
" fix jump listnnoremap <expr> k (v:count > 5 ? "m'" . v:count : "") . 'k'nnoremap <expr> j (v:count > 5 ? "m'" . v:count : "") . 'j'
" line moving dark-artvnoremap J :m '>+1<CR>gv=gvvnoremap K :m '<-2<CR>gv=gv
" fix visual modevmap $ g_
" window switchingnnoremap <C-j> <C-w>jnnoremap <C-h> <C-w>hnnoremap <C-k> <C-w>knnoremap <C-l> <C-w>l
" split window verticallynnoremap <silent> <C-\> :vsplit<CR><C-w>lnnoremap <silent> <C-w>s :split<CR><C-w>j
" file managernmap <C-b> :Sex!<CR><C-w>l<C-q>" augroup InitNetrw" autocmd!" autocmd VimEnter * :silent! Explore" augroup END
" bracketsfunction! ConditionalPairMap(open, close) let line = getline('.') let col = col('.') if col < col('$') || stridx(line, a:close, col + 1) != -1 return a:open else return a:open . a:close . repeat("\<left>", len(a:close)) endifendfinoremap <expr> ( ConditionalPairMap('(', ')')inoremap <expr> { ConditionalPairMap('{', '}')inoremap <expr> [ ConditionalPairMap('[', ']')inoremap <expr> ` ConditionalPairMap('`', '`')inoremap <expr> ' ConditionalPairMap('''', '''')inoremap <expr> " ConditionalPairMap('"', '"')inoremap <expr> $ ConditionalPairMap('$', '$')
map <C-f> <Nop>nmap <C-f> ggVG=<C-o><C-o>