Ⅰ. 插件描述
A snippet file of commonly used FANUC TP commandsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'bcoady/vim-tp-snippets'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'bcoady/vim-tp-snippets'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'bcoady/vim-tp-snippets'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/bcoady/vim-tp-snippets
Ⅳ. 文档说明
# VIM-TP-SNIPPETS
A snippet file of commonly used FANUC TP commands
This snippet file is now included in tpDev
Installing and Using
- Install pathogen into
\vimfiles\autoload
and add the
following line to your_vimrc
:
call pathogen#infect()
- Install snipmate into
vimfiles\bundle
- Add the snippets folder to
\vimfiles\bundle\vim-snipmate-master
Note: the snippets are in all caps. Adding the following to your_vimrc
will give you a separate caps-lock while in insert mode:
"<C-^> is the new Caps Lock for insert mode only
" Execute 'lnoremap x X' and 'lnoremap X x' for each letter a-z.
for c in range(char2nr('A'), char2nr('Z'))
execute 'lnoremap ' . nr2char(c+32) . ' ' . nr2char(c)
execute 'lnoremap ' . nr2char(c) . ' ' . nr2char(c+32)
endfor
:set iminsert=1
- Open the snipptes.tp file to see what snippets are available and to add or edit snippets
- If not already done, install vim-tp-fanuc into
vimfiles\bundle
for syntax highlighting
License
MIT