Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax enable
- filetype plugin on
- set t_Co=256
- set backspace=indent,eol,start
- set whichwrap+=<,>,[,] " cursor left and right move to next/prev lines
- set linebreak
- set ttyfast
- set path +=**
- set wildmenu
- "set background=light
- set background=dark
- colorscheme primary
- "colorscheme 256_noir
- set number
- set noswapfile
- set whichwrap+=<,>
- set nocompatible
- set backspace=indent,eol,start
- set tabstop=2
- set shiftwidth=2
- set expandtab
- set autoindent
- set smartindent
- set cindent
- set wrap
- function RepasteCase(s, ...)
- let dash = substitute(a:s, '_', '-', 'ge')
- let camel = substitute(a:s, '_\(\l\)', '\u\1', 'ge')
- for i in a:000
- let sdash = substitute(i, '_', '-', 'ge')
- let scamel = substitute(i, '_\(\l\)', '\u\1', 'ge')
- let sub = substitute(getreg('"'), a:s, i, 'ge')
- let dashsub = substitute(sub, dash, sdash, 'ge')
- let camelsub = substitute(dashsub, camel, scamel, 'ge')
- put = camelsub
- endfor
- endfunction
- function Repaste(s, ...)
- for i in a:000
- put = substitute(@0, a:s, i, 'g')
- endfor
- endfunction
- command -nargs=* RP call Repaste(<f-args>)
- command -nargs=* RPc call RepasteCase(<f-args>)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement