Permalink
Browse files

Lazyredraw on macros, and wildignore .git and node_modules

  • Loading branch information...
1 parent 5595339 commit aaa7485ee4375978911f17a79596cf9c44fd94b0 @torgeir committed Apr 20, 2012
Showing with 6 additions and 0 deletions.
  1. +2 −0 .vimrc
  2. +4 −0 functions.vim
View
2 .vimrc
@@ -65,6 +65,7 @@ set autoread " automatically re-read file on outside change
set magic " set magic on, for regular expressions
set nocompatible " dont bother being compatible with vi
set modelines=0 " prevent security exploits in modelines
+set lazyredraw " dont redraw until macro is complete
set autoindent " keep indent on newline
set smartindent " auto-indent (block/language)
@@ -113,6 +114,7 @@ set noswapfile
" improve menu on :e <tab>
set wildmenu
set wildmode=list:longest
+set wildignore+=.git,node_modules
" status line
set laststatus=2
View
@@ -98,6 +98,10 @@ function! RefreshTree(...)
endif
endif
+ if exists(":CtrlPClearCache") == 2
+ CtrlPClearCache
+ endif
+
if exists(":CommandTFlush") == 2
CommandTFlush
endif

0 comments on commit aaa7485

Please sign in to comment.