" vim map setting " Treat long lines as break lines (useful when moving around in them) map j gj map k gk " fast saving nmap w :w! " smart way to move between windows map j map k map h map l " Useful mappings for managin tabs map tn :tabnew map to :tabonly map tc :tabclose " visual mode copy and paste to system clipboard "vmap "+y "vmap "+c "vmap "+p " 将VIM中将内容复制到系统粘贴板,或者从系统粘贴板粘贴到VIM nnoremap "+y vnoremap "+y nnoremap "+gP vnoremap "+gP function! Xml() set filetype=xml :%s/>\r<替换成>回车< :normal gg=G endfunction map xml :call Xml() " plugin map setting " Normal mode F2 to call NERDTree nmap :NERDTreeToggle