set nocompatible filetype off set rtp vim bundle Vundle vim call vundl

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'scrooloose/nerdtree'
call vundle#end()
filetype plugin indent on
set number
set hlsearch
set ignorecase
set smartcase
set clipboard=unnamed
set backspace=indent,eol,start
syntax on
set hidden
set laststatus=2
let mapleader = ","
map <C-n> :NERDTreeToggle<CR>
nmap <C-l> :buffers<CR>:buffer<Space>
set cursorline
nnoremap <Leader>c :set cursorline!<CR>
set background=dark
set mouse=a
nnoremap <leader>ct :let @+ = expand("%:t")<CR>
set ignorecase
set smartcase
set incsearch
" Search for selected text, forwards or backwards.
vnoremap <silent> * :<C-U>
\let old_reg=getreg('"')<Bar>let old_regtype=getregtype('"')<CR>
\gvy/<C-R><C-R>=substitute(
\escape(@", '/\.*$^~['), '\_s\+', '\\_s\\+', 'g')<CR><CR>
\gV:call setreg('"', old_reg, old_regtype)<CR>
vnoremap <silent> # :<C-U>
\let old_reg=getreg('"')<Bar>let old_regtype=getregtype('"')<CR>
\gvy?<C-R><C-R>=substitute(
\escape(@", '?\.*$^~['), '\_s\+', '\\_s\\+', 'g')<CR><CR>
\gV:call setreg('"', old_reg, old_regtype)<CR>
set showcmd