Port of minimal vimrc
This commit is contained in:
parent
599a92fce6
commit
0aaedfd60a
1 changed files with 14 additions and 17 deletions
31
vim/.vimrc
31
vim/.vimrc
|
|
@ -1,6 +1,3 @@
|
||||||
runtime bundle/vim-pathogen/autoload/pathogen.vim
|
|
||||||
execute pathogen#infect()
|
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
set number
|
set number
|
||||||
|
|
@ -45,20 +42,20 @@ noremap <silent> j gj
|
||||||
map ; :
|
map ; :
|
||||||
noremap ;; ;
|
noremap ;; ;
|
||||||
|
|
||||||
map ;h :wincmd h<CR>
|
map <silent> ;<Space> :nohlsearch<CR>
|
||||||
map ;j :wincmd j<CR>
|
|
||||||
map ;k :wincmd k<CR>
|
|
||||||
map ;l :wincmd l<CR>
|
|
||||||
|
|
||||||
map ;" :split<CR>
|
map <silent> ;h :wincmd h<CR>
|
||||||
map ;% :vsplit<CR>
|
map <silent> ;j :wincmd j<CR>
|
||||||
map ;0 :close<CR>
|
map <silent> ;k :wincmd k<CR>
|
||||||
|
map <silent> ;l :wincmd l<CR>
|
||||||
|
|
||||||
map ;w :w<CR>
|
map <silent> ;" :split<CR>
|
||||||
|
map <silent> ;% :vsplit<CR>
|
||||||
|
map <silent> ;0 :close<CR>
|
||||||
|
map <silent> ;1 :only<CR>
|
||||||
|
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
map <silent> ;w :w<CR>
|
||||||
match ExtraWhitespace /\s\+$/
|
map <silent> ;q :q<CR>
|
||||||
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
|
map <silent> ;x :x<CR>
|
||||||
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
|
||||||
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
set wildignore+=*.swp,*~
|
||||||
autocmd BufWinLeave * call clearmatches()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue