comparison 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
comparison
equal deleted inserted replaced
530:0ab0820fd528 531:d6e08a057094
11 set noerrorbells 11 set noerrorbells
12 set ts=8 12 set ts=8
13 set sw=2 13 set sw=2
14 set expandtab 14 set expandtab
15 set title 15 set title
16 set incsearch
17 set ignorecase
18 set smartcase
16 set hlsearch 19 set hlsearch
17 set ls=2 " always show status line 20 set ls=2 " always show status line
18 set list listchars=tab:>-,trail:.,extends:> 21 set list listchars=tab:>-,trail:.,extends:>
19 set number 22 set number
20 23
35 map <C-t>p :tabp<cr> 38 map <C-t>p :tabp<cr>
36 map <C-t>n :tabn<cr> 39 map <C-t>n :tabn<cr>
37 map <C-t><C-t> :NERDTreeToggle<cr> 40 map <C-t><C-t> :NERDTreeToggle<cr>
38 map <C-t><C-m> :NERDTreeMirror<cr> 41 map <C-t><C-m> :NERDTreeMirror<cr>
39 42
40 nmap _cs :let @/ = ''<cr> 43 " clears out highlight
44 nmap <leader>c :nohlsearch<cr>
45
46 " toggles paste mode
47 nmap <leader>p :set paste!<cr>
48
49 " removes prefix for windows copypasta
41 nmap _pa :set number! list!<cr> 50 nmap _pa :set number! list!<cr>
42 51
43 " format JSON 52 " format JSON
44 map <leader>j <esc>:%!python -m json.tool<cr> 53 map <leader>j <esc>:%!python -m json.tool<cr>
54
55 " visual navigation instead of logical
56 nmap j gj
57 nmap k gk
45 58
46 "autocmd VimEnter * NERDTree 59 "autocmd VimEnter * NERDTree
47 "autocmd BufEnter * NERDTreeMirror 60 "autocmd BufEnter * NERDTreeMirror
48 61
49 if has('syntax') 62 if has('syntax')