version 6.0
set encoding=utf-8
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
if has('vim_starting')
set runtimepath+=~/vimfiles/bundle/neobundle.vim
endif
call neobundle#rc(expand("$HOME/vimfiles/bundle"))
NeoBundle 'airline'
set ffs=unix,dos,mac
map! <S-Insert> <MiddleMouse>
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
map <S-Insert> <MiddleMouse>
let &cpo=s:cpo_save
unlet s:cpo_save
colorscheme molokai
set background=dark
set backspace=indent,eol,start
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=en
set history=50
set mouse=a
set ruler
set softtabstop=2
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set termencoding=utf-8
set window=64
" vim: set ft=vim :
syntax on
syntax sync fromstart
set ts=2 sw=2 et
"set gfn=Consolas:h9
set gfn=Inconsolata_for_Powerline:h11
let g:airline_powerline_fonts = 1
set nu
set hlsearch
set autoindent
set ruler
set nowrap
set incsearch
set showmatch
set cindent
" Highlight too-long lines (and optionally trailing whitespace).
highlight default link RightMargin Error
function! HighlightTooLongLines(highlight_trailing_whitespace)
let l:regex_alternatives = []
if a:highlight_trailing_whitespace != 0
call add(l:regex_alternatives, '\s\+$')
endif
if &textwidth != 0
call add(l:regex_alternatives, '\%>' . &textwidth . 'v.\+')
endif
if len(l:regex_alternatives) > 0
let l:regex = '/\(' . join(l:regex_alternatives, '\|') . '\)/'
let l:match = 'match RightMargin ' . l:regex
exec l:match
else
match none
endif
endfunction
augroup filetypedetect
autocmd WinEnter,BufNewFile,BufRead * call HighlightTooLongLines(1)
augroup end
" Highlight trailing whitespace when not in insert mode.
autocmd InsertEnter * call HighlightTooLongLines(0)
autocmd InsertLeave * call HighlightTooLongLines(1)
" Tabs will be listed
set list listchars=tab:»·
" Use real tabs in Makefiles
augroup makefile
au!
au FileType make,automake setlocal noet sts=0 ts=8 sw=8
augroup END
" For git commit messages, wrap to 70 columns
augroup gitcommit
au!
au FileType gitcommit setlocal tw=70
augroup END
highlight MatchParen guibg=yellow
map <C-T> <Esc>:tabnew<CR>
filetype plugin indent on
autocmd BufRead *.as set filetype=actionscript
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.