From 6f2a3e1a8437957936c375971172191df1c0ca08 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 30 Dec 2016 11:40:44 +0100 Subject: Change `vim` leader to comma --- fish/.dir_colors | 1 + vim/.vimrc | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fish/.dir_colors b/fish/.dir_colors index 304aafc..501f9e4 100644 --- a/fish/.dir_colors +++ b/fish/.dir_colors @@ -62,6 +62,7 @@ TERM xterm-256color TERM xterm-88color TERM xterm-color TERM xterm-debian +TERM xterm-termite # Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: # Attribute codes: diff --git a/vim/.vimrc b/vim/.vimrc index d18cf16..eceb918 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,8 +1,8 @@ " The following plugins are expected to be installed: " * pathogen -- autoload other plugins " * ctrlp.vim -- fuzzy file search -" * gundo.vim -- visualize undo tree " * nertree -- nicer file browser with sidebar support +" * vim-mundo -- visualize undo tree " * vim-airline -- better status bar " * vim-unimpaired -- bracket mappings " * vim-gitgutter -- display git diffs alongside line numbers @@ -43,7 +43,13 @@ set incsearch set ignorecase set smartcase +let mapleader="," + map s :let @/="" +map fc :foldclose +map fo :foldopen + +nmap :e# autocmd InsertEnter * :setlocal nohlsearch autocmd InsertLeave * :setlocal hlsearch @@ -110,7 +116,7 @@ let g:goyo_margin_bottom = 0 let g:matlab_behave_paste_cmd = "alt+v" nnoremap :NERDTreeToggle -nnoremap :GundoToggle +nnoremap :MundoToggle nnoremap :GitGutterToggle nnoremap :set cursorline! nnoremap :Goyo -- cgit v1.2.3