diff rc/vimrc @ 531:d6e08a057094

Updates to vim settings. - clear search key - smarter search - visual navigation - misc comments
author edogawaconan <me@myconan.net>
date Mon, 03 Nov 2014 23:22:59 +0900
parents de3ff51840a3
children 70d4fb4f7d9f
line wrap: on
line diff
--- a/rc/vimrc	Fri Oct 17 10:23:36 2014 +0900
+++ b/rc/vimrc	Mon Nov 03 23:22:59 2014 +0900
@@ -13,6 +13,9 @@
 set sw=2
 set expandtab
 set title
+set incsearch
+set ignorecase
+set smartcase
 set hlsearch
 set ls=2 " always show status line
 set list listchars=tab:>-,trail:.,extends:>
@@ -37,12 +40,22 @@
 map <C-t><C-t> :NERDTreeToggle<cr>
 map <C-t><C-m> :NERDTreeMirror<cr>
 
-nmap _cs :let @/ = ''<cr>
+" clears out highlight
+nmap <leader>c :nohlsearch<cr>
+
+" toggles paste mode
+nmap <leader>p :set paste!<cr>
+
+" removes prefix for windows copypasta
 nmap _pa :set number! list!<cr>
 
 " format JSON
 map <leader>j <esc>:%!python -m json.tool<cr>
 
+" visual navigation instead of logical
+nmap j gj
+nmap k gk
+
 "autocmd VimEnter * NERDTree
 "autocmd BufEnter * NERDTreeMirror