Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f7f92bcb78
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (54 sloc) 1.865 kb
" ------------------------------------------------------------------------------
" MAPPINGS
" ------------------------------------------------------------------------------
" Center screen around cursor.
nmap <space> zz
" Insert newline.
nmap <leader><Enter> o<ESC>
" Paste toggle.
nnoremap <leader>p :set invpaste paste?<CR>
" Clear last search.
nnoremap <silent> <leader><space> :noh<CR>
" Strip trailing whitespace.
function! StripWhitespace()
let save_cursor = getpos(".")
let old_query = getreg('/')
:%s/\s\+$//e
call setpos('.', save_cursor)
call setreg('/', old_query)
endfunction
nnoremap <silent> <leader>s :call StripWhitespace()<CR>
" ------------------------------------------------------------------------------
" APPEARANCE
" ------------------------------------------------------------------------------
" Invisible chars.
set listchars=""
set listchars+=tab:>-
set listchars+=eol:¬
set listchars+=trail:Ø
set listchars+=extends:>
set listchars+=precedes:<
" Colors.
set background="dark"
" Color theme.
let g:solarized_visibility="low"
color solarized
" Status line.
if has("statusline") && !&cp
set statusline=
set statusline+=%3.3n\ " Buffers
set statusline+=%f\ " Filename
set statusline+=%m%r\ " Flags
if janus#is_plugin_enabled('fugitive')
set statusline+=%{fugitive#statusline()}\ " Fugitive status
endif
if janus#is_plugin_enabled('syntastic')
set statusline+=%{SyntasticStatuslineFlag()}\ " Syntastic status
endif
set statusline+=%=
set statusline+=[%p%%] " Percentage
set statusline+=[%l/%L]\ " Line
set statusline+=[%v] " Column
set statusline+=[0x%04B]\ " Character
set statusline+=%*
endif
Jump to Line
Something went wrong with that request. Please try again.