Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- colorscheme solarized8
- set encoding=utf-8
- set nocompatible
- set backspace=indent,eol,start
- set nobackup
- set showcmd
- set incsearch
- set number
- set mouse=a
- set history=2000
- set ruler
- set list
- set list listchars=tab:·\ ,trail:·
- set hlsearch
- set modeline
- set undolevels=128
- set undodir=~/.vim/undodir/
- set undofile
- set undolevels=1000
- set undoreload=10000
- set ts=4
- set softtabstop=4
- set shiftwidth=4
- set noexpandtab
- " set expandtab
- set smarttab
- set autoindent
- set smartindent
- set conceallevel=1
- let g:javascript_conceal_function = "ƒ"
- let g:javascript_conceal_null = "ø"
- let g:javascript_conceal_this = "@"
- let g:javascript_conceal_return = "→"
- let g:javascript_conceal_undefined = "¿"
- let g:javascript_conceal_NaN = "ℕ"
- let g:javascript_conceal_prototype = "¶"
- let g:javascript_conceal_static = "•"
- let g:javascript_conceal_super = "Ω"
- let g:javascript_conceal_arrow_function = "⇒"
- let g:javascript_conceal_noarg_arrow_function = "○"
- let g:javascript_conceal_underscore_arrow_function = "🞅"
- "inoremap ( ()<Esc>:let leavechar=")"<CR>i
- "inoremap [ []<Esc>:let leavechar="]"<CR>i
- "inoremap { {}<Esc>:let leavechar="}"<CR>i
- inoremap ( ()<Esc>i
- inoremap [ []<Esc>i
- inoremap { {<CR>}<Esc>O
- autocmd Syntax html,vim inoremap < <lt>><Esc>i| inoremap > <c-r>=ClosePair('>')<CR>
- inoremap ) <c-r>=ClosePair(')')<CR>
- inoremap ] <c-r>=ClosePair(']')<CR>
- inoremap } <c-r>=CloseBracket()<CR>
- inoremap " <c-r>=QuoteDelim('"')<CR>
- inoremap ' <c-r>=QuoteDelim("'")<CR>
- function ClosePair(char)
- if getline('.')[col('.') - 1] == a:char
- return "\<Right>"
- else
- return a:char
- endif
- endf
- function CloseBracket()
- if match(getline(line('.') + 1), '\s*}') < 0
- return "\<CR>}"
- else
- return "\<Esc>j0f}a"
- endif
- endf
- function QuoteDelim(char)
- let line = getline('.')
- let col = col('.')
- if line[col - 2] == "\\"
- "Inserting a quoted quotation mark into the string
- return a:char
- elseif line[col - 1] == a:char
- "Escaping out of the string
- return "\<Right>"
- else
- "Starting a string
- return a:char.a:char."\<Esc>i"
- endif
- endf
- syntax on
- filetype plugin indent on
- function ModeChange()
- if getline(1) =~ "^#!"
- silent !chmod u+x <afile> 2> /dev/null
- endif
- endfunction
- au BufWritePost * call ModeChange()
- set colorcolumn=80
- highlight ColorColumn ctermbg=darkgray
- map re :redo<CR>
- map te :tabe .<CR>
- map gb :tabp<CR>
- map cd :colorscheme default<CR>
- execute pathogen#infect()
- " augroup javascript_folding
- " au!
- " au FileType javascript setlocal foldmethod=syntax
- " augroup END
- "augroup filetypedetect
- " au! BufRead,BufNewFile *.plhtml setfiletype perl
- " au! BufRead,BufNewFile *.cgi setfiletype perl
- "augroup end
- augroup vimrc
- autocmd!
- autocmd ColorScheme * hi SpecialKey ctermfg=06
- augroup END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement