-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
62 lines (52 loc) · 1.15 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
set nocompatible
"Vundle stuff
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'ctrlp.vim'
Plugin 'https://github.com/scrooloose/nerdtree.git'
Plugin 'https://github.com/dantler/vim-alternate.git'
Plugin 'taglist.vim'
Plugin 'surround.vim'
call vundle#end()
filetype plugin on
filetype plugin indent on
"Vim options
set bg=dark
set mouse=a
set autoindent
set tabstop=4
set shiftwidth=4
set showmatch
set incsearch
set expandtab
set smarttab
set nu
"#set textwidth=80
set backspace=2
set hlsearch
set nobackup
set noswapfile
set linebreak
"match ErrorMsg '\%>80v.\+'
syntax on
set showbreak=↪
set wildmenu
set wildmode=list:longest,full
set ignorecase
set smartcase
set wrap
"""Vim hotkeys
"Disable Ex mode hotkey
nnoremap Q <nop>
"Use \/ to clear search highlighting
nnoremap <silent> <Leader>/ :nohlsearch<CR>
"File types to ignore
set wildignore+=*.png,*.jpg,*.gif,*.tar.gz,*.tgz,*.zip,*.wav,*.mp3,*.class,*/target/*,*.pyc
map <F2> :NERDTreeToggle<CR>
map <F3> :TlistToggle<CR>
map <F4> :A<CR>
map <F5> :!ctags -R<CR>
map <F12> :! p4 edit %<CR>
map <Leader><C-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>