-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvimrc
51 lines (51 loc) · 1.29 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
execute pathogen#infect()
set dir=~/.vim/_swap/
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
set smartcase
syntax on
set updatetime=200
set hlsearch
set incsearch
set nu
set cursorline
set laststatus=2
hi Search ctermbg=None ctermfg=yellow
let g:syntastic_mode_map = {
\ "mode": "passive",
\ "active_filetypes": [],
\ "passive_filetypes": []}
nnoremap J :s/.*\zs;//<Enter> J<Enter>
nnoremap <expr> J getline(".")[col("$")-2] == ';' ? ':s/.*\zs;//<Enter>J<Enter>' : 'J<Enter>'
command SC SyntasticCheck
hi MatchParen cterm=none ctermbg=darkblue ctermfg=white
noremap Y y$
set backspace=indent,eol,start
set lazyredraw " maybe remove this?
command WQ wq
command Wq wq
command Wqa wqa
command W w
command Q q
command QA qa
command Qa qa
set ttyfast
let mapleader = "\<leader>"
" FIX WHOLE FILE - FIXES INDENTING, TRAILING SPACE, AND CONVERTS TABS TO
" SPACES
nnoremap <Leader>f :retab<CR> mzgg=G'z<CR> :%s/\s\+$//<CR>
set timeoutlen=1000 ttimeoutlen=0
noremap <Up> <nop>
noremap <Down> <nop>
noremap <Left> <nop>
noremap <Right> <nop>
inoremap {<CR> {<CR>}<Esc>O
inoremap {{ {
inoremap {} {}
set pastetoggle=<F2>
nnoremap <CR>f :retab<CR> "changes all tabs to space