Skip to content

Commit

Permalink
removed annoying esc-esc-{j, k} shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Taewoong Jang committed Feb 8, 2019
1 parent 485cf5e commit b180c94
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vimrcs/basic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ set history=500
" Enable filetype plugins
filetype plugin on
filetype indent on
set nu

" Set to auto read when a file is changed from the outside
set autoread
Expand Down Expand Up @@ -272,11 +273,6 @@ set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\
" Remap VIM 0 to first non-blank character
map 0 ^
" Move a line of text using ALT+[jk] or Command+[jk] on mac
nmap <M-j> mz:m+<cr>`z
nmap <M-k> mz:m-2<cr>`z
vmap <M-j> :m'>+<cr>`<my`>mzgv`yo`z
vmap <M-k> :m'<-2<cr>`>my`<mzgv`yo`z

if has("mac") || has("macunix")
nmap <D-j> <M-j>
Expand Down

0 comments on commit b180c94

Please sign in to comment.