summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2014-10-11 12:34:32 +0100
committerUrbain Vaes <urbain@vaes.uk>2014-10-11 12:34:32 +0100
commit36f67ab5edcef32340c54294331364bb2a29a847 (patch)
treedc4ed391e4eaebbad3d5ee6ac88bfc4d334a87fc
parent7e6c4b6f36b7a6427bc870381be80916450fd0f5 (diff)
Update vimrc CTRL-P
-rw-r--r--.vimrc14
1 files changed, 8 insertions, 6 deletions
diff --git a/.vimrc b/.vimrc
index 0aaaa59..e27f369 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,4 +1,3 @@
-
"" Required by Vundle
set nocompatible
filetype off
@@ -13,17 +12,12 @@ Plugin 'UltiSnips'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/nerdtree'
-"Plugin 'OmniCppComplete'
Plugin 'tommcdo/vim-exchange'
-"Plugin 'vim-scripts/Colour-Sampler-Pack'
-" Plugin 'EasyMotion'
Plugin 'unimpaired.vim'
Plugin 'Tabular'
Plugin 'tComment'
Plugin 'Gundo'
Plugin 'altercation/vim-colors-solarized'
-"Plugin 'xolox/vim-misc'
-"Bundle 'xolox/vim-colorscheme-switcher'
filetype plugin indent on
@@ -52,6 +46,12 @@ let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$',
\ '\.out$', '\.log$','\.aux$','\.sty$',
\ '\.fdb_latexmk$', '\.synctex.gz$','\.latexmain$']
+" CTRL-P
+
+let g:ctrlp_map = '<c-p>'
+let g:ctrlp_by_filename = 1
+let g:ctrlp_working_path_mode = 'w'
+
"" Options
" Tabs and indent
@@ -121,6 +121,8 @@ let maplocalleader = "+"
" Leader maps
nmap <Space> <Leader>
+nmap <Leader>p <c-p>
+nmap <Leader>t <c-w>
nnoremap <Leader>h :set hlsearch!<cr>
nnoremap <Leader>n :set relativenumber!<cr>
nnoremap <Leader>q :q!<cr>