-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (42 loc) · 1.1 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
set number
set numberwidth=3
syntax on
filetype plugin indent on
"tab widths set to4, spaces as tabs
set tabstop=4
set shiftwidth=4
set expandtab
"autocmd Filetype python setlocal noexpandtab tabstop=4 shiftwidth=4
"remap jk as the Esc option in insert mode
inoremap jk <Esc>
"remap // to search for visually selected text
vnoremap // "zy/<C-R>"<CR>
"easy source vimrc
nnoremap sorc :so $MYVIMRC<CR>
"enable search highlighting
let @/ = ""
set hlsearch
"remap f to remove search highlighting
nnoremap f :noh<CR>
"remap keys for tab navigation
nnoremap <C-n> :tabnew<CR>
nnoremap tn :tabnext<CR>
nnoremap tp :tabprevious<CR>
"remap keys for easier split navigation
nnoremap <C-j> <C-W><C-J>
nnoremap <C-k> <C-W><C-K>
nnoremap <C-l> <C-W><C-L>
nnoremap <C-h> <C-W><C-H>
"make splits open to right and bottom
set splitbelow
set splitright
"display relative path in statusline, and always display it
"set statusline=%f
"set statusline+=%m
set laststatus=2
set background=dark
colorscheme solarized
set mouse=a
"need this to get mouse to work properly from within tmux
set ttymouse=xterm2
execute pathogen#infect()