-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
143 lines (113 loc) · 2.68 KB
/
vimrc
File metadata and controls
143 lines (113 loc) · 2.68 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
filetype off
call pathogen#infect('~/vimfiles/bundle')
syntax on
filetype plugin indent on
set nocompatible
"source $VIMRUNTIME/vimrc_example.vim
"source $VIMRUNTIME/mswin.vim
"behave mswin
"
"Configuring cursor for iTerm2
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
"General cursor configuration
:autocmd InsertEnter * set cul
:autocmd InsertLeave * set nocul
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set relativenumber
set undofile
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
let mapleader = ","
set wrap
set textwidth=79
set formatoptions=qrn1
set colorcolumn=85
"set list
"set listchars=tab:?\ ,eol:¬
set virtualedit="all"
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
nnoremap j gj
nnoremap k gk
inoremap jj <ESC>
nnoremap <leader>w <C-w>v<C-w>l
inoremap <F1> <ESC>
nnoremap <F1> <ESC>
vnoremap <F1> <ESC>
au FocusLost * :wa
nnoremap <leader>ev <C-w><C-v><C-l>:e $MYVIMRC<cr>
" Disable visual bell
" http://stackoverflow.com/questions/5933568/disable-blinking-at-the-first-last-line-of-the-file
autocmd VimEnter * set t_vb=
cnoremap %% <C-R>=expand('%:h').'/'<cr>
map <leader>e :edit %%
map <leader>v :view %%
nnoremap <leader><leader> <c-^>
syntax on
colorscheme desert
if has('gui_running')
set guifont=Menlo:h15:cRUSSIAN
endif
set guifont=Menlo\ Regular:h15
"nnoremap - o<esc>
"nnoremap _ O<esc>
nnoremap <esc> :noh<return><esc>
map <f9> :wa<CR>:!python.exe pySketch.py<CR>
au FileType python setl autoindent tabstop=4 expandtab shiftwidth=4 softtabstop=4
autocmd FileType python compiler pylint
"set shell=C:/Programs/MinGW/msys/1.0/bin/sh.exe
"set shellcmdflag=--login\ -c
"set shellxquote=\"
set winwidth=84
" We have to have a winheight bigger than we want to set winminheight. But if
" we set winheight to be huge before winminheight, the winminheight set will
" fail.
set winheight=5
set winminheight=5
set winheight=999
"set shell=powershell
"set shellcmdflag=-c
"set shellquote=\"
"set shellxquote=
inoremap <expr> j ((pumvisible())?("\<C-n>"):("j"))
inoremap <expr> k ((pumvisible())?("\<C-p>"):("k"))
set runtimepath^=~/.vim/bundle/ctrlp.vim
set nobackup
set noswapfile
syntax enable
set background=light
colorscheme solarized
"set t_C0=256