forked from buddylindsey/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
65 lines (56 loc) · 1.86 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
let mapleader = ","
let maplocalleader = "\\"
" basics
set nocompatible " Use vim defaults
set ruler " Show the cursor position all the time
set title " Show title in console title bar
set hid " Change buffer without saving
set showmatch " Show matching bracets
set number " show line numbers
set directory=~/.vim/swapfiles
set backspace=indent,eol,start
set fileformats=unix,mac,dos
set cursorline
set scrolloff=3
set showcmd
colorscheme molokai
" sets syntax highlighting and color shceme
syntax on " syntax highlighting on
" status line
set statusline=%F%m-%r[%L][%p%%][%{&ff}]%y[%l,%v]
" Indentation
filetype plugin indent on
set expandtab
set formatoptions=rq
set shiftwidth=2
set softtabstop=2
set tabstop=2
set autoindent
set smarttab
" Python
autocmd FileType python set shiftwidth=4
autocmd FileType python set softtabstop=4
autocmd FileType python set tabstop=8
" Turns off top bar in macvim
if has("gui_running")
set guioptions=egmrt
endif
" --Keyboard mappings--
" vim file specific
map <Leader>v :sp ~/.vimrc<cr> " edit my .vimrc file in a split
map <Leader>u :source ~/.vimrc<cr>
map <Leader>e :e ~/.vimrc<cr>
" yankring bindings
nnoremap <silent> <F11> :YRShow<CR>
map <Leader>y :YRShow<cr> " allow ,y to open yankring
" fuzzy finder
let g:fuf_modesDisable = []
let g:fuf_coveragefile_exclude = '\v\~$|\.(o|exe|dll|bak|orig|swp|jpg|png|gif)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])|vendor'
nnoremap <silent> <Leader>t :FufCoverageFile<CR>
nnoremap <silent> <Leader>T :FufBufferTagAll<CR>
"nnoremap <silent> <Leader>y :FufBuffer<CR>
nnoremap <silent> <Leader>r :FufMruFile<CR>
nnoremap <silent> <Leader>: :FufMruCmd<CR>
nnoremap <silent> <Leader>m :FufChangeList<CR>
nnoremap <silent> <C-\> :FufBufferTagAllWithCursorWord!<CR>
vnoremap <silent> <C-\> :FufBufferTagAllWithSelectedText!<CR>