-
Notifications
You must be signed in to change notification settings - Fork 0
/
gvimrc
82 lines (75 loc) · 2.94 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
" Example Vim graphical configuration.
" Copy to ~/.gvimrc or ~/_gvimrc.
"set guifont=Inconsolata:h20 " Font family and font size.
set nocompatible " Must come first because it changes other options.
set guifont=Menlo:h19
set antialias " MacVim: smooth fonts.
set encoding=utf-8 " Use UTF-8 everywhere.
set guioptions-=T " Hide toolbar.
set background=light " Background.
set lines=35 columns=100 " Window dimensions.
" -------------
syntax enable " Turn on syntax highlighting.
filetype plugin indent on " Turn on file type detection.
runtime macros/matchit.vim " Load the matchit plugin.
"set showcmd " Display incomplete commands.
"set showmode " Display the mode you're in.
"
"set backspace=indent,eol,start " Intuitive backspacing.
"
"set hidden " Handle multiple buffers better.
set wildmenu " Enhanced command line completion.
set wildmode=list:longest " Complete files like a shell.
"set ignorecase " Case-insensitive searching.
"set smartcase " But case-sensitive if expression contains a capital letter.
"
"set number " Show line numbers.
"set ruler " Show cursor position.
"
"set incsearch " Highlight matches as you type.
"set hlsearch " Highlight matches.
"
"set wrap " Turn on line wrapping.
"set scrolloff=3 " Show 3 lines of context around the cursor.
"
"set title " Set the terminal's title
"
"set visualbell " No beeping.
"
"set nobackup " Don't make a backup before overwriting a file.
"set nowritebackup " And again.
""set directory=$HOME/.vim/tmp//,. " Keep swap files in one location
"set directory=/tmp//,. " Keep swap files in one location
"colorscheme topfunky-light
"let mapleader=','
" Tab mappings.
"map <leader>tt :tabnew<cr>
"map <leader>te :tabedit
"map <leader>tc :tabclose<cr>
"map <leader>to :tabonly<cr>
"map <leader>tn :tabnext<cr>
"map <leader>tp :tabprevious<cr>
"map <leader>tf :tabfirst<cr>
"map <leader>tl :tablast<cr>
"map <leader>tm :tabmove
"nmap <C-S-P> :call <SID>SynStack()<CR>
"
"function! <SID>SynStack()
" if !exists("*synstack")
" return
" endif
" echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
"endfunc
"
"command! -nargs=1 Bs :call BufSel("<args>")
"autocmd FileType eruby setlocal ts=4 sts=4 sw=4 noexpandtab
"set shiftwidth=4 softtabstop=4 expandtab
"
:set guioptions-=r " Don't show right scrollbar
"colorscheme topfunky-light
"colorscheme darkblue
colorscheme railscast
"Set this to 1 if you want CtrlP to scan for dotfiles and dotdirs: >
let g:ctrlp_show_hidden = 1
"let g:ctrlp_map = '<c-p>'
"let g:ctrlp_cmd = 'CtrlP'