-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
63 lines (46 loc) · 1021 Bytes
/
vimrc
File metadata and controls
63 lines (46 loc) · 1021 Bytes
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
" Disable vi stuff
set nocompatible
" Filetype indent stuff
filetype on
filetype plugin on
filetype indent on
" Use system clipboard
set clipboard=unnamedplus
" Syntax
syntax on
" Line numbering
set number relativenumber
" Smart searching
set ignorecase
set smartcase
set showcmd
set showmatch
set hlsearch
set wildmenu
set wildmode=list:longest
" Tab settings
set tabstop=2 "tabs expand to 4 spaces
set shiftwidth=2
set softtabstop=2
set expandtab
" Split properly
set splitbelow splitright
"Stop auto commenting
set formatoptions-=cro
autocmd BufNewFile,BufRead * setlocal formatoptions-=cro
"search as characters are entered
set incsearch
" Fix the delay while switching to normal mode
set noesckeys
"leader key
let mapleader = " "
" Change cursor hack
let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"
" reset the cursor on start (for older versions of vim, usually not required)
augroup myCmds
au!
autocmd VimEnter * silent !echo -ne "\e[2 q"
augroup END
" Nerdtree keymappings
nmap <leader>e :Vexplore<CR>