-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
executable file
·67 lines (55 loc) · 1.43 KB
/
Copy path.vimrc
File metadata and controls
executable file
·67 lines (55 loc) · 1.43 KB
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
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'pangloss/vim-javascript'
Plug 'rking/ag.vim'
Plug 'bling/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'Valloric/YouCompleteMe'
Plug 'ternjs/tern_for_vim'
call plug#end()
filetype plugin on
filetype plugin indent on
syntax on
set number
"" Whitespace
set nowrap
set backspace=indent,eol,start
set expandtab "Expand tabs to spaces
set tabstop=2 "tabs are 2 spaces wide
set softtabstop=2 "this makes backspace delete all 4 space characters
set shiftwidth=2 "makes >> and << use 4 spaces as well
set ofu=syntaxcomplete#Complete " Enable Omnicomplete for all languages
set omnifunc=syntaxcomplete#Complete
"" Searching
set hlsearch
set incsearch
set ignorecase
"" Buffers
set hidden
set wildmenu
set wildmode=longest:full
set wildignore+=*\\target\\*,*.swp
"" Statusline always on
set laststatus=2
colorscheme molokai
if has('gui_running')
set guifont=Consolas:h10
set guioptions-=T "remove toolbar
set guioptions+=b "enable horizontal scrollbar
endif
""" Key mappings
"" Copy Paste
vmap <C-c> "+y
noremap <C-v> "+gP
nmap <C-n> :NERDTreeToggle<CR>
nmap <S-Space> :CtrlPMRU<CR>
inoremap jk <Esc>
"" Map Omnicomplete to control-space
inoremap <C-space> <C-x><C-o>
"" Ctrlp variables
let g:ctrlp_cmd = 'CtrlPMixed'
let g:ctrlp_working_path_mode = 'ra'
"" Airline config
let g:airline_theme = 'badwolf'