-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
53 lines (39 loc) · 1.7 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
"command Paste execute 'set noai | insert | set ai' " Enables :Paste to just do what you want
"-------------- General
set number " Enable line numbers
syntax on " Enable syntax highlightning
set cursorline " Highlight current line
set tabstop=2 " Make a tab two spaces wide
set ls=2 " Always show status line
set ruler " Show the cursor position all the time
set backspace=indent,eol,start " Make backspace work as you would except from other editors
let mapleader = ',' " The default leader is \ - lets use comma instead
set paste " Remove crazy indentation after pasting stuff
"-------------- Visuals
colorscheme atom-dark-256
set t_CO=256 " Use 256 colors
"-------------- Split Management
set splitbelow " Always set split below
set splitright " Always set split to right
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-H> <C-W><C-H>
nmap <C-L> <C-W><C-L>
"--------------- Mappings
"Type ,ev to edit vimrc file
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add simple search highlight removal
nmap <Leader><space> :nohlsearch<cr>
"-------------- Auto-commands
" Remove n+1 problem with augroup
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source % " Automatically source newly edited vimrc files
augroup END
"--------------- Searching
set hlsearch " Highlight all search matches
set incsearch
set ignorecase " Ignore case when searching
"--------------- Identation
filetype indent on
set smartindent