-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
61 lines (52 loc) · 1.23 KB
/
Copy path.vimrc
File metadata and controls
61 lines (52 loc) · 1.23 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
set nocompatible
syntax on
set ls=2
set ignorecase
set nu
set ruler
set hlsearch
set incsearch
set expandtab
set tabstop=4
set autoindent
set copyindent
set shiftwidth=4
set background=dark
set ff=unix
set wrap!
set nofoldenable
set pastetoggle=<F12>
"Automatically delete trailing whitespaces
autocmd BufWritePre * :%s/\s\+$//e
" Turns off swapfiles and backups
set nobackup
set nowb
set noswapfile
" Imports .bash_profile in :sh command
set shell=/bin/bash\ -l
"""""""""""""""""""
"pair autocomplete
"""""""""""""""""""
inoremap < <><Left>
inoremap <<CR> <<CR>><Esc>O
inoremap << <
inoremap <> <>
""""""""""""""""""""""""""""""""""
"For Mac OSX Terminal.app: Handles mouse scrolling: need to install SIMBL and MouseTerm for this to work
""""""""""""""""""""""""""""""""""
if has("mouse")
set mouse=a
endif
""""""""""""""""""""""""""""""""""
"pathogen.vim
" Use pathogen to easily modify the runtime path to include all
" plugins under the ~/.vim/bundle directory
""""""""""""""""""""""""""""""""""
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()""
""""""""""""""""""""""""""""""""""
"NERDtree plugin
""""""""""""""""""""""""""""""""""
"autocmd vimenter * NERDTree
nnoremap <S-N> :NERDTreeToggle<CR>
let g:NERDTreeWinSize = 20