Skip to content

Commit c8affae

Browse files
committed
Fix arrow keys
1 parent d4f264d commit c8affae

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎vimrc‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ execute pathogen#infect()
44
" Reload this file with <Leader>+s
55
map <Leader>s :source ~/.vim/vimrc<CR>
66
7+
" Make arrow keys work in vim
8+
set nocompatible
9+
710
" Enable syntax highlighting and theme
811
" http://marcgg.com/blog/2016/03/01/vimrc-example/
912
filetype on
@@ -34,9 +37,15 @@ set expandtab
3437
set smartindent
3538
set autoindent
3639

40+
" Backspaces
41+
set backspace=indent,eol,start
42+
3743
" Highlight found words in search
3844
set hlsearch
39-
nnoremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>
45+
nnoremap <esc> :nohlsearch<Bar>:echo<CR>
46+
" Avoid weird behavior with escape
47+
" https://stackoverflow.com/a/1037182
48+
nnoremap <esc>^[ <esc>^[
4049
4150
" Command-T settings
4251
" Reindex with <Leader>+r

0 commit comments

Comments
 (0)