From f6b407a14c028b45d6b8eec6a49d431f734d9d74 Mon Sep 17 00:00:00 2001 From: Peter Dahlberg Date: Fri, 4 Dec 2015 11:30:52 +0100 Subject: [PATCH] more vimrc --- vim/vimrc | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index b71278f..79d0e9f 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -16,6 +16,9 @@ Plugin 'VundleVim/Vundle.vim' " Edit files using sudo/su Plugin 'chrisbra/SudoEdit.vim' +" Fuzzy finder (files, mru, etc) +Plugin 'ctrlpvim/ctrlp.vim' + " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo @@ -48,11 +51,29 @@ filetype plugin indent on " required " Put your non-Plugin stuff after this line -" ------------------------------------------ " +" ---------- Plugin conf ----------- " + +" Ctrl-P" +" 'c' - the directory of the current file. +" 'a' - the directory of the current file, unless it is a subdirectory of the +" cwd +" 'r' - the nearest ancestor of the current file that contains one of these +" directories or files: .git .hg .svn .bzr _darcs +let g:ctrlp_working_path_mode = 'ra' +" gitignore ignore +let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] +" ignore scm dirs +let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' +" some more ignores +set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.tar.*,*.tar " MacOSX/Linux +set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows + " chrisbra/SudoEdit.vim :let g:sudo_no_gui=1 +" -------------------------------------------" + set backspace=indent,eol,start " My PC is fast enough, do syntax highlight syncing from start @@ -79,11 +100,16 @@ endif set scrolloff=3 " scroll lines above/below cursor set history=1000 " default 20 set incsearch " "live"-search +" set ignorecase "ignore case when searching" +" set smartcase " sensitive with uppercase +set nrformats+=alpha " incr/decr letters C-a/-x " Automatische Einrückung (Globale Konfiguration) set smartindent set smarttab + + " UTF-8 als Default-Encoding set enc=utf-8 @@ -123,3 +149,6 @@ if has('persistent_undo') set undoreload=10000 " buffer stored undos endif +" --- Keybindings ---- " + +