Skip to content

Commit edafab5

Browse files
committed
Merge pull request #11 from FundingCircle/yl-more-bundles
word casing manipulation and jsdoc bundles
2 parents 0304d98 + 35ba9d3 commit edafab5

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,15 @@ fine, multiple key commands like `ciw` are not supported yet.
104104
* [vim-airline](https://github.com/bling/vim-airline) sets the status bar and makes it more configurable and useful by showing things like the current Git branch, etc.
105105
* [vim-javascript-syntax](https://github.com/jelera/vim-javascript-syntax) JS syntax highlighting.
106106
* [vim-javascript](https://github.com/pangloss/vim-javascript) More JS syntax and indent plugins.
107-
107+
* [vim-abolish](https://github.com/tpope/vim-abolish.git) Easily search for, substitute, and abbreviate multiple variants of a word
108+
* `crc`: change word to camel case (fooBar)
109+
* `crs`: change word to snake case (foo_bar)
110+
* `crm`: change word to mixed case (FooBar)
111+
* `cru`: change word to upper case (FOO_BAR)
112+
* `cr-`: change word to dash case (foo-bar)
113+
* `cr.`: change word to dash case (foo.bar)
114+
* [vim-jsdoc](https://github.com/heavenshell/vim-jsdoc.git) Generate JsDoc to your JavaScript code.
115+
* `<leader>d`: Insert JsDoc.
108116

109117
## Clojure
110118

bundles-javascript.vimrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
" Syntax Highlighting
2+
Plugin 'pangloss/vim-javascript'
3+
Plugin 'jelera/vim-javascript-syntax'
4+
5+
" JSDoc
6+
Plugin 'heavenshell/vim-jsdoc'
7+

bundles.vimrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Plugin 'ervandew/supertab'
2121
Plugin 'tpope/vim-surround'
2222
Plugin 'scrooloose/syntastic'
2323
Plugin 'terryma/vim-multiple-cursors'
24+
Plugin 'tpope/vim-abolish'
2425

2526
" Utilities
2627
Plugin 'bling/vim-airline'
@@ -37,18 +38,15 @@ Plugin 'tpope/vim-fugitive'
3738

3839
" Syntax
3940
Plugin 'ekalinin/Dockerfile.vim'
40-
Plugin 'jelera/vim-javascript-syntax'
4141

4242
" Ruby
4343
Plugin 'tpope/vim-rails'
4444
Plugin 'skalnik/vim-vroom'
4545
Plugin 'jgdavey/vim-blockle'
4646
Plugin 'ruby-matchit'
4747

48-
" Javascript
49-
Plugin 'pangloss/vim-javascript'
50-
5148
source ~/.vim/bundles-clojure.vimrc
49+
source ~/.vim/bundles-javascript.vimrc
5250

5351
call vundle#end()
5452
filetype plugin indent on

default.vimrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ set ttyscroll=3
4747
set lazyredraw
4848
set re=1
4949

50+
" Disable jsDoc trying to steal <C-l>
51+
let g:jsdoc_default_mapping = 0
52+
if !hasmapto('<Plug>(jsdoc)')
53+
nnoremap <silent> <leader>d :call jsdoc#insert()<CR>
54+
endif
55+
5056
" Highlight after 100 characters
5157
augroup vimrc_autocmds
5258
autocmd BufEnter * highlight OverLength ctermfg=red guibg=#592929

0 commit comments

Comments
 (0)