From 85a4d4ccc0f26099d7534ac4469d8205597570a1 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 9 Aug 2015 14:22:43 +0200 Subject: Fix smartcase search and add preview autoclose with NERDTree configs --- .vimrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.vimrc b/.vimrc index 8f98eb9..ceb7adf 100644 --- a/.vimrc +++ b/.vimrc @@ -58,9 +58,10 @@ set lazyredraw " to avoid scrolling problems "set ttimeout " less timeout for faster navigation "set ttimeoutlen=100 " time out for faster navigation set incsearch " Make search act like search in modern browsers -set noignorecase " Case Senetive searching shortend noic +set ignorecase " Ignore case when searching shortend ic +" set noignorecase " Case Senetive searching shortend noic +set smartcase " case-sensitive search if any caps set hlsearch " Highlight search things shortend hls or nohls -"set ignorecase " Ignore case when searching shortend ic set laststatus=2 " Always show the status line set ruler " Always show current position set showcmd " display incomplete commands @@ -78,6 +79,7 @@ set nomodeline " disable the modelines which i don't understand set lbr " Vim to wrap existing text as desired set nowrap " let Vim Wrap lines or leave them as long as they get set noeb vb t_vb= +set splitbelow " position the preview window below current windows " set vim startup faster if !empty(&viminfo) @@ -127,8 +129,6 @@ nnoremap mj J """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Specific FileTypes configurations """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" autocmd FileType html setlocal ts=2 sts=2 sw=2 -" autocmd FileType ruby setlocal ts=2 sts=2 sw=2 autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1 autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 @@ -145,6 +145,7 @@ autocmd FileType html noremap :call HtmlBeautify() autocmd FileType css noremap :call CSSBeautify() autocmd FileType scss noremap :call CSSBeautify() +autocmd CompleteDone * pclose " auto-close preview after completion """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => MISC """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -170,10 +171,9 @@ nnoremap mw :CoffeeWatch "NerdTree" "========= -" nmap nt :NERDTreeToggle -nmap nt :NERDTree -" cmap ntf NERDTreeFind -" nmap ntq :NERDTreeClose +nnoremap nt :NERDTreeToggle +nnoremap nn :NERDTree +nnoremap nf NERDTreeFind "NerdCommenter" "============= -- cgit v1.2.3