more vimrc
This commit is contained in:
31
vim/vimrc
31
vim/vimrc
@@ -16,6 +16,9 @@ Plugin 'VundleVim/Vundle.vim'
|
|||||||
" Edit files using sudo/su
|
" Edit files using sudo/su
|
||||||
Plugin 'chrisbra/SudoEdit.vim'
|
Plugin 'chrisbra/SudoEdit.vim'
|
||||||
|
|
||||||
|
" Fuzzy finder (files, mru, etc)
|
||||||
|
Plugin 'ctrlpvim/ctrlp.vim'
|
||||||
|
|
||||||
" The following are examples of different formats supported.
|
" The following are examples of different formats supported.
|
||||||
" Keep Plugin commands between vundle#begin/end.
|
" Keep Plugin commands between vundle#begin/end.
|
||||||
" plugin on GitHub repo
|
" plugin on GitHub repo
|
||||||
@@ -48,11 +51,29 @@ filetype plugin indent on " required
|
|||||||
" Put your non-Plugin stuff after this line
|
" 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
|
" chrisbra/SudoEdit.vim
|
||||||
:let g:sudo_no_gui=1
|
:let g:sudo_no_gui=1
|
||||||
|
|
||||||
|
" -------------------------------------------"
|
||||||
|
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
" My PC is fast enough, do syntax highlight syncing from 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 scrolloff=3 " scroll lines above/below cursor
|
||||||
set history=1000 " default 20
|
set history=1000 " default 20
|
||||||
set incsearch " "live"-search
|
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)
|
" Automatische Einrückung (Globale Konfiguration)
|
||||||
set smartindent
|
set smartindent
|
||||||
set smarttab
|
set smarttab
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" UTF-8 als Default-Encoding
|
" UTF-8 als Default-Encoding
|
||||||
set enc=utf-8
|
set enc=utf-8
|
||||||
|
|
||||||
@@ -123,3 +149,6 @@ if has('persistent_undo')
|
|||||||
set undoreload=10000 " buffer stored undos
|
set undoreload=10000 " buffer stored undos
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" --- Keybindings ---- "
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user