Skip to content

Commit

Permalink
remap ctrl, capslock; add vim-unimpaired
Browse files Browse the repository at this point in the history
paulwalko committed Nov 12, 2017
1 parent 279921e commit bab42a3
Showing 6 changed files with 35 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -4,3 +4,6 @@
[submodule "vim/vim/bundle/supertab"]
path = vim/vim/bundle/supertab
url = https://github.com/ervandew/supertab.git
[submodule "vim/bundle/vim-unimpaired"]
path = vim/bundle/vim-unimpaired
url = https://github.com/tpope/vim-unimpaired
15 changes: 15 additions & 0 deletions Xmodmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
clear lock
clear control
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
keycode 37 = Hyper_L
keycode 66 = Control_L
add control = Control_L Control_R
add mod1 = Alt_L Alt_R Meta_L
add mod2 = Num_Lock
add mod3 = Hyper_L
add mod4 = Super_L Super_R
add mod5 = Mode_switch ISO_Level3_Shift
1 change: 1 addition & 0 deletions vim/bundle/vim-unimpaired
Submodule vim-unimpaired added at 3a7759
1 change: 0 additions & 1 deletion vim/vim/bundle/supertab
Submodule supertab deleted from 22aac5
22 changes: 15 additions & 7 deletions vimrc
Original file line number Diff line number Diff line change
@@ -5,14 +5,20 @@ execute pathogen#infect()
""" Syntastic
" Recommended settings
set statusline+=%#warning#
set statusline+=${SyntasticStatuslineFlag()}
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

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

function! SyntasticCheckHook(errors)
if !empty(a:errors)
let g:syntastic_loc_list_height = min([len(a:errors), 10])
endif
endfunction


""" General Settings
" Set tabs to 4 spaces
@@ -29,6 +35,9 @@ endif
set number
set relativenumber

" Autoindent
set autoindent

" Syntax highlighting
syntax enable
filetype plugin on
@@ -37,9 +46,8 @@ filetype plugin on
set path+=**
set wildmenu


""" NOTES:
" AUTOCOMPLETE:
" - ^x^n for JUST this file
" - ^x^f for filenames
" - ^n for anything specified by the 'complete' option
" Window stuff
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
1 change: 1 addition & 0 deletions zprofile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
xmodmap ~/.Xmodmap
gpg2 --quiet --no-tty --batch -d $HOME/.mutt/passwords/dumb.gpg > /dev/null

0 comments on commit bab42a3

Please sign in to comment.