Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tab completion, paren, some keybinds, vi-mode(tmux)

  • Loading branch information...
commit fe6fa274381682e76a27e634c21f3f9d050634f5 1 parent 1b3dddf
napthats authored
Showing with 19 additions and 6 deletions.
  1. +2 −0  .tmux.conf
  2. +17 −6 .vimrc
2  .tmux.conf
View
@@ -1,3 +1,5 @@
set-option -g prefix C-t
bind-key C-t next-window
bind-key C-r previous-window
+set -g mode-keys vi
+
23 .vimrc
View
@@ -1,17 +1,18 @@
set autoindent
set expandtab
-inoremap {} {}<Left>
-inoremap [] []<Left>
-inoremap () ()<Left>
-inoremap "" ""<Left>
-inoremap '' ''<Left>
-inoremap <> <><Left>
+let loaded_matchparen = 1
+set showmatch
+inoremap <C-d> <Del>
+nnoremap <C-h> X
inoremap <C-f> <Right>
inoremap <C-b> <Left>
inoremap <C-j> <Esc>
+nnoremap Y y$
+
+nnoremap s<Space> i<Space><Esc>l
nnoremap sa ia<Esc>l
nnoremap sb ib<Esc>l
nnoremap sc ic<Esc>l
@@ -78,3 +79,13 @@ nnoremap s> i><Esc>l
nnoremap s/ i/<Esc>l
nnoremap s? i?<Esc>l
+function! InsertTabWrapper()
+ let col = col('.') - 1
+ if !col || getline('.')[col - 1] !~ '\k'
+ return "\<TAB>"
+ else
+ return "\<C-N>"
+ endif
+endfunction
+inoremap <tab> <c-r>=InsertTabWrapper()<cr>
+
Please sign in to comment.
Something went wrong with that request. Please try again.