-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
90 lines (75 loc) · 1.9 KB
/
vimrc
File metadata and controls
90 lines (75 loc) · 1.9 KB
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
" Load modules via pathogen
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" Basic configuration
set nocompatible
set ignorecase
set smartcase
set number
set cursorline
set ruler
set showcmd
"set mouse=a
"set laststatus=2
"set scrolloff=5
set wrap
"set iskeyword-=-,@
let mapleader=","
let g:mapleader=","
set title
colorscheme ir_black
set background=dark
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
" Tab behavior
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
" Persistent undo
try
set undodir=~/.vim/undodir
set undofile
set undolevels=1000 " maximum number of changes that can be undone
set undoreload=10000 " maximum number lines to save for undo on a buffer reload
catch
endtry
" Intuitive backspacing in insert mode
set backspace=indent,eol,start
" File-type highlighting and configuration.
" Run :filetype (without args) to see what you may have
" to turn on yourself, or just set them all to be sure.
syntax on
filetype on
filetype plugin on
filetype indent on
" Highlight search terms...
set hlsearch
set incsearch " ...dynamically as they are typed.
nnoremap <CR> :noh<CR><CR>
" No obnoxious noise, flash instead
set visualbell
" Settings for Command-T
set wildignore+=*.o,*.obj,.git,*.pyc
" Use custom filetype behavior for markdown documents (pandoc)
" autocmd Bufread,BufNewFile *.md set filetype=pandoc
" Omni completion
" set ofu=syntaxcomplete#Complete
" autocmd FileType python set omnifunc=pythoncomplete#Complete
" Nerdtree
" map <F4> :NERDTree<CR>
:noremap <Leader>n :NERDTreeToggle<CR>
" let NERDTreeMouseMode=1 " Single click for everything
" Tab/shift-tab for indenting
vmap <Tab> >gv
vmap <S-Tab> <gv
imap <S-Tab> <C-o><<
" GUI specific behavior
if has("gui_running")
if has("gui_macvim")
set gfn=Monaco:h12.00
colorscheme ir_black
set guioptions-=T
"set columns=120
endif
endif