VIM TIP2
" Edit another file in the same directory as the current file " uses expression to extract path from current file's path " (thanks Douglas Potts) if has("unix") map ,e :e . "/" />else map ,e :e . "\" />endif #在配置文件里加这么一段
Then when you type ,e in normal mode you can use tab to complete to the file. You can also expand this to allow for spitting, etc. Very very nice. #当你敲“,e”的时候,就可以用Tab来选你想编辑的文章咯
p.s. 为什么不用类似filetree或者winmanager这样的plugin呢?方便的很啊!另外vim官方网站本条tip下的评论还是有点意思的~感兴趣自己刨哈!
Comments