-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
50 lines (44 loc) · 1.35 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
set number
set ignorecase
set smartcase
set incsearch
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
syntax enable
colorscheme whitedust
"enable transparent background
hi Normal ctermbg=NONE
" size of tab hardstop
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
" use pathogen for runtimepath handling
execute pathogen#infect()
" this automatically generates helptags for plugins
call pathogen#helptags()
" activate filetype indenting and plugins
filetype plugin indent on
" activate autocomplete plugin
let g:neocomplete#enable_at_startup = 1
" remap emmet trigger shortkey (need to press , afterwards);
let g:user_emmet_leader_key='<C-K>'
" use this command to write a file which is opened without write-permission
cmap w!! w !sudo tee %
" set paths for backup, swp and undo files
set backupdir=~/.vim/backup//,/tmp//
set directory=~/.vim/swap//,/tmp//
set undodir=~/.vim/undo//,/tmp//
" set up paths for vdebug to work
let g:vdebug_options = {
\ 'path_maps': {"/var/www": "/home/stefan/webdev/bruce/bruce-cms"},
\ 'server': '0.0.0.0'
\}
"if this works, the anonymous register is replaced by system clipboard
"set clipboard=unnamedplus
" snippets magic
so ~/.vim/bundle/snipmate.vim/scope.aliases
" set mapleader key
let mapleader=","
" change nerdcommenter key
:nnoremap <C-i> :NERDComToggleComment<CR>
let g:ctrlp_show_hidden = 1