" 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 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