https://github.com/takegue/sum-it.vim
This plugin sums up number selected.
https://github.com/takegue/sum-it.vim
Last synced: 5 months ago
JSON representation
This plugin sums up number selected.
- Host: GitHub
- URL: https://github.com/takegue/sum-it.vim
- Owner: takegue
- Created: 2014-12-20T07:54:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-20T10:04:46.000Z (over 11 years ago)
- Last Synced: 2025-06-10T10:08:18.980Z (about 1 year ago)
- Language: VimL
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sum-it.vim
--------------
This plugin sums up your selected text.

Install
--------------------
`NeoBundle 'TKNGUE/sum-it.vim'`
Configuration
--------------------
I recommend you that you use this plugin with 'lightline.vim'
for example, like below:
```vim
function! MyCount()
if mode() =~ '[vV]\|CTRL-V'
return sumit#count_selected_text()
else
return ''
endif
endfunction
let g:lightline = {
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename'] ],
\ 'right': [ [ 'lineinfo' ],
\ [ 'percent' ],
\ [ 'fileformat', 'fileencoding', 'filetype' ],
\ [ 'count'] ],
\ },
\ 'component_function': {
\ 'count': 'MyCount',
\ }}
```
Have a nice vim life!