Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vim things

  • Loading branch information...
commit b26b8f8514844cf2a0fa2e9d1dbaef8053e44dbc 1 parent d97fcdf
@bkudria authored
View
3  .gitconfig
@@ -80,4 +80,7 @@
lg = log --graph --all --abbrev-commit
top = !eval cd "$(pwd)/$(git rev-parse --show-cdup)" && pwd
+ ctags = !.git/hooks/ctags
+[init]
+ templatedir = ~/.git_template
View
1  .vim/commands.vim
@@ -1 +1,2 @@
command Workfeed cd ~/Code/workfeed
+
View
13 .vim/keys.vim
@@ -9,21 +9,28 @@ map <right> <nop>
map <leader>f :CommandT<cr>
if has("gui_macvim")
macmenu &File.Open\.\.\. key=<nop>
- map <D-o> :CommandT<CR>
+ map <D-o> :CtrlPMixed<CR>
macmenu &File.Close key=<nop>
map <D-w> :bdelete<cr>
+
+ macmenu &Edit.Find.Find\.\.\. key=<nop>
+ map <D-f> /
endif
nnoremap ; :
map <F1> :FufHelp<cr>
map <F2> :
-map <F3> :CommandTBuffer<cr>
+map <F3> :CtrlPMixed<cr>
map <F4> :ScratchOpen<cr>
nnoremap <leader><leader> <c-^>
map <F10> :Gstatus<cr>
map <F11>g :Rgrep<cr>
+map <F11>t :CtrlPTag<cr>
+map <F11>bt :CtrlPBufTag<cr>
+
+map gt <c-]>
nnoremap \ :noh<cr>
@@ -34,3 +41,5 @@ map <C-l> <C-w>l
map <C-w>1 :only<cr>
map ~ :cd ~<cr>
+
+map <C-space> *N
View
12 .vim/vundle.vim
@@ -12,6 +12,8 @@ let g:syntastic_check_on_open=1
Bundle 'Lokaltog/vim-powerline',
Bundle 'tpope/vim-fugitive',
Bundle 'tpope/vim-rails',
+Bundle 'tpope/vim-rake',
+Bundle 'tpope/vim-bundler'
Bundle 'tpope/vim-endwise',
Bundle 'tpope/vim-surround',
Bundle 'tpope/vim-repeat'
@@ -22,10 +24,10 @@ Bundle 'kana/vim-textobj-user',
Bundle 'nelstrom/vim-textobj-rubyblock',
runtime macros/matchit.vim
-Bundle 'wincent/Command-T',
-let g:CommandTScanDotDirectories=1
-let g:CommandTMatchWindowReverse=1
-let g:CommandTMaxFiles=25000
+Bundle 'kien/ctrlp.vim'
+let g:ctrlp_max_height = 25
+let g:ctrlp_max_files = 90000
+let g:ctrlp_clear_cache_on_exit = 1
Bundle 'jeffkreeftmeijer/vim-numbertoggle'
Bundle 'grep.vim'
@@ -33,7 +35,7 @@ let Grep_Xargs_Options = '-0'
Bundle 'ervandew/supertab'
inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
-inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
+"" inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
inoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>"
inoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>"
View
8 .vimrc
@@ -46,10 +46,16 @@ set incsearch
set ignorecase
set smartcase
-autocmd BufWritePost * stopinsert " Leave insert mode on save
+autocmd BufWritePost * stopinsert " Leave insert mode on save
source ~/.vim/vundle.vim
source ~/.vim/keys.vim
source ~/.vim/commands.vim
cd ~
+
+" Regenerate ctags on write, if we can
+autocmd BufWritePost *
+ \ if exists('b:git_dir') && executable(b:git_dir.'/hooks/ctags') |
+ \ call system('"'.b:git_dir.'/hooks/ctags" &') |
+ \ endif
Please sign in to comment.
Something went wrong with that request. Please try again.