1 parent d4f264d commit c8affaeCopy full SHA for c8affae
1 file changed
vimrc
@@ -4,6 +4,9 @@ execute pathogen#infect()
4
" Reload this file with <Leader>+s
5
map <Leader>s :source ~/.vim/vimrc<CR>
6
7
+" Make arrow keys work in vim
8
+set nocompatible
9
+
10
" Enable syntax highlighting and theme
11
" http://marcgg.com/blog/2016/03/01/vimrc-example/
12
filetype on
@@ -34,9 +37,15 @@ set expandtab
34
37
set smartindent
35
38
set autoindent
36
39
40
+" Backspaces
41
+set backspace=indent,eol,start
42
43
" Highlight found words in search
44
set hlsearch
-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>^[
49
50
" Command-T settings
51
" Reindex with <Leader>+r
0 commit comments