aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-12-30 11:40:44 +0100
committerAdrian Kummerlaender2016-12-30 11:40:44 +0100
commit6f2a3e1a8437957936c375971172191df1c0ca08 (patch)
treeb3900a4ef4514df1f569c3a3f27febfbf0bac753 /vim
parent7b566f7e88faa91185b653f9ab964ffe5dfac894 (diff)
downloaddotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.tar
dotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.tar.gz
dotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.tar.bz2
dotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.tar.lz
dotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.tar.xz
dotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.tar.zst
dotfiles-6f2a3e1a8437957936c375971172191df1c0ca08.zip
Change `vim` leader to comma
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc10
1 files changed, 8 insertions, 2 deletions
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 <leader>s :let @/=""<CR>
+map <leader>fc :foldclose<CR>
+map <leader>fo :foldopen<CR>
+
+nmap <backspace> :e#<CR>
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 <F4> :NERDTreeToggle<CR>
-nnoremap <F5> :GundoToggle<CR>
+nnoremap <F5> :MundoToggle<CR>
nnoremap <F6> :GitGutterToggle<CR>
nnoremap <F7> :set cursorline!<CR>
nnoremap <F12> :Goyo<CR>