-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
109 lines (82 loc) · 2.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
set nocompatible
set nobackup
set hidden
set history=50
set ruler
set showcmd
set laststatus=2
set backspace=2
set number
set autowrite
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Bundle 'VundleVim/Vundle.vim'
" Define bundles via GitHub repos
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-markdown'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-commentary'
Bundle 'tpope/vim-fugitive'
Bundle 'vim-scripts/ctags.vim'
Bundle 'othree/html5.vim'
Bundle 'rking/ag.vim'
Bundle "pangloss/vim-javascript"
Bundle "vim-ruby/vim-ruby"
Bundle 'fatih/vim-go'
Plugin 'airblade/vim-gitgutter'
Plugin 'tommcdo/vim-exchange'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
call vundle#end()
syntax on
filetype off
filetype plugin indent on
colorscheme wombat256mod
""""
set expandtab
set tabstop=2 shiftwidth=2 softtabstop=2
autocmd FileType javascript setlocal shiftwidth=4 tabstop=4
" searching
set ignorecase
set smartcase
set showmatch
set incsearch
set nohlsearch
" faster than using the escape key
imap jj <esc>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" make it easier to get around the current directory
cabbr %% <C-R>=expand('%:p:h')<CR>
" better buffer switching
nmap <S-h> :bprevious<CR>
nmap <S-l> :bnext<CR>
" Sippets are activated by Shift+Tab
let g:snippetsEmu_key = "<S-Tab>"
" Exclude Javascript files in :Rtags via rails.vim due to warnings when
" parsing
let g:Tlist_Ctags_Cmd="ctags --exclude='*.js'"
" Index ctags from any project, including those outside Rails
map <Leader>ct :!ctags -R .<CR>
" Treat <li> and <p> tags like the block tags they are
" let g:html_indent_tags = 'li\|p'
" Markdown files end in .md
au BufRead,BufNewFile *.md set filetype=markdown
" Enable spellchecking for Markdown
au BufRead,BufNewFile *.md setlocal spell
" more natural splitting
set splitbelow
set splitright
" gitgutter settings
set signcolumn=yes
set updatetime=1000
" airline buffers
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
"vim-go things
let g:go_fmt_command = "goimports"