Ⅰ. 插件描述
Lets you use ctrl-a and ctrl-x on names of months and weekdaysⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yuroyoro/monday-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yuroyoro/monday-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yuroyoro/monday-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yuroyoro/monday
Ⅳ. 文档说明
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1046
Monday.vim extends the normal-mode commands <ctrl-a> and <ctrl-x> so that they can be applied to the names of months and weekdays. For example, if you are standing on the word "July" and presses <ctrl-a>, the word is replaced by "August".
The script tries to preserve the case of the letters, and can handle the following three variants:
(1) All lower-case ("july" becomes "august").
(2) All upper-case ("JULY" becomes "AUGUST").
(3) First letter upper-case, the rest lower-case ("July" becomes "August").
Todo:
Only English is supported; although it's easy to add any word pairs you want, the script cannot yet handle words that have two or more possible successors/predecessors. For example, the 4th month is called "April" in both English and Swedish, but its successor is called "May" and "Maj", respectively. So, if you add the Swedish months and then try to increment the word "April", the script won't be able to figure out which word ("May" or "Maj") it should be replaced with.