-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
85 lines (77 loc) · 1.87 KB
/
_vimrc
File metadata and controls
85 lines (77 loc) · 1.87 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
" VIMRC for Windows
set nocompatible
" *** load vundle ***
filetype off " required!
set rtp+=~/vimfiles/bundle/vundle/
let path='~/vimfiles/bundle'
call vundle#rc(path)
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'The-NERD-Commenter'
Bundle 'mrtazz/molokai.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'flazz/vim-colorschemes'
Bundle 'OrangeT/vim-csharp'
let g:ctrlp_open_new_file = 't'
" open files in new tab
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': [],
\ 'AcceptSelection("t")': ['<cr>', '<c-m>'],
\ }
" autoreload .vimrc
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END
let history=1000
set hidden
set wildmenu
" case sensitive search
set ignorecase
set smartcase
set title
set scrolloff=4
set wildignore+=temp,node_modules
set backspace=indent,eol,start
syntax on
filetype on
filetype plugin on
filetype indent on
set expandtab
set tabstop=4
" uses ctrl+> or ctrl+< to indent
set shiftwidth=4
set autoindent
set nofoldenable
set hlsearch
set incsearch
let t_Co=256
if has("gui_running")
"set guifont=Source\ Sans\ Pro\ 22
"colorscheme railcasts
colorscheme molokai
else
"colorscheme molokai
endif
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Consolas:h11:cANSI
endif
endif
let mapleader=","
" maps tabn->ctrl+L tabp->ctrl+H
noremap <C-L> <ESC>:tabn<CR>
noremap <C-H> <ESC>:tabp<CR>
" -----------------------------------
" Maps ctrl+space to ctrl+n (autocomplete)
inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
\ "\<lt>C-n>" :
\ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
\ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
imap <C-@> <C-Space>
set guioptions+=a