Note for everything
:set ff=unix
nmap ,ts <Esc>:%s/\s\+$//gc<cr>
inoremap \fp <C-R>=getcwd()<CR>inoremap \fn <C-R>=expand("%:t:r")<CR>inoremap \fN <C-R>=expand("%:p:r")<CR>
具体每一个修饰符的意思可以:help expand()看下
:help expand()
参见 Vim Tips Wiki 中这篇
" change cwdnnoremap ,cd :cd %:p:h<CR>:pwd<CR>