-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·76 lines (69 loc) · 1.6 KB
/
.vimrc
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
set nobackup
set nowritebackup
set noswapfile
set smartindent
set directory=~/.vim/tmp
set nohlsearch
set hidden
set history=1000
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set bs=2
set nocp
set gp=grep\ -nr
set ignorecase
set smartcase
set title
set scrolloff=3
set ruler
set backspace=indent,eol,start
set incsearch
set listchars=tab:>-,trail:·,eol:$
set shortmess=a
set cmdheight=2
set visualbell
set confirm
set viminfo='20,<50,s10,h,%
syntax on
"colorscheme matrix
set number
nmap <silent> <leader>s :set nolist!<CR>
noremap <C-b> <C-y>
noremap <C-n> gt
noremap <C-p> gT
noremap <C-q> :bn <bar> bw #<CR>
noremap <C-s> :w!<CR>
noremap <C-g> :Ack<space>
noremap <C-x> :BufOnly<CR>
inoremap <C-s> <Esc>:w!<CR>
inoremap jk <Esc>
noremap <C-c> :let @+=@"<CR>
noremap <C-v> "+p
nnoremap ' `
nnoremap ` '
function! Tab_Or_Complete()
if col('.')>1 && strpart( getline('.'), col('.')-2, 3 ) =~ '^\w'
return "\<C-N>"
else
return "\<Tab>"
endif
endfunction
:inoremap <Tab> <C-R>=Tab_Or_Complete()<CR>
noremap <F2> o<cfdump var='##' top=3/><CR><cfabort /><ESC>kf#a
noremap <F3> o<cfdump var='##' top=3/><ESC>F#i
noremap <F4> I<!---<SPACE><ESC>A<SPACE>---!><ESC>:nohl<CR>
noremap <F5> :s/<!---\s//<CR>:s/\s--->//<CR>:nohl<CR>
let mapleader = ","
let g:fuzzy_matching_limit=20
let g:fuzzy_ceiling=2000
let g:fuzzy_ignore="vendor/*;*.jpg;*.gif"
set showcmd
set hlsearch
"press <leader>t to jump to previous tab
"let g:lasttab = 1
"nmap <leader>t1 :exe "tabn ".g:lasttab<CR>
"au TabLeave * let g:lasttab = tabpagenr()
"press <leader>t to jump to previous tab
:nnoremap <F1> :buffers<CR>:buffer<Space>