https://github.com/lassehaslev/vim-period
Add a something to end of line like a semicolon
https://github.com/lassehaslev/vim-period
Last synced: 5 months ago
JSON representation
Add a something to end of line like a semicolon
- Host: GitHub
- URL: https://github.com/lassehaslev/vim-period
- Owner: LasseHaslev
- Created: 2016-11-22T11:44:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T12:56:26.000Z (over 9 years ago)
- Last Synced: 2025-08-27T10:39:08.880Z (11 months ago)
- Language: VimL
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-period
> Add semicolon or comma in en of line/lines
## Install
Install this plugin by your favorite installation method
##### [ Vundle ](https://github.com/VundleVim/Vundle.vim) (Recomended)
```
Plugin 'LasseHaslev/vim-period'
# Lunch vim and run
:PluginInstall
```
##### Tim Pope's [ Pathogen ]( https://github.com/tpope/vim-pathogen )
```
cd ~/.vim/bundle
git clone https://github.com/LasseHaslev/vim-period
```
##### Junegunn Choi’s [ Plug ](https://github.com/junegunn/vim-plug):
```
Plug 'LasseHaslev/vim-period'
vim +PlugInstall +qall
```
## Usage
#### Mappings
```
# Disable default key bindings
let g:period_map_keys = 0
# Map your keys ( This is also the default mappings )
map ;; :call PeriodIsA( ';' )
imap ;; :call PeriodIsA( ';' )a
# ...etc.
```
## Contributors
I have only pluginified the code.
The original code and logic is from [Jonas Knarbakk](https://github.com/JonasKnarbakk).