Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some vim plugins

  • Loading branch information...
commit c3febdefd7065543a3cfd3a2bd37e2b1dc3eeb2b 1 parent 6cc0a45
@mgaw authored
Showing with 29 additions and 3 deletions.
  1. +1 −0  .bash_profile
  2. +28 −3 .vimrc
View
1  .bash_profile
@@ -21,6 +21,7 @@ alias gba="git branch -avv --color | cut -c-93"
alias ga="git add"
alias ga.="git add . && git status"
alias gaa="git add --all && git status"
+alias gaac="git add --all && gc"
alias gap="git add -p"
alias gm="git merge"
alias gd="git diff"
View
31 .vimrc
@@ -11,17 +11,23 @@ NeoBundle "vim-ruby/vim-ruby"
"NeoBundle "git://git.code.sf.net/p/vim-latex/vim-latex"
NeoBundle "tpope/vim-rails"
NeoBundle "tpope/vim-surround"
+NeoBundle "tpope/vim-ragtag"
NeoBundle "vim-pandoc/vim-pandoc"
NeoBundle "vim-pandoc/vim-pandoc-syntax"
NeoBundle "groenewege/vim-less"
NeoBundle "pangloss/vim-javascript"
NeoBundle "Raimondi/delimitMate"
NeoBundle "kien/ctrlp.vim"
+NeoBundle "tacahiroy/ctrlp-funky"
"NeoBundle "tyru/caw.vim"
+"NeoBundle "wellle/targets.vim"
NeoBundle "gibiansky/vim-latex-objects"
NeoBundle "kana/vim-textobj-user"
NeoBundle "reedes/vim-textobj-quote"
NeoBundle "reedes/vim-textobj-sentence"
+NeoBundle "othree/xml.vim"
+NeoBundle "joom/latex-unicoder.vim"
+NeoBundle "haya14busa/incsearch.vim"
call neobundle#end()
@@ -31,9 +37,17 @@ NeoBundleCheck
syntax on
+" CtrlP
+let g:ctrlp_extensions = ['funky']
+
+" ragtag
+let g:ragtag_global_maps = 1
+
" delimitMate settings
-let delimitMate_matchpairs = "(:),[:],{:},<:>,„:“,‚:‘"
+" do not match <:> because of xml.vim
+let delimitMate_matchpairs = "(:),[:],{:},„:“,‚:‘"
au Filetype tex,markdown let delimitMate_quotes = "\" ' ` * $"
+au Filetype ruby let delimitMate_quotes = "\" ' ` |"
" pandoc settings
let g:pandoc#modules#disabled = ["folding"]
@@ -49,6 +63,18 @@ let g:textobj#quote#matchit = 1
let g:textobj#quote#educate = 0
call textobj#quote#init()
+" incsearch setting
+map / <Plug>(incsearch-forward)
+map ? <Plug>(incsearch-backward)
+map g/ <Plug>(incsearch-stay)
+let g:incsearch#auto_nohlsearch = 1
+map n <Plug>(incsearch-nohl-n)
+map N <Plug>(incsearch-nohl-N)
+map * <Plug>(incsearch-nohl-*)
+map # <Plug>(incsearch-nohl-#)
+map g* <Plug>(incsearch-nohl-g*)
+map g# <Plug>(incsearch-nohl-g#)
+
set noswapfile
set nocompatible
set backspace=indent,eol,start
@@ -67,7 +93,7 @@ set listchars=tab:▸\ ,eol:¬,trail:·,nbsp:_
set incsearch
set ignorecase
set smartcase
-set nohlsearch
+set hlsearch
set tabstop=2
set shiftwidth=2
set softtabstop=2
@@ -141,7 +167,6 @@ inoremap <Esc> <NOP>
inoremap <Esc> <NOP>
inoremap <Tab> <Esc>
inoremap <c-j> <cr>
-inoremap <c-h> <bs>
inoremap <c-h> <bs>
inoremap  ?
"inoremap  <Esc>mx{gq}`xa
Please sign in to comment.
Something went wrong with that request. Please try again.