.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
execute pathogen#infect() let vim_markdown_preview_github=1 let vim_markdown_preview_toggle=1 set tabstop=2 " number of visual spaces per tab set softtabstop=2 " number of spaces in the tab when editing set expandtab " tabs are shortcut for spaces syntax enable " enalbe syntax processing " when opening a new line, keep the same indentation if no " file-specific indenting is enabled set autoindent " load filetype-specific indent files filetype indent on " visual autocomplete for command menu set wildmenu " redraw only when we need to set lazyredraw " highligt matching [{()}] set showmatch set incsearch "search as characters are entered set hlsearch " highlight search matches " turn off search highlight nnoremap <leader><space> :nohlsearch<CR> set foldenable " enable folding set foldlevelstart=10 " open most folds by default set foldnestmax=10 " 10 nested folds max set foldmethod=indent " fold based on indent set number " number line set showcmd " show command in bottom bar " MOVEMENT " " allow to move around visualy by default nnoremap j gj nnoremap k gk " Move the begining/end of the line nnoremap B ^ nnoremap E $ " $/^ doesn't do anything nnoremap $ <nop> nnoremap ^ <nop> " highlight last inserted text nnoremap gV `[v`] " leader is comma let mapleader="," " jk is escape inoremap jk <esc>