summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-03-14 14:43:41 +0000
committerUrbain Vaes <urbain@vaes.uk>2017-03-14 14:43:41 +0000
commit7105bd2dabc41226179a5b8a35385943a76ec46b (patch)
tree1dd0b97da9b5a8995fb39f629a84d30a2548246f
parent0e69d114db68d9454027af95b3a40b8de393df09 (diff)
Make minor modifications
-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>