vim直接进入行尾
注:全局配置:/etc/vimrc;当前用户配置:~/.vimrc
最小匹配
tmp_file=fstab; echo "autocmd BufReadPost $tmp_file normal G" >> ~/.vimrc;vim /tmp/$tmp_file;sed -i '/autocmd BufReadPost '''$tmp_file''' normal G/d' ~/.vimrc
全部匹配
tmp_file=/tmp/fstab; echo "autocmd BufReadPost * normal G" >> ~/.vimrc;vim $tmp_file;sed -i '$d' ~/.vimrc
不修改配置文件:
vi + $File
直接进入尾行