Skip to content

Instantly share code, notes, and snippets.

@ts-3156
Last active December 2, 2016 07:13
Show Gist options
  • Save ts-3156/5373970 to your computer and use it in GitHub Desktop.
Save ts-3156/5373970 to your computer and use it in GitHub Desktop.
" source /etc/vimrc
" mkdir -p ~/.vim/bundle
" git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
if has("autocmd")
augroup redhat
autocmd FileType * :set formatoptions=q
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
augroup END
autocmd BufWritePre * :%s/\s\+$//ge
endif
if has('vim_starting')
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'itchyny/lightline.vim'
NeoBundle 'nanotech/jellybeans.vim'
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'Lokaltog/vim-easymotion'
call neobundle#end()
let g:EasyMotion_do_mapping = 0 "Disable default mappings
nmap s <Plug>(easymotion-sn)
filetype plugin indent on
NeoBundleCheck
set laststatus=2
set t_Co=256
let g:lightline = {
\ 'colorscheme': 'wombat'
\ }
set nocompatible
set runtimepath+=~/.vim
set noautoindent
set nosmartindent
let loaded_matchparen = 1
syntax on
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set matchtime=3
set whichwrap=b,s,<,>,[,]
set backspace=indent,eol,start
set number
set mouse=a " macではコメントアウト
set ignorecase
set smartcase
set cursorline
set incsearch
set scrolloff=8
set hlsearch
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,iso-2022-jp-3,iso-2022-jp,eucjp-ms,euc-jisx0213,euc-jp,sjis,cp932
"let g:solarized_termcolors=256
"let g:solarized_termtrans=1
colorscheme jellybeans
"set background=dark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment