Last active
October 21, 2015 15:23
-
-
Save tetkuz/b415db5e67d1214291e4 to your computer and use it in GitHub Desktop.
my vimrc for windows (2015/10/22) snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim:fdm=marker: | |
" 画面表示の設定 {{{ | |
set relativenumber | |
set ruler | |
set cursorline | |
set cursorcolumn | |
set laststatus=2 | |
set showmatch | |
set ambiwidth=double | |
set hlsearch | |
set display=lastline | |
set fillchars= | |
set spelllang=en,cjk | |
set splitbelow | |
set pumheight=10 | |
set history=10000 | |
set noexpandtab | |
set autoindent | |
set smartindent | |
syntax on | |
"}}} | |
" ファイルの設定 {{{ | |
set autoread | |
set nobackup | |
set noswapfile | |
set noswapfile | |
set noundofile | |
"}}} | |
" 検索系などの設定 {{{ | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
set nowrapscan | |
set clipboard=unnamed | |
set mouse+=a | |
"}}} | |
" edit keymap {{{ | |
nnoremap x "_x | |
nmap Y y$ | |
nnoremap tw "adiwP | |
"}}} | |
" shortcut {{{ | |
nnoremap <Space>h :<C-u>tab help<Space> | |
nnoremap <Space>vh :<C-u>vertical belowright help<Space> | |
nnoremap <Space>. :<C-u>tabedit $MYVIMRC<CR> | |
nnoremap <silent> <ESC><ESC> :noh<CR> | |
nnoremap gcd :cd %:h<CR> | |
nnoremap / :set hlsearch<CR>/ | |
nnoremap gr gT | |
nnoremap T :tabnew<CR> | |
"}}} | |
"-------------------------------------------------------------------------- | |
" NeoBundle header {{{ | |
if 0 | endif | |
if has('vim_starting') | |
if &compatible | |
set nocompatible | |
endif | |
set runtimepath+=~/vimfiles/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/vimfiles/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
"}}} | |
" === Install plugins === "{{{ | |
" view | |
NeoBundle 'bling/vim-airline' | |
NeoBundle 'morhetz/gruvbox' | |
" files | |
NeoBundle 'scrooloose/nerdtree' | |
NeoBundle 'Shougo/neomru.vim', { 'depends' : 'Shougo/unite.vim' } | |
" edit | |
NeoBundle 'tpope/vim-surround' | |
NeoBundle 'junegunn/vim-easy-align' | |
NeoBundle 'tpope/vim-abolish' | |
NeoBundle 'kana/vim-smartinput' | |
" markdown | |
NeoBundle 'plasticboy/vim-markdown', { 'depends' : 'godlygeek/tabular' } | |
" dev | |
NeoBundle 'scrooloose/syntastic' | |
"}}} | |
" NeoBundle footer {{{ | |
call neobundle#end() | |
filetype plugin indent on | |
NeoBundleCheck | |
"}}} | |
" === Plugin settings === {{{ | |
" unite {{{ | |
let g:unite_source_grep_max_candidates = 1000 | |
nnoremap ,ub :Unite buffer<CR> | |
nnoremap ,uf :Unite -buffer-name=file file<CR> | |
nnoremap ,uu :Unite file_mru<CR> | |
nnoremap ,uff :<C-u>UniteWithBufferDir file -buffer-name=file<CR> | |
"}}} | |
" syntastic {{{ | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
"}}} | |
" tpope/vim-markdown "{{{ | |
autocmd BufNewFile,BufReadPost *.md set filetype=markdown | |
"}}} | |
"}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment