-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
84 lines (71 loc) · 2.38 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
84
set nocompatible
" -- General Settins --
set backspace=indent,eol,start " set backspace to work line normal
set ruler " show cursor position all times
set number " line number
set showcmd " display incomplete commands
set incsearch " do incrememntal searching
set hlsearch " search highlighting
syntax on " Syntax highlighting
" If caps lock is on, or mistyped, these commands will still work
command! WQ wq
command! Wq wq
command! Wqa wqa
command! W w
command! Q q
filetype off
" turn on mouse if able
if has ('mouse')
set mouse=a
endif
" Bling
filetype plugin indent on " Enable filetypes
set laststatus=2 " Alwayas show status bar, needed for airline - bug with splits.
let g:airline_theme='light' "Airline theme
" -- Plugins --
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'bling/vim-airline'
Plugin 'godlygeek/tabular'
Plugin 'scrooloose/nerdtree' " NERDtree
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'scrooloose/syntastic' " Syntax checker
Plugin 'bronson/vim-trailing-whitespace' " Highlights whitespac, :FixWhitespace to remove it
Plugin 'kien/ctrlp.vim'
Plugin 'adnasa/base16-colors'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'ervandew/supertab'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-easytags'
Plugin 'majutsushi/tagbar'
" ----- Other text editing features -----------------------------------
Plugin 'Raimondi/delimitMate'
call vundle#end()
" -- Plugin settings --
" ----- jistr/vim-nerdtree-tabs -----
" Open/close NERDTree Tabs with \t
nmap <silent> <leader>t :NERDTreeTabsToggle<CR>
" To have NERDTree always open on startup
let g:nerdtree_tabs_open_on_console_startup = 1
" ----- xolox/vim-easytags settings -----
" Where to look for tags files
set tags=./tags;,~/.vimtags
" Sensible defaults
let g:easytags_events = ['BufReadPost', 'BufWritePost']
let g:easytags_async = 1
let g:easytags_dynamic_files = 2
let g:easytags_resolve_links = 1
let g:easytags_suppress_ctags_warning = 1
" ----- majutsushi/tagbar settings -----
" Open/close tagbar with \b
nmap <silent> <leader>b :TagbarToggle<CR>
" ----- Raimondi/delimitMate settings -----
let delimitMate_expand_cr = 1
augroup mydelimitMate
au!
au FileType markdown let b:delimitMate_nesting_quotes = ["`"]
au FileType tex let b:delimitMate_quotes = ""
au FileType tex let b:delimitMate_matchpairs = "(:),[:],{:},`:'"
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
augroup END