-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
43 lines (35 loc) · 926 Bytes
/
.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
execute pathogen#infect()
syntax on
filetype plugin indent on
colorscheme murphy
set background=dark
set shiftwidth=2
set tabstop=8
set softtabstop=0
set expandtab
set smarttab
set autoindent
set incsearch
set nowrap
set hlsearch
set number
" <Ctrl-l> redraws the screen and removes any search highlighting.
nnoremap <silent> <C-l> :nohl<CR><C-l>
set ruler
" ignore case, unless we searched for capitalized characters
set smartcase
set ignorecase
" check first/last 5 lines of file for vim modelines
set modeline modelines=5
" DetectIndent
:autocmd Filetype * :DetectIndent
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
" Using a mouse in vim? I can't even
set mouse=
set ttymouse=
" vim 9 workaround: https://github.com/preservim/nerdtree/issues/1321
let g:NERDTreeMinimalMenu=1
" https://stackoverflow.com/a/15317146
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//