-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gvimrc
69 lines (59 loc) · 2.41 KB
/
.gvimrc
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
set mousehide " hide the mouse when typing text
"
"highlight Normal guibg=grey90
"highlight Cursor guibg=Blue guifg=NONE
"highlight lCursor guibg=Cyan guifg=NONE
"highlight NonText guibg=grey80
"highlight Constant gui=NONE guibg=grey95
"highlight Special gui=NONE guibg=grey95
" "-------------------------------------------------------------------------------
" Moving cursor to other windows:
" shift-down : change window focus to lower one (cyclic)
" shift-up : change window focus to upper one (cyclic)
" shift-left : change window focus to one on left
" shift-right : change window focus to one on right
"-------------------------------------------------------------------------------
nnoremap <s-down> <c-w>w
nnoremap <s-up> <c-w>W
nnoremap <s-left> <c-w>h
nnoremap <s-right> <c-w>l
"
"-------------------------------------------------------------------------------
" Some additional hot keys:
" shift-F3 : call gvim file browser
"-------------------------------------------------------------------------------
noremap <silent> <s-F3> :silent browse confirm e<CR>
inoremap <silent> <s-F3> <Esc>:silent browse confirm e<CR>
"
"-------------------------------------------------------------------------------
" toggle insert mode <--> normal mode with the <RightMouse>-key
"-------------------------------------------------------------------------------
nnoremap <RightMouse> <Insert>
inoremap <RightMouse> <ESC>
"
"-------------------------------------------------------------------------------
" use font with clearly distinguishable brackets: ()[]{}
"-------------------------------------------------------------------------------
"set guifont=Monospace\ 11
"set guifont=Consolas:h12:cANSI
"
"
"colorscheme desert
"colo sorcerer
colo Mustang
set lines=40
set columns=120
set guioptions -=T " turn off toolbar
:command! -nargs=1 -complete=file O tab drop <args>
"set guifont=Source\ Code\ Pro\ for\ Powerline "make sure to escape the spaces in the name properly
"set guifont
"let g:Powerline_symbols = 'unicode'
"let g:airline_powerline_fonts=1
" mapping for control-[shift-]tab tab navigation, escapes edit mode
nnoremap <C-Tab> <C-PageDown>
nnoremap <C-S-Tab> <C-PageUp>
inoremap <C-Tab> <esc><C-PageDown>
inoremap <C-S-Tab> <esc><C-PageUp>
"colo Mustang
autocmd BufEnter * silent! lcd %:p:h
" http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file