forked from CLARKBENHAM/side_projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
44 lines (35 loc) · 1.03 KB
/
.vimrc
File metadata and controls
44 lines (35 loc) · 1.03 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
syntax on
set hlsearch
set ruler
set tabstop=2 shiftwidth=2 expandtab
set autoindent
set shortmess-=S
" So can use keyboard copy-paste within vim and change clipboard outside vim
vmap <C-c> "*y
vmap <C-x> "*x
"Use ctrl-s to save, in both normal and insert mode
:nmap <c-s> :w<CR>
:imap <c-s> <Esc>:w<CR>a
"alt-hjkl to move multiple lines https://stackoverflow.com/questions/6778961/alt-key-shortcuts-not-working-on-gnome-terminal-with-vim/10216459#10216459
let c='a'
while c <= 'z'
exec "set <A-".c.">=\e".c
exec "imap \e".c." <A-".c.">"
let c = nr2char(1+char2nr(c))
endw
set ttimeout ttimeoutlen=50
"∆ found by `a <Alt>-j`.
:nmap ∆ 8j
:nmap ˚ 8k
:inoremap ∆ <Esc>8j<CR>a
:inoremap ˚ <Esc>8k<CR>a
"maped escape key ("\e") to alt-e in iterm2
execute pathogen#infect()
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
set statusline+=\ l:\ %l,%c
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0