forked from oconnor663/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
71 lines (60 loc) · 1.56 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
call pathogen#infect()
call pathogen#helptags()
set nocompatible
set hidden
set history=1000
set wildmenu
set wildmode=list:longest
set ignorecase
set smartcase
set ruler
set hlsearch
set incsearch
set tags=tags;/
set number
set tabstop=2
set shiftwidth=2
set expandtab
set list
set listchars=tab:»\ ,trail:·
set autochdir
set backspace=indent,eol,start
" custom key mappings
let mapleader = ","
noremap \ ,
noremap <C-l> :nohlsearch<CR><C-l>
" Solarized color scheme
syntax on
set background=dark
let g:solarized_termtrans = 1
colorscheme solarized
" NERDTree settings
map <Leader>t :NERDTreeToggle<CR>
let NERDTreeShowBookmarks=1
" quit vim if NERDTree is the last thing open
autocmd bufenter * if (winnr("$") == 1 &&
\ exists("b:NERDTreeType") &&
\ b:NERDTreeType == "primary")
\ | q | endif
" CtrlP settings
let g:ctrlp_cmd = 'CtrlPMRUFiles'
" CtrlP should search from the current file's directory
let g:ctrlp_working_path_mode = 1
" yankstack settings
let g:yankstack_map_keys = 0 " our mappings only
nmap <leader>p <Plug>yankstack_substitute_older_paste
nmap <leader>P <Plug>yankstack_substitute_newer_paste
" Syntax highlighting
syntax on
filetype on
filetype plugin on
filetype indent on
" Store all backup files centrally
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
let big_grep="/home/engshare/admin/scripts/vim/biggrep.vim"
if filereadable(expand(big_grep))
exec 'source' big_grep
endif
" vim settings for python
au Filetype python setl et ts=4 sw=4