-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.vimrc
More file actions
executable file
·580 lines (511 loc) · 19.2 KB
/
Copy path.vimrc
File metadata and controls
executable file
·580 lines (511 loc) · 19.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
set nocompatible
" Vim make code good fun
" No mousey only keyboard
" Now type type!
" - @iDoMeteor
" To use vi is to practice Zen,
" Every command is a koan,
" profound to the user,
" unintelligible to the uninitiated.
" You discover truth every time you use it.
" - reddy@lion.austin.com
" Requirements (not complete):
" node
" node-less
"
" Node modules:
" Linters:
" csslint
" coffeelint
" eslint
" jshint (deprecated)
" jslint (deprecated)
" jsonlint
" Formatters:
" esformatter (not mature enough yet)
" js-beautify (deprecated)
" jscs
" tidy-html5
" Gems
" mdl
" // one other...hm
" ### NeoBundle Startup ###
" :NeoBundleList - lists configured plugins
" :NeoBundleInstall - installs plugins; append `!` to update or just :PluginUpdate
" :NeoBundleSearch foo - searches for foo; append `!` to refresh local cache
" :NeoBundleClean - confirms removal of unused plugins; append `!` to auto-approve removal
" :h NeoBundle
filetype off
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
set runtimepath+=/home/j/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('/home/j/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
" ### Plugins ###
NeoBundle 'Shougo/vimproc.vim', {
\ 'build' : {
\ 'windows' : 'tools\\update-dll-mingw',
\ 'cygwin' : 'make -f make_cygwin.mak',
\ 'mac' : 'make -f make_mac.mak',
\ 'linux' : 'make',
\ 'unix' : 'gmake',
\ },
\ }
NeoBundle "Shougo/vimshell"
NeoBundle 'editorconfig/editorconfig-vim'
NeoBundle 'elzr/vim-json'
NeoBundle 'gcmt/taboo.vim'
NeoBundle 'godlygeek/tabular'
NeoBundle 'groenewege/vim-less'
NeoBundle 'hail2u/vim-css3-syntax'
NeoBundle 'heavenshell/vim-jsdoc'
NeoBundle 'hushicai/tagbar-javascript.vim'
NeoBundle 'jlanzarotta/bufexplorer'
NeoBundle 'kchmck/vim-coffee-script'
NeoBundle 'leafgarland/typescript-vim'
NeoBundle 'lukaszkorecki/CoffeeTags'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'marijnh/tern_for_vim'
NeoBundle 'mbbill/undotree'
NeoBundle 'mustache/vim-mustache-handlebars'
NeoBundle 'myint/syntastic-extras'
NeoBundle 'othree/html5.vim'
NeoBundle 'othree/jsdoc-syntax.vim'
NeoBundle 'ramitos/jsctags'
NeoBundle 'scrooloose/nerdcommenter'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'skammer/vim-css-color'
NeoBundle 'slava/tern-meteor'
NeoBundle 'slava/vim-spacebars'
NeoBundle 'tpope/vim-abolish'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'tpope/vim-markdown'
NeoBundle 'tpope/vim-speeddating'
NeoBundle 'tpope/vim-surround'
NeoBundle 'tpope/vim-unimpaired'
NeoBundle 'vim-scripts/ShowMarks'
NeoBundle 'vim-scripts/sessionman.vim'
NeoBundle 'vim-scripts/sudo.vim'
NeoBundle 'vim-scripts/winmanager'
NeoBundle 'wincent/Command-T'
" These are either deprecated, slow, buggy, experimental,
" used on demand, or installed for real in .vim/
" NeoBundle 'FredKSchott/CoVim'
" NeoBundle 'MarcWeber/vim-addon-mw-utils'
" NeoBundle 'Shougo/neomru.vim'
" NeoBundle 'Shougo/neosnippet-snippets'
" NeoBundle 'Shougo/neosnippet.vim'
" NeoBundle 'Shougo/neossh.vim'
" NeoBundle 'Shougo/unite.vim'
" NeoBundle 'Valloric/YouCompleteMe' " Deprecated for NeoComplete
" NeoBundle 'airblade/vim-gitgutter'
" NeoBundle 'bling/vim-airline'
" NeoBundle 'bonsaiben/bootstrap-snippets'
" NeoBundle 'easymotion/vim-easymotion'
" NeoBundle 'einars/js-beautify'
" NeoBundle 'flazz/vim-colorschemes'
" NeoBundle 'haya14busa/vim-easyoperator-line'
" NeoBundle 'haya14busa/vim-easyoperator-phrase'
" NeoBundle 'honza/vim-snippets'
" NeoBundle 'idometeor/vim-less' " Coming soon
" NeoBundle 'jamescarr/snipmate-nodejs'
" NeoBundle 'kien/ctrlp.vim' sub'd w/Unite
" NeoBundle 'maksimr/vim-jsbeautify'
" NeoBundle 'mattn/emmet-vim'
" NeoBundle 'mattn/webapi-vim'
" NeoBundle 'myhere/vim-nodejs-complete'
" NeoBundle 'nathanaelkane/vim-indent-guides'
" NeoBundle 'othree/javascript-libraries-syntax.vim'
" NeoBundle 'othree/yajs.vim' " might be the best of these
" NeoBundle 'pangloss/vim-javascript'
" NeoBundle 'raimondi/delimitMate' " drives me nuts :D
" NeoBundle 'szw/vim-ctrlspace'
" NeoBundle 'terryma/vim-multiple-cursors'
" NeoBundle 'tomtom/quickfixsigns_vim'
" NeoBundle 'tomtom/tlib_vim'
" NeoBundle 'tomtom/tskeleton_vim'
" NeoBundle 'tpope/vim-repeat'
" NeoBundle 'vim-scripts/JavaScript-Indent'
" NeoBundle 'vim-scripts/SyntaxComplete'
" NeoBundle 'vim-scripts/bash-support.vim'
" NeoBundle 'wavded/vim-stylus'
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
" ############# End Plugins #############
" ############# Vim Options #############
" colorsceme=myterminaldoesit
" let mapleader=' ' " mapleader is spacebar
" set scrolloff=999 " sets impossible window padding (v center cursor)
" set autowrite " write when switching buffers
" set backspace=indent,eol,start
color commode
hi CursorColumn guibg=#333333 " highlight cursor
hi cursorline guibg=#333333 " highlight bg color of current line
let g:netrw_liststyle=3 " explorer in tree mode by default
set autoindent " indent it foo
set background=dark " of course
set backup " keep a backup file
set backupdir=$HOME/Archives/vim " where to keep it
set comments=sl:/*,mb:*,elx:*/
set cursorline " highlight current line
set encoding=utf-8 " characters n stuff
set expandtab
set foldenable " turn it on
set foldmethod=syntax " type of folding - syntax/indent/marker/manual/diff/expr
set guioptions-=e " console style tabs in gvim (if u launch by accident :D)
set hidden " hide buffer when switching rather than close it
set history=500 " keep X lines of non-viminfo-specified histories line history
set hlsearch
set ignorecase " ignores case
set incsearch " do incremental searching
set laststatus=2
set lazyredraw " for quickfixsigns
set matchpairs+=<:>
set mouse=a
set nowrap " wrapping kills me
set nu " line numbers
set omnifunc=syntaxcomplete#Complete " turn it on
set pastetoggle=<F12>
set ruler " show the cursor position all the time
set ruler " show the ruler
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%) " a ruler on steroids
set scrolljump=3 " lines to scroll when cursor leaves?
set scrolloff=2 " sets window padding (cursor moves as expected w/SJ 3)
set sessionoptions+=tabpages,globals " to remember tab names w/sessions
set shell=/bin/bash
set shiftwidth=2
set shortmess+=filmnrxoOtT " abv messages, avoids 'hit enter'
set showcmd
set showmatch " show matching bookends
set showmode " show current mode
set smartcase " search case sensitive if search contains caps
set softtabstop=2
set statusline=%<%f\ %=\:\b%n%y%m%r%w\ %l,%c%V\ %P
set tabpagemax=100 " max tabs to show
set timeoutlen=1000 " till commands stop listening for completion
set undofile
set undodir=~/.vim/undo-history
set undolevels=10000
set undoreload=10000
set viminfo='500,\"500,:500,@500,/500,!
set visualbell " flash on alert
set whichwrap=b,s,h,l,<,>,[,] "
set wildignore=*.so,*.swp,.swo,.tmp
set wildmenu " shows full menu
set wildmode=list:full " also 'full'
set writebackup " write backups on buffer write
syntax on
" ### Auto-Commands ###
augroup vimrcEx
au!
autocmd BufEnter * lcd %:p:h " cd to file's dir
autocmd BufEnter * let &titlestring = "[vim(" . expand("%:t") . ")]"
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif " Go to last position on file open
autocmd BufWritePre *.js JscsFix
autocmd BufWritePost $MYVIMRC so $MYVIMRC
" autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS " bah
autocmd FileType html,markdown setlocal foldmethod=indent
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType markdown setlocal textwidth=80
" autocmd FileType text setlocal textwidth=80 " do it myself thanx
augroup END
" ### Goofy fingers hacks
command! Noh :noh
" ############# Functions #############
fun! BreakLine()
if (mode() == 'i')
return ((getline(".")[col(".")-2] == '{' && getline(".")[col(".")-1] == '}') ||
\(getline(".")[col(".")-2] == '(' && getline(".")[col(".")-1] == ')'))
else
return 0
endif
endfun
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
if !exists(":JscsFix")
function JscsFix()
let l:winview = winsaveview()
% ! jscs -x
call winrestview(l:winview)
endfunction
command JscsFix :call JscsFix()
endif
" ############# Plugin Options #############
" ### Bash ###
let g:BASH_AuthorName = '@iDoMeteor, aka Jason Edward White'
let g:BASH_AuthorRef = 'iDM'
let g:BASH_Company = 'http://iDoMeteor.com'
let g:BASH_CopyrightHolder="Jason Edward White, Marquette, MI"
let g:BASH_Email = 'idometeor@gmail.com'
let g:sh_indent_case_labels=1 " fix case statement indents (verify)
" ### Buffer Explorer ###
" let g:bufExplorerFindActive=0 " do not go to active window
" let g:bufExplorerReverseSort=1 " reverse sort by default
" let g:bufExplorerShowUnlisted=1 " show unlisted by default
" let g:bufExplorerSplitBelow=1 " where to split
" let g:bufExplorerSplitRight=0 " where to vertical split
let g:bufExplorerDefaultHelp=0 " turn off default help
let g:bufExplorerDetailedHelp=0 " turn on detailed help
let g:bufExplorerSplitVertSize=40 " set width
let g:bufExplorerShowDirectories=1 " don't show directories in list
let g:bufExplorerShowRelativePath=1 " show relative path
let g:bufExplorerSortBy='fullpath' " default sort order
" mru, number, fullpath, extension
let g:bufExplorerSplitOutPathName=0 " don't split path/file names
" ### CoVim ###
" let CoVim_default_name = "idometeor"
" let CoVim_default_port = "31337"
" ### Emmet Options ###
" let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.vim/emmit-custom-snippets.json')), "\n"))
" ### Easy Motion ###
" let g:EasyMotion_smartcase = 1
" let g:EasyMotion_startofline = 0
" ### JsDoc ###
let g:jsdoc_allow_input_prompt=1
let g:jsdoc_additional_descriptions=1
let g:jsdoc_access_descriptions=1
let g:jsdoc_allow_shorthand=1
" ### Mustache ###
let g:mustache_abbreviations = 1
" ### Javascript Libraries Syntax ###
let g:used_javascript_libs = 'handlebars,jQuery,underscore'
" ### Tagbar ###
let g:tagbar_type_markdown = {
\ 'ctagstype' : 'markdown',
\ 'kinds' : [
\ 'h:Heading_L1',
\ 'i:Heading_L2',
\ 'k:Heading_L3'
\ ]
\ }
" ### Multiple Cursors Options ###
" let g:multicursor_insert_maps
" let g:multicursor_normal_maps
" ### Sessionman Options ###
let g:sessionman_save_on_exit=1
" ### Show Marks ###
let showmarks_enable = 1 " disable launch at startup
let g:showmarks_ignore_type="hprmq"
" ### Surroundings ###
let b:surround_indent = 1 " enable automatic vim re-indenting
" ### Syntastic Options ###
"" let g:syntastic_<filetype>_checkers = ['<checker-name>']
" let g:syntastic_aggregate_errors = 1
let g:syntastic_always_populate_loc_list = 0
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 1
let g:syntastic_error_symbol = "✗"
let g:syntastic_full_redraws=0
let g:syntastic_html_tidy_exec = 'tidy5'
let g:syntastic_asm_checkers=['gcc']
let g:syntastic_javascript_checkers=['eslint']
let g:syntastic_gitcommit_checkers = ['language_check']
let g:syntastic_css_checkers=['csslint']
let g:syntastic_less_checkers=['lessc']
let g:syntastic_markdown_checkers=['mdl']
let g:syntastic_json_checkers=['jsonlint']
let g:syntastic_typescript_checkers=['tslint']
let g:syntastic_mode_map = {"mode": "passive"}
let g:syntastic_warning_symbol = "⚠"
set statusline+=%#warningmsg#
set statusline+=%*
set statusline+=%{SyntasticStatuslineFlag()}
" ### Taboo Options ###
let g:taboo_tab_format=" %N($W) %f%m"
" ### Tern Options ###
" let g:tern_show_argument_hints = 'on_move'
" ### Undotree Options ###
let g:undotree_SetFocusWhenToggle = 1 " auto-focus on open
" ### Vim Shell Options ###
" let g:vimshell_split_command = "tabnew"
let g:vimshell_prompt = '% '
let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
" ### Winmanager Options ###
let g:winManagerWidth=40
" ### Mappings ###
" Quick tip
" map[!] <keystroke> command; with ! makes insert mode, w/o is normal mode
" ### Allish Modes ###
" map / <Plug>(easymotion-sn)
" map N <Plug>(easymotion-prev)
" map n <Plug>(easymotion-next)
" map <Leader>h <Plug>(easymotion-linebackward)
" map <Leader>j <Plug>(easymotion-j)
" map <Leader>k <Plug>(easymotion-k)
" map <Leader>l <Plug>(easymotion-lineforward)
" ### Insertish Modes ###
" Buffers
nnoremap ,b <ESC>:CommandTBuff<CR>
nnoremap ,m <ESC>:bnext<CR>
nnoremap ,n <ESC>:bprevious<CR>
" Seem odd? Try it!
" Don't think about it, just do it!
" Comments
imap ,* \cs
imap ,/ \cy
inoremap ,cc * ******************************************************************************/<ESC>
inoremap ,ci //
inoremap ,co /*********************************************************************************<CR>
" Definition lists
inoremap ,dd <dd><cr>XXX<cr></dd><ESC>?xxx<CR>
inoremap ,dl <dl><cr><dt><cr>XXX<cr></dt><cr><dd><cr>XXX<cr></dd><cr></dl><ESC>7k/xxx<cr>
inoremap ,dt <dt><cr>XXX<cr></dt><ESC>?xxx<cr>
" Meteor Events
inoremap ,ec 'XXX .XXX': function () {<cr>},<cr>2k0/xxx<cr>
inoremap ,ei 'XXX #XXX': function () {<cr>},<cr>2k0/xxx<cr>
inoremap ,ev 'XXX XXX': function () {<cr>},<cr>2k0/xxx<cr>
inoremap ,fa function () {<cr>}<ESC>O
inoremap ,fa function XXX () {<cr>}<ESC>O
" Headings
inoremap ,h1 <h1>XXX</h1><ESC>?xxx<cr>
inoremap ,h2 <h2>XXX</h2><ESC>?xxx<cr>
inoremap ,h3 <h3>XXX</h3><ESC>?xxx<cr>
inoremap ,h4 <h4>XXX</h4><ESC>?xxx<cr>
inoremap ,h5 <h5>XXX</h5><ESC>?xxx<cr>
inoremap ,h6 <h6>XXX</h6><ESC>?xxx<cr>
" List items
inoremap ,li <li><cr>XXX<cr></li><ESC>?xxx<cr>
inoremap ,ol <ol><cr><li><cr>XXX<cr></li><cr></ol><ESC>?xxx<cr>
" ECMA Objects
inoremap ,om xxx: function () {<cr>},<ESC>k0/xxx<cr>
inoremap ,oo xxx: {<cr>},<ESC>k0/xxx<cr>
inoremap ,op xxx: XXX,<ESC>0/xxx<cr>
" Spacebars
inoremap ,sbea {{#each XXX}}<cr>{{/if}}<esc>0k/xxx<cr>
inoremap ,sbif {{#if XXX}}<cr>{{/if}}<esc>0k/xxx<cr>
inoremap ,sbife {{#if XXX}}<cr>{{else}}<cr>{{/if}}<esc>0kk/xxx<cr>
inoremap ,sbun {{#unless XXX}}<cr>{{/unless}}<esc>0k/xxx<cr>
inoremap ,sbune {{#unless XXX}}<cr>{{else}}<cr>{{/unless}}<esc>0kk/xxx<cr>
" Tabs
inoremap ,M <ESC>:tabnext<CR>
inoremap ,N <ESC>:tprevious<CR>
inoremap ,t <ESC>:tabnew<CR>
inoremap ,t <ESC>:tabnew<CR>
inoremap ,tR <ESC>:TabooReset<CR>
inoremap ,to <ESC>:TabooOpen<CR>
inoremap ,tr <ESC>:TabooRename<CR>
" Tagbar
inoremap ,tb <ESC>:TagbarToggle<CR>
" Tern
inoremap ,tD <ESC>:TernDoc<CR>
inoremap ,tR <ESC>:TernRename<CR>
inoremap ,tT <ESC>:TernType<CR>
inoremap ,td <ESC>:TernDef<CR>
inoremap ,tn <Esc>:tabnext<CR>
inoremap ,tp <Esc>:tabprev<CR>
inoremap ,tr <ESC>:TernRefs<CR>
" Underscore
inoremap ,ue _.each(XXX, function (value, key) {<cr>XXX<cr>}<esc>0kk/xxx<CR>ce
" Unordered list
inoremap ,ul <ul><cr><li><cr>XXX<cr></li><cr></ul><ESC>?xxx<cr>
" Window manager
inoremap ,wm1 <ESC>:FirstExplorerWindow<CR>
inoremap ,wm2 <ESC>:BottomExplorerWindow<CR>
inoremap ,wmt <ESC>:WMToggle<CR>
" That one thing
inoremap <C-c> <CR><Esc>O
" That other thing
inoremap <expr> <CR> BreakLine() ? "<CR><ESC>O" : "<CR>"
" ### Normalish Modes ###
" Buffers
nnoremap ,b :CommandTBuff<cr>
nnoremap ,m :bnext<CR>
nnoremap ,n :bprevious<CR>
" Editing & Misc
nnoremap ,do :DiffOrig<CR>
nnoremap ,fc gg=G
nnoremap ,s! :set spell!<CR>
nnoremap ,zz :set &scrolloff=999-&scrolloff=2<CR>
nnoremap <S-Down> ddp
nnoremap <S-Up> ddkP
nnoremap gV `[v`]
" Files
noremap ,W :w !sudo tee % > /dev/null
nnoremap ,e :CommandT<CR>
" Git
nnoremap ,ga :Git add %:p<CR><CR>
nnoremap ,gb :Git branch<Space>
nnoremap ,gc :Gcommit -v -q<CR>
nnoremap ,gd :Gdiff<CR>
nnoremap ,ge :Gedit<CR>
nnoremap ,gg :GitGutterLineHighlightsToggle<CR>
nnoremap ,gl :silent! Glog<CR>:bot copen<CR>
nnoremap ,gm :Gmove<Space>
nnoremap ,go :Git checkout<Space>
nnoremap ,gp :Ggrep<Space>
nnoremap ,gpl :Dispatch! git pull<CR>
nnoremap ,gpom :Gpush origin master<CR>
nnoremap ,gps :Dispatch! git push<CR>
nnoremap ,gr :Gread<CR>
nnoremap ,gs :Gstatus<CR>
nnoremap ,gt :Gcommit -v -q %:p<CR>
nnoremap ,gw :Gwrite<CR><CR>
" Locations
nnoremap ,lc :lclose<CR>
nnoremap ,ln :lnext<CR>
nnoremap ,lo :lopen<CR>
nnoremap ,lp :lprevious<CR>
nnoremap ,lw :lwindow<CR>
" Navigation
nnoremap ,h <C-W>h
nnoremap ,j <C-W>j
nnoremap ,k <C-W>k
nnoremap ,l <C-W>l
" Plugins
nnoremap ,pc :NeoBundleClean<CR>
nnoremap ,pi :NeoBundleInstall %r:p<CR>
nnoremap ,pi! :NeoBundleInstall! %:p<CR>
nnoremap ,pl :NeoBundleList<CR>
nnoremap ,ps :NeoBundleSearch %:p<CR>
nnoremap ,pu :NeoBundleUpdate<CR>
" Sessions
nnoremap ,sc :SessionClose<CR>
nnoremap ,sd :SessionDelete<CR>
nnoremap ,se :SessionEdit<CR>
nnoremap ,sl :SessionList<CR>
" nnoremap ,so :SessionOpen<CR>
nnoremap ,ss :SessionSave<CR>
" nnoremap ,ssa :SessionSaveAs<CR>
" nnoremap ,ssl :SessionShowList<CR>
" Syntax
nnoremap ,fs :JscsFix<CR>
nnoremap ,jd <Plug>(jsdoc)
nnoremap ,tD :TernDoc<CR>
nnoremap ,tR :TernRename<CR>
nnoremap ,tT :TernType<CR>
nnoremap ,tb :TagbarToggle<CR>
nnoremap ,td :TernDef<CR>
nnoremap ,tr :TernRefs<CR>
" Tabs
nnoremap ,M :tabnext<CR>
nnoremap ,N :tprevious<CR>
nnoremap ,tn :tabnew<CR>
nnoremap ,to :TabooOpen<CR>
nnoremap ,tr :TabooRename<CR>
nnoremap ,tR :TabooReset<CR>
" Windows
nnoremap ,ut :UndotreeToggle<CR>
nnoremap ,wm1 :FirstExplorerWindow<cr>
nnoremap ,wm2 :BottomExplorerWindow<cr>
nnoremap ,wmt :WMToggle<cr>
nnoremap ,fo :E<cr>
" ### Selectish Modes ###
" Intuitive pasters
vmap <S-Down> xp`[V`]
vmap <S-Up> xkP`[V`]
" Reselect visual block after indentation change
vnoremap < <gv
vnoremap > >gv
" ### Special Modes ###
" omap / <Plug>(easymotion-tn)
" ### END ###