-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
56 lines (41 loc) · 1.06 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
" Defining tabspace
set shiftwidth=2
set softtabstop=2
" Show lines numbers
set number
set incsearch ignorecase hlsearch
set t_Co=256
color distinguished
" Press space to clear search highlighting and any message already displayed.
nnoremap <silent> <Space> :silent noh<Bar>echo<CR>
" Folder for temp and swap files
set backupdir=~/.vim-tmp
set swapfile
set dir=~/.vim-tmp
" This shows what you are typing as a comand.
set showcmd
" Folding stuffs
set foldmethod=marker
" No comments needed
set autoindent
" use spaces intead of tabs
set expandtab
set smarttab
" enable mouse support in console
set mouse=a
" When close tab, remove buffer
set nohidden
" clear current hihglight search
nnoremap <silent> <Space> :noh<CR>
" set off the other paren
highlight MatchParen ctermbg=4
" next tab
nnoremap <silent> <C-Right> :tabnext<CR>
" previous tab
nnoremap <silent> <C-Left> :tabprevious<CR>
" new tab
nnoremap <silent> <C-t> :tabnew<CR>
" toggle paste mode for pasting text form external application
nnoremap <F2> :set invpast past?<CR>
set pastetoggle=<f2>
set showmode