-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
53 lines (52 loc) · 1.08 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
"----Essential plugins-----
call plug#begin()
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'suan/vim-instant-markdown'
Plug 'NLKNguyen/papercolor-theme'
call plug#end()
set hidden
"---Syntax && wirting------
syntax on
set smartindent "A must to any programmer! "
set autoindent
set smartcase "Awesome! "
set autoindent
set showmatch
set wrap
set lbr
colorscheme elflord
"-----Location----
set ruler
set number
set relativenumber
"-----Folding---
set foldmethod=marker "{{{ to begin fold, }}} to end fold. "
set foldclose=all
"----- undofile----
set undofile
set undodir=/home/mattemagikern/.vimundo/
"----- No bulk ---"
set tabstop=2
set shiftwidth=2
set expandtab
"------No backup files as swap-------
set nobackup
set nowb
set noswapfile
"--------Keybindings---------
nnoremap nt :NERDTree<CR>
nnoremap , :nohl<CR>
nmap gb :Gblame<CR>
imap hh <Esc>
"-----Fast save and exit------"
map <C-x> :w<CR>
map <C-a> :q<CR>
"Quick serch, amazing for moving around in text files"
nnoremap <space> /
nnoremap <c-space> ?
set ignorecase
set hlsearch
hi Search guibg=LightBlue
set tw=80
colo morning