2013年12月18日 星期三

[VIM] Change to the directory of the currently open file


[VIM] Change to the directory of the currently open file



:cd %:p:h

Reference






Related Posts:

  • [vim] E73: tag stack empty Error Place : " jump out of the tag stack (undo Ctrl-]) map <C-t> <ESC>:po<CR> Fix : " [[ jump out of the tag stack (undo Ctrl-]) m… Read More
  • [vim] NERD Commenter Edit ~/.vimrc or ~/.vim/vimrc " set leader to , let mapleader="," let g:mapleader="," Usage [count]\cc |NERDComComment| Comment out the current li… Read More
  • [Vim] Vim script for default settingSeting load configuration path /etc/vimrc --> /usr/share/vim/vim74 --> ~/.vim/vimrc Create a file was called happy.vim " Highlight the synt… Read More
  • [vim] How to use ack.vim ### Ack You have to install [ack](http://betterthangrep.com/), of course. Install on Debian / Ubuntu with: sudo apt-get install ack-grep ## Us… Read More
  • [Vim] taglist Need Install Package pacman -S ctags Settings Download Adjust window size : ctr-w > or ctr-w < Reference: 1.taglist.vim : Source code b… Read More

0 意見:

張貼留言