-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
80 lines (64 loc) · 1.32 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
" global
set nocompatible
filetype off
set number
set history=1000
set noshowcmd
set noshowmode
set visualbell
" set hidden
set background=dark
set laststatus=0
set cursorline
let g:colors_name='edd'
syntax on
set noswapfile
" indents
set autoindent
set smartindent
set smarttab
set tabstop=2
set softtabstop=0
set expandtab
set shiftwidth=2
let mapleader=";"
filetype plugin on
filetype indent on
" Set up plugins
if filereadable(expand("~/.vimrc.plugins"))
source ~/.vimrc.plugins
endif
""""""""
if has('autocmd')
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
" Search
set incsearch
" Use <C-L> to clear the highlighting of :set hlsearch.
if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
endif
" Find
map <C-f> /
" indent / deindent after selecting the text with (⇧ v), (.) to repeat.
vnoremap <Tab> >
vnoremap <S-Tab> <
" comment / decomment & normal comment behavior
vmap <C-m> gc
" Disable tComment to escape some entities
let g:tcomment#replacements_xml={}
" Text wrap simpler, then type the open tag or ',"
vmap <C-w> S
" Cut, Paste, Copy
vmap <C-x> d
vmap <C-v> p
vmap <C-c> y
" moving between buffers
nnoremap <Leader>[ :bp<CR>
nnoremap <Leader>] :bn<CR>
nnoremap <Leader>g :e#<CR>
nnoremap <Leader>l :ls<CR>
nnoremap <Leader>w :bd<CR>