Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
JuanPablo
file 587 lines (586 sloc) 17.528 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 581 582 583 584 585 586
" ==========================================================
" File Name: .vimrc
" Author: juanpabloaj
" Url: http://j.mp/dotvimrc
" ==========================================================
" preamble {{{
" load plugins in .vim/bundle
filetype off
call pathogen#incubate()
call pathogen#helptags()
filetype plugin indent on
" no compatible con vi
set nocompatible
" }}}
" basic options {{{
" basic {{{
set encoding=utf-8
set modelines=0
set autoindent
set showmode
set showcmd
set hidden
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=eol,start,indent
set nu
set laststatus=2
set history=1000
syntax on
set tabstop=4 "numero de espacios por un tab
set sw=4 "numero de espacios por indent
set softtabstop=4
set expandtab
set background=dark
set wrap
set scrolloff=3
set number
if v:version >= 703
set undofile
set undodir=~/.vim/tmp/undo// " undo files
endif
"set textwidth=79
"set formatoptions=qrn1
"set colorcolumn=85
set winwidth=48
set title
    set tildeop " ~2w
" }}}
" Wildmenu completion {{{
set wildmenu
set wildmode=list:longest
set wildignore+=*.aux,*.out,*.toc " LaTeX intermediate files
set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg " binary images
set wildignore+=*.luac " Lua byte code
set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest " compiled object files
set wildignore+=*.pyc " Python byte code
set wildignore+=*.spl " compiled spelling word lists
set wildignore+=*.sw? " Vim swap files
set wildignore+=*.DS_Store? " OSX bullshit
" }}}
set completeopt=longest,menuone",preview
" Resize splits when the window is resized
au VimResized * exe "normal! \<c-w>="
au FocusLost * :wa
" mostrar caracteres especiales
set list
set listchars=tab:▸\ ,eol
runtime macros/matchit.vim
set shortmess=atI
" Backups {{{
set backupdir=~/.vim/tmp/backup// " backups
set directory=~/.vim/tmp/swap// " swap files
set backup " enable backups
" }}}
" }}}
" statusline {{{
set statusline=
set statusline+=%f\ %{SyntasticStatuslineFlag()}
set statusline+=%{FugitiveStatuslineShort()}
set statusline+=%<%h%m%r%=%-0.(%{HasPaste()}\ %2*%{HasNeoComplcache()}\ L%03l/%L\ C%02c%V%)\%h%m%r%=%-16(\ B%{BufferWidget()}\ %y%)
set statusline+=%3*%P%=%{FileTime()}
set rulerformat=%15(%c%V\ %p%%%)
fun! FileTime() "{{{
let ext=tolower(expand("%:e"))
let fname=tolower(expand('%<'))
let filename=fname . '.' . ext
let msg=""
let msg=msg." ".strftime("(Mod %b,%d %y %H:%M:%S)",getftime(filename))
return msg
endfunction
"}}}
fun! HasPaste() "{{{
return &paste ? "paste" : ""
endf "}}}
fun! HasNeoComplcache() "{{{
return !neocomplcache#is_locked() ? "nCC" : ""
endf "}}}
fun! FugitiveStatuslineShort() "{{{
return substitute(fugitive#statusline(),"master","M","g")
endf "}}}
" }}}
" map {{{
let mapleader = ","
" spanish keyboards
ino ç <esc>
vn ç <esc>
nn ñ :
vn ñ :
nnoremap <silent><leader>ve :call NotEmptySplit() <bar>e $D/.vimrc<CR>
" <c-a> is for screen or tmux
nn <silent><c-A> <c-a>
nn <silent><leader>vS :vs $D/.vimrc<CR>
nn <silent><leader>vE :tabnew $D/.vimrc<CR>
nn <leader>vd :sp ~/.vim<CR>
nn <leader>vc :sp ~/.vim/bundle/vim-pixelmuerto/colors/pixelmuerto.vim<CR>
nn <leader>vt :exec "sp $D/.vim/templates/".&ft.".snippets.vim"<CR>
nn <leader>vcl :setl cursorline!<CR>
nn <silent><leader>s :so ~/.vimrc<CR>
nn <leader>t :Translate<space>
nn <silent><leader>j :setl more!<bar>jumps<bar>setl more!<cr>
nn <leader>w : exec line('$') == 1 ? 'e $W' : 'sp $W'<CR>
nn <leader>b :tabnew $HOME/.bashrc<CR>
nn <leader>tn :tabnew
nn <silent><leader>tc :tabclose<CR>
nn <silent>gt : exec tabpagenr('$') == 1 ? 'bn' : 'tabnext'<CR>
nn <silent>gT : exec tabpagenr('$') == 1 ? 'bp' : 'tabprevious'<CR>
nn <silent><leader>f :find
nn <silent><leader>r :registers<CR>
nn <leader>! :w<CR>:!<up><CR>
nn <silent><leader>e :call LastEvernote()<CR>
nn <silent> <leader>vn :call ToggleNumber()<CR>
nn <silent> <leader>vl :setl list!<CR>
nn <silent> <leader>vp :call TogglePaste()<CR>
nn <leader>s<space> :%s/\s\+$//c<CR>
nn <silent><leader>? :map <buffer><CR>
" moverse entre <++>; si hay fold abrir
nnoremap <c-j> /<++><cr>zvc/+>/e<cr>
inoremap <c-j> <ESC>/<++><cr>c/+>/e<cr>
" navigation
nn <leader><Down> :cnext<cr>zvzz
nn <leader><Up> :cprevious<cr>zvzz
nn j gj
nn k gk
vno j gj
vno k gk
" no ex mode ; press gQ
nn Q gq
" format the paragraph
nn <leader>Q gqvap
nn <silent>ZA :qa<CR>
nn <silent>ZD :bd<CR>
" marks {{{
fun! ShowGlobalMarks() "{{{
try
marks ABCDEFGHIJKLMNOPQRSTUVWXYZ
catch /E283:/
endtry
endf
nnoremap <silent> <leader>mu :call ShowGlobalMarks()<CR>
"}}}
fun! ShowNumberMarks() "{{{
try
marks 0123456789
catch /E283:/
endtry
endf
nnoremap <silent> <leader>mf :call ShowNumberMarks()<CR>
"}}}
fun! ShowLocalMarks() "{{{
try
marks abcdefghijklmnopqrstuvwxyz
catch /E283:/
endtry
endf
nnoremap <silent><leader>ml :call ShowLocalMarks()<CR>
"}}}
" }}}
" replace {{{
" en vno con yiw <c-r>0
vno <leader>s :s//<left>
        nn <Leader>S :%s/<c-r>=expand("<cword>")<cr>//c<left><left>
" }}}
" quick close in no modifiable files
nn <silent>q :exec !&modifiable ? ':q' : ''<CR>q
" show todolist item
nn <silent><leader>tl :vimgrep TODO\C % <CR> :copen <CR> :set nowrap <CR>
au! Filetype vim nn <leader>h :h <c-r>=expand("<cword>")<cr><cr>
" }}}
" abbreviate {{{
ia @@ jpabloaj@gmail.com
ia @0 juanpablo <jpabloaj@gmail.com>
ia @1 jpabloaj at gmail dot com
" }}}
" search {{{
nnoremap / :set hls<cr>/\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <silent><leader><space> :setl hlsearch!<cr>
"nnoremap <tab> %
"vnoremap <tab> %
nnoremap n nzzzv
nnoremap N Nzzzv
""}}}
" para las tags en ~/.ctags {{{
let tlist_tex_settings = 'latex;s:sections;g:graphics;l:labels'
let tlist_make_settings = 'make;m:makros;t:targets'
" }}}
" filetype {{{
au BufRead,BufNewFile *.cu setl filetype=c
au BufNewFile,BufRead .*aliases setl filetype=sh
au BufNewFile,BufRead *.zsh-theme setl filetype=zsh
" }}}
" plugins configuration {{{
nnoremap <Leader>vg :GundoToggle<CR>
" tagbar {{{
nn <silent><Leader>l :TagbarToggle<CR>
        let tagbar_width = 30
let tagbar_compact = 1
"let tabbar_left = 1
let g:tagbar_type_tex = {
\ 'ctagstype' : 'latex',
\ 'kinds' : [
\ 's:sections',
\ 'g:graphics',
\ 'l:labels',
\ 'r:refs:1',
\ 'p:pagerefs:1'
\ ],
\ 'sort' : 0
\ }
" }}}
" object indent {{{
" sort indent block
nmap <Leader>ss vii!sort<cr>
" }}}
" fugitive {{{
nnoremap <silent><leader>gd :Gdiff<CR>
nn <silent><leader>gc :Gcommit -a<CR>
nn <silent><leader>gs :Gstatus<CR>
nn <silent><leader>gw :Gwrite<CR>
nn <silent><leader>gr :Gread<CR>
nn <silent><leader>gb :Gblame<CR>
nn <silent><leader>g0 :w <bar> Gsplit! diff -U0 <bar>
        \ exe BufferIsEmpty() ? "q <bar> redraw <bar> echomsg 'git: No changes'" : ''<CR>
nn <silent><leader>g1 :w <bar> :Gdiff HEAD~1<CR>
nn <silent><Leader>gD <c-w>h:bd<cr>
nn <silent><Leader>gp :Git push
nn <silent><Leader>gP :Git push<CR><CR>
" }}}
" vimshell {{{
let g:vimshell_user_prompt='substitute(getcwd(),eval("$HOME"),"~","")'
let g:vimshell_prompt = '$ '
nn <silent><leader>Ç :call NotEmptySplit() <bar> VimShell<cr>
nn <silent><leader>ç :call NotEmptySplit() <bar> VimShellBufferDir<cr>
" alias en ~/.vimshrc
" autocmd FileType vimshell call vimshell#altercmd#define('g', 'git')
" }}}
" Extradite : addon for fugitive {{{
nnoremap <silent><leader>ge :Extradite<CR>
let g:extradite_showhash=1
" }}}
" NERDtree {{{
nnoremap <silent><leader>n :NERDTreeToggle<CR>
let NERDTreeShowBookmarks=1
" }}}
" snipmate {{{
nn <silent><Leader>vs :SnipMateOpenSnippetFiles<CR>
" &cms : commentstring
fun! AddFolding(text)
return substitute(a:text,'\n'," ".substitute(&cms,'%s',"",'g')." {{{\n",1)."\n".substitute(&cms,'%s',"",'g')." }}}"
endf
" TODO function AddDocumentation; char @
fun! SnippetsWithFolding(scopes, trigger, result)
" hacky: temporarely remove this function to prevent infinite recursion:
call remove(g:snipMateSources, 'with_folding')
" get list of snippets:
let result = snipMate#GetSnippets(a:scopes, substitute(a:trigger,'_\(\*\)\?$','\1',''))
let g:snipMateSources['with_folding'] = funcref#Function('SnippetsWithFolding')
" add folding:
for k in keys(result)
let a:result[k.'_'] = map(result[k],'AddFolding(v:val)')
endfor
endf
" force setting default:
runtime plugin/snipMate.vim
" add our own source
let g:snipMateSources['with_folding'] = funcref#Function('SnippetsWithFolding')
" }}}
" Syntastic {{{
let g:syntastic_enable_signs = 0
"let g:syntastic_stl_format = '[%E{Error 1/%e: line %fe}%B{, }%W{Warning 1/%w: line %fw}]'
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['tex','html'] }
" }}}
" showmarks {{{
let g:showmarks_enable=0
nn <silent> <leader>mo :ShowMarksOn<CR>
nn <silent> <leader>mt :ShowMarksToggle<CR>
"}}}
" unite {{{
nn <silent> <leader>ub :<C-u>Unite buffer<CR>
nn <silent> <leader>uf :<C-u>UniteWithBufferDir -buffer-name=files file<CR>
nn <silent> <leader>ur :<C-u>Unite -buffer-name=register register<CR>
nn <silent> <leader>um :<C-u>Unite file_mru<CR>
nn <silent> <leader>uu :<C-u>Unite buffer file_mru<CR>
nn <silent> <leader>ua :<C-u>UniteWithBufferDir -buffer-name=files buffer file_mru bookmark file<CR>
" unite-ssh
        nn <leader>us :VimFiler ssh://
au FileType unite inoremap <buffer><expr> s unite#do_action('split')
au FileType unite nnoremap <buffer><expr> s unite#do_action('split')
" }}}
" vimfiler {{{
        let g:vimfiler_as_default_explorer = 1
        nn <Leader>vf :VimFiler -split -horizontal <c-r>=expand("%:p:h")<cr><CR>
        nn <Leader>vF :VimFiler -split -horizontal ~<CR>
let g:vimfiler_execute_file_list = {}
let g:vimfiler_execute_file_list['mkd'] = 'vim'
" }}}
" markup {{{
nn <silent> <leader>mm :MkdToHtml<CR>
" }}}
" neocomplcache {{{
let g:neocomplcache_enable_at_startup = 1
"let g:neocomplcache_snippets_disable_runtime_snippets = 1
let g:neocomplcache_snippets_dir='~/.vim/bundle/snipmate-snippets/snippets'
nnoremap <silent><leader>nt :NeoComplCacheToggle<CR>
" }}}
" BufferWidget {{{
let g:buffer_widget_view='bars'
" }}}
" Ack {{{
" you have to install ack
nn <leader>a :Ack! --nobinary <cword><CR>
" }}}
" surround {{{
" surround example, zf es more simple
"autocmd FileType * let b:comChar = g:commentChar[&ft] |
"\ let b:surround_{char2nr('z')}=b:comChar."{{{ \r ".b:comChar."}}}" |
"\ let b:surround_{char2nr('Z')}="\" \<++\> {{{ \r \"}}}" |
" in latex word to bf ysiw* " complete line with yss*
autocmd FileType tex let g:surround_42 = "{\\bf \r}"
"}}}
" simplenote {{{
if filereadable(expand('~').'/.simplenoterc')
source ~/.simplenoterc
endif
for i in ['l','t','u','d','n']
exe "nn <silent><leader>s".i." :Simplenote -".i."<CR>"
endfor
let g:SimplenoteUseMarkdown=1
" }}}
" rainbow {{{
nn <silent><leader>R :RainbowParenthesesToggle<cr>
func! s:rainbow_load()
RainbowParenthesesLoadRound
RainbowParenthesesLoadSquare
endfunc
au VimEnter * RainbowParenthesesToggle
"au FileType *.py RainbowParenthesesLoadRound
au FileType * au Syntax * cal s:rainbow_load()
" }}}
" dispatch {{{
nmap <Leader>d :Dispatch<CR>
nmap <Leader>D :Dispatch
" }}}
"}}}
" spell {{{
" [s ]s z= zg
"augroup filetypedetect
au FileType tex,mkd,markdown setl spell
"augroup END
set spelllang=es,en
""}}}
" Folding {{{
" metodo de folding
set fdm=marker
" auto cerrado
"set fcl=all
"}}}
" Templates + manual snippets {{{1
function! LoadTemplate(extension)
silent! execute '0r ~/.vim/templates/'. a:extension. '.tpl'
silent! normal Gddgg
silent! execute 'source ~/.vim/templates/'. a:extension. '.snippets.vim'
endfunction
function! LoadSnippets(extension)
    let filename = expand("~/.vim/templates/"). expand(a:extension) .".snippets.vim"
if filereadable(filename)
silent! execute 'source '.filename
endif
endfunction
" templates y snippets en base a la extension
autocmd BufNewFile * silent! call LoadTemplate('%:e')
autocmd BufRead,BufNewFile * silent! call LoadSnippets('%:e')
"}}}1
"256 colores {{{
if $TERM =~ '^xterm' || $TERM =~ '^screen' || $TERM =~ 'rxvt'
set t_Co=256
colorscheme pixelmuerto
"colorscheme xoria256
"colorscheme calmar256
endif
""}}}
" highlight {{{
highlight whitespaceEOL term=reverse ctermbg=Grey guibg=Grey
au Syntax * syn match whitespaceEOL /\s\+\(\%#\)\@!$/ containedin=ALL
" don't show whitespaceEOL in unite ft
au! Filetype unite,vimshell,tlibInputList hi whitespaceEOL ctermbg=bg
" }}}
" Ultima session {{{1
" guardar y abrir
function! SaveSession()
execute 'mksession! ~/.vim/sessions/session.vim'
endfunction
function! LoadSession()
if argc() == 0
execute 'source ~/.vim/sessions/session.vim'
endif
endfunction
"autocmd VimEnter * call LoadSession()
"autocmd VimLeave * call SaveSession()
"}}}1
" autocmd {{{
" limpiar la terminal al salir de vim
"autocmd VimLeave * !clear
" When vimrc is edited, reload it
au! CmdwinEnter * nn <silent><buffer> q :q<CR>
autocmd! bufwritepost .vimrc source ~/.vimrc
augroup longLines
au!
au! filetype zsh,sh,vim
\ syn match ColorColumn /\%>80v.\+/
augroup END
" never mix tabs and spaces
au FileType vim,python if search('^\t') >0 |
\ exe "setl noexpandtab" |
\ endif
" Restore cursor position
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
autocmd InsertEnter * hi statusline ctermfg=255
autocmd InsertLeave * hi statusline ctermfg=250
autocmd BufNewFile,BufRead *.json set ft=javascript
au FileType qf call AdjustWindowHeight(3, 10)
function! AdjustWindowHeight(minheight, maxheight)
        let l = 1
        let n_lines = 0
        let w_width = winwidth(0)
        while l <= line('$')
" number to float for division
            let l_len = strlen(getline(l)) + 0.0
            let line_width = l_len/w_width
            let n_lines += float2nr(ceil(line_width))
            let l += 1
        endw
exe max([min([n_lines, a:maxheight]), a:minheight]) . "wincmd _"
endfunction
" }}}
" TabMessage {{{1
" por funcion a newtab
function! TabMessage(cmd)
set nonu
redir => message
silent execute a:cmd
redir END
set nu
tabnew
silent put=message
set nomodified
endfunction
command! -nargs=+ -complete=command TabMessage call TabMessage(<q-args>)
" }}}1
" Translate {{{1
" TODO make this a vim plugin
" TODO set language as var
" Traduccion, solo funcional con internet
function! Translate(entrada)
let en=substitute(a:entrada," ","%20","g")
let en = substitute(en, "[ ]*$","","")
let palabra= system('curl -e www.google.com "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q='.en.'&langpair=en%7Ces"')
echo split(strpart(palabra,stridx(palabra,"Text") + 7 ),'\"')[0]
endfunction
command! -nargs=+ -complete=command Translate call Translate(<q-args>)
" }}}1
" Hg {{{
" Inspirated in http://bitbucket.org/sjl/dotfiles <Steve Losh>
function! s:HgDiff() " {{{
diffthis
let fn = expand('%:p')
let ft = &ft
wincmd v
edit __hgdiff_orig__
setlocal buftype=nofile
normal ggdG
execute "silent r!hg cat --rev . " . fn
normal ggdd
execute "setlocal ft=" . ft
diffthis
diffupdate
autocmd! BufWinLeave __hgdiff_orig__ bdelete __hgdiff_orig__ | diffoff | so ~/.vimrc
endf
command! -nargs=0 HgDiff call s:HgDiff()
nnoremap <leader>hd :HgDiff<cr>
" }}}
function! s:HgBlame() " {{{
let fn = expand('%:p')
wincmd v
wincmd h
edit __hgblame__
vertical resize 28
setlocal scrollbind winfixwidth nolist nowrap nonumber buftype=nofile ft=none
normal ggdG
execute "silent r!hg blame -undq " . fn
normal ggdd
execute ':%s/\v:.*$//'
wincmd l
setlocal scrollbind
syncbind
autocmd! BufWinLeave __hgblame__ bdelete __hgblame__ | so ~/.vimrc
endf
command! -nargs=0 HgBlame call s:HgBlame()
nnoremap <leader>hb :HgBlame<cr>
" }}}
" }}}
fun! TogglePaste() "{{{
" setl paste! && remove elements for copy
setl paste!
if &paste
setl nolist
setl nonu
:exec exists('+relativenumber') ? 'setl nornu': ''
else
setl list
setl nu
:exec exists('+relativenumber') ? 'setl rnu': ''
endif
endf "}}}
fun! ToggleNumber() "{{{
if exists('+relativenumber')
:exec &nu==&rnu? "setl nu!" : "setl rnu!"
else
setl nu!
endif
endf "}}}
fun! LastEvernote() "{{{
" a better solution is with evernote api
let evernoteDir=expand("$HOME")."/Library/Application*Support/Evernote/data"
let dataDir=system("ls -trlh ".evernoteDir."| tail -n 1| awk '{print $NF}'")
let contentDir=evernoteDir."/".dataDir."/content"
let contentDir=substitute(contentDir,"\n","",'g')
let note=system("ls -trlh ".contentDir." | tail -n 1| awk '{print $NF}'")
let note=substitute(note,"\n","",'g')
sil! exec 'sp '.contentDir.'/'.note.'/content.html'
sil! exec '1s/>/>\r/g'
sil! exec '%s/<br.*\/>/<br\/>\r/g'
sil! exec '%s/<\//\r<\//g'
sil! exec 'g/^\s*$/d'
normal gg
sil! exec '1,4fo'
sil! exec '$-1,$fo'
setl spell
endf
"}}}
fun! BufferIsEmpty() "{{{
if line('$') == 1 && getline(1) == ''
return 1
else
return 0
endif
endf "}}}
fun! NotEmptySplit() "{{{
if !BufferIsEmpty()
exec 'sp'
endif
endf
"}}}
Something went wrong with that request. Please try again.