-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
84 lines (62 loc) · 1.65 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
81
82
83
" not compatible with vi
set nocompatible
" turn off filetype for Vundle to work
filetype off
" Make vundle work
set rtp+=~/Dotfiles/vim/bundle/vundle
call vundle#rc()
" Repos from github - used by vundle
Bundle 'kien/ctrlp.vim'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'ervandew/supertab'
Bundle 'garbas/vim-snipmate'
Bundle 'scrooloose/syntastic'
Bundle 'majutsushi/tagbar'
Bundle 'Lokaltog/vim-powerline'
Bundle 'tpope/vim-surround'
Bundle 'flazz/vim-colorschemes'
" For snipmate
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'garbas/vim-snipmate'
" Update bundles with :BundleInstall
" enable filetype plugin and indentation
filetype plugin indent on
" enable syntax highlighting
syntax on
" enable auto indentation, set tabstop,shift-width, expand tabs into spaces
set ai ts=2 sw=2 expandtab
" set line numbers
set nu
" to make powerline visible
set laststatus=2
" powerline needs unicode chars
set encoding=utf-8
" triangular stuff for powerline
let g:Powerline_symbols = 'fancy'
" make vim look better
set t_Co=16
set background=dark
" disable arrow keys
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
" highlight matches, incremental searches, case insensitive unless mixed
set hlsearch incsearch ignorecase smartcase
" set leader to ,
let mapleader=","
" toggle for NERDTree
nmap <leader>n <ESC>:NERDTreeToggle<CR>
" mappings for ctrlp.vim
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" files to ignore for ctrlp
set wildignore+=*.so,*.swp,*.zip,*.pyc
" Set cryptmethod to blowfish
setlocal cm=blowfish