summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/bin/keyboard2
-rw-r--r--vim/.vimrc4
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/bin/keyboard b/bin/bin/keyboard
index bc1ef61..53f4df9 100755
--- a/bin/bin/keyboard
+++ b/bin/bin/keyboard
@@ -3,7 +3,7 @@ setxkbmap us -variant dvp
# Make caps lock a Control
xmodmap -e "clear Lock"
-xmodmap -e "keysym Caps_Lock = Control_L Control_L"
+xmodmap -e "keysym Caps_Lock = Control_L Caps_Lock"
xmodmap -e "add Control = Control_L"
# Remap modifiers (Keyboard dependent)
diff --git a/vim/.vimrc b/vim/.vimrc
index 8457c47..9b73fea 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -52,7 +52,7 @@ Plug 'vim-airline/vim-airline-themes'
Plug 'vim-scripts/ReplaceWithRegister'
Plug 'vim-scripts/SpellCheck'
Plug 'vim-scripts/gmsh.vim'
-Plug 'w0rp/ale'
+" Plug 'w0rp/ale'
if has("nvim")
Plug 'Shougo/deoplete.nvim'
@@ -291,7 +291,9 @@ nnoremap <LocalLeader>h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<CR>
nnoremap Y y$
nnoremap + za
nnoremap <BS> <C-W>h
+
nnoremap <Leader>fw :%s/\s\+$//<cr>
+nnoremap <Leader>ft :%s/^ \+//g<cr>
cnoremap <c-p> <up>
cnoremap <c-n> <down>