Skip to content

Instantly share code, notes, and snippets.

@south37
Created October 10, 2013 09:40
Show Gist options
  • Save south37/6915709 to your computer and use it in GitHub Desktop.
Save south37/6915709 to your computer and use it in GitHub Desktop.
vimの設定
set incsearch
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=0
set autoindent
set smartindent
syntax on
set showcmd
set number
set clipboard=unnamed,autoselect
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
cal vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" MyBundles here:
"
" original repos on github
Bundle 'neocomplcache'
Bundle 'Emmet.vim'
Bundle 'surround.vim'
Bundle 'The-NERD-tree'
filetype indent plugin on
nmap <silent> <C-e> :NERDTreeToggle<CR>
vmap <silent> <C-e> <Esc>:NERDTreeToggle<CR>
omap <silent> <C-e> :NERDTreeToggle<CR>
imap <silent> <C-e> <Esc>:NERDTreeToggle<CR>
cmap <silent> <C-e> <C-u>:NERDTreeToggle<CR>
autocmd BufNewFile,BufRead *.twig set syntax=htmldjango
"バッファ全体にxmpfilterを実行
nmap <silent> <C-x><C-p> mzggVG!xmpfilter -a<cr>'z
imap <silent> <C-x><C-p> <ESC><C-x><C-p>
"現在業/選択行に「# =>」マークを追加
vmap <silent> <C-x><C-m> :!xmpfilter -m<CR>
nmap <silent> <C-x><C-m> V<C-x><C-m>
imap <silent> <C-x><C-m> <ESC><C-x><C-m>a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment