forked from GunioRobot/dotfiles-9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
46 lines (36 loc) · 875 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
44
45
46
call pathogen#runtime_append_all_bundles()
filetype off
syntax on
filetype plugin indent on
set background=dark
colorscheme Tomorrow-Night
set nocompatible
set encoding=utf-8
set showcmd
set number
let mapleader = ","
set nowrap
set tabstop=2 shiftwidth=2
set expandtab
set backspace=indent,eol,start
set hlsearch
set incsearch
set ignorecase
set smartcase
map <leader>c <c-_><c-_>
map <leader>n :NERDTreeToggle<CR>
map <leader>t :tabnew<CR>
if has("autocmd")
autocmd bufwritepost .vimrc source $MYVIMRC
endif
if has("gui_running")
set clipboard=unnamed
endif
map <leader>ew :e <C-R>=expand("%:p:h") . "/" <CR>
map <leader>es :sp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>ev :vsp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>et :tabe <C-R>=expand("%:p:h") . "/" <CR>
vmap <D-[> <gv
vmap <D-]> >gv
nmap <leader>v :tabedit $MYVIMRC<CR>
set clipboard=unnamed