-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (70 loc) · 1.45 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
let g:airline_powerline_fonts=1
let g:syntastic_javascript_checkers = ['jscs', 'jshint', 'eslint']
call pathogen#infect()
syntax on
filetype off
filetype plugin indent on
set nocompatible
set t_Co=256
set modelines=0
set ts=4
set expandtab
set shiftwidth=4
set softtabstop=4
set number
set incsearch
set smartindent
set vb t_vb=
set noerrorbells
set novisualbell
set tm=500
set encoding=utf-8
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set undofile
set fileencodings=utf8,iso-2022-jp,euc-jp,cp932,default,latin1
"nnoremap <F5> :GundoToggle<CR>
let mapleader = ","
nnoremap/ /\v
vnoremap/ /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=2
nnoremap<silent><Tab> @=(foldlevel('.')?'za':"\<Tab>")<cr>
nnoremap<leader><space> :noh<cr>
nnoremap<up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
nnoremap j gj
nnoremap k gk
nnoremap<leader>a :Ack
nnoremap<leader>ft Vatzf
nnoremap<leader>w <C-w>v<C-w>l
nnoremap<C-h> <C-w>h
nnoremap<C-j> <C-w>j
nnoremap<C-k> <C-w>k
nnoremap<C-l> <C-w>l
"set background=dark
"colorscheme solarized
colorscheme onedark
set wildignore=*.class,*.un~,*.tmp
set colorcolumn=80
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
com! FormatJSON %!python -m json.tool