remap ctrl, capslock; add vim-unimpaired

master
Paul Walko 2017-11-12 17:01:19 -05:00
parent 279921e4c3
commit bab42a35fb
6 changed files with 35 additions and 8 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "vim/vim/bundle/supertab"] [submodule "vim/vim/bundle/supertab"]
path = vim/vim/bundle/supertab path = vim/vim/bundle/supertab
url = https://github.com/ervandew/supertab.git 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
Xmodmap Normal file
View File

@ -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

@ -0,0 +1 @@
Subproject commit 3a7759075cca5b0dc29ce81f2747489b6c8e36a7

@ -1 +0,0 @@
Subproject commit 22aac5c2cb6a8ebe906bf1495eb727717390e62e

22
vimrc
View File

@ -5,7 +5,7 @@ execute pathogen#infect()
""" Syntastic """ Syntastic
" Recommended settings " Recommended settings
set statusline+=%#warning# set statusline+=%#warning#
set statusline+=${SyntasticStatuslineFlag()} set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%* set statusline+=%*
let g:syntastic_always_populate_loc_list = 1 let g:syntastic_always_populate_loc_list = 1
@ -13,6 +13,12 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0 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 """ General Settings
" Set tabs to 4 spaces " Set tabs to 4 spaces
@ -29,6 +35,9 @@ endif
set number set number
set relativenumber set relativenumber
" Autoindent
set autoindent
" Syntax highlighting " Syntax highlighting
syntax enable syntax enable
filetype plugin on filetype plugin on
@ -37,9 +46,8 @@ filetype plugin on
set path+=** set path+=**
set wildmenu set wildmenu
" Window stuff
""" NOTES: map <C-h> <C-w>h
" AUTOCOMPLETE: map <C-j> <C-w>j
" - ^x^n for JUST this file map <C-k> <C-w>k
" - ^x^f for filenames map <C-l> <C-w>l
" - ^n for anything specified by the 'complete' option

View File

@ -1 +1,2 @@
xmodmap ~/.Xmodmap
gpg2 --quiet --no-tty --batch -d $HOME/.mutt/passwords/dumb.gpg > /dev/null gpg2 --quiet --no-tty --batch -d $HOME/.mutt/passwords/dumb.gpg > /dev/null