-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
86 lines (73 loc) · 1.82 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
76
77
78
79
80
81
82
83
84
85
86
" //// plugins ////
"
" inspired by @noopkat - /noopkat
"
" + ctrlp
" + vim-airline
" + vim-airline-theme
" + vim-vue
" + vim-jsx-improve
" + dracula colour theme
" + nerdtree
" + pathogen
set belloff=all
call pathogen#infect()
call pathogen#helptags()
set runtimepath^=~/.vim/bundle/vim-airline/plugin/airline.vim
set runtimepath^=~/.vim/bundle/ctrlp.vim
set runtimepath^=~/.vim/bundle/vim-surround/plugin/surround.vim
" //// turbopasi settings ////
syntax on
color dracula
set smartindent
set clipboard=unnamed
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
set number
set cursorline
set showmatch
set incsearch
set hlsearch
let g:ctrlp_working_path_mode = 'r'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*/node_modules/*
let g:ctrlp_show_hidden=1
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
set noswapfile
autocmd FileType javascript JsPreTmpl html
let g:jsx_ext_required = 0
highlight Normal ctermbg=NONE
highlight nonText ctermbg=NONE
" airline
let g:airline_theme='wombat'
let g:airline#extensions#tabline#enabled = 0
let g:airline#extensions#branch#enabled = 1
let g:airline_left_sep = ' <3 '
let g:airline_right_sep = ' + '
let g:airline_section_warning = ''
let g:airline_section_y = ''
let g:airline_section_x = ''
set laststatus=2
" //// mappings ////
" ctrl-p plugin
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" move between buffers
map <C-Left> <Esc>:bprev<CR>
map <C-Right> <Esc>:bnext<CR>
" nerd tree toggle
map <C-b> :NERDTreeToggle<CR>
" move lines up and down
nnoremap <C-j> :m .+1<CR>==
nnoremap <C-k> :m .-2<CR>==
inoremap <C-j> <Esc>:m .+1<CR>==gi
inoremap <C-k> <Esc>:m .-2<CR>==gi
vnoremap <C-j> :m '>+1<CR>gv=gv
vnoremap <C-k> :m '<-2<CR>gv=gv
" switch to left / right split
map <C-h> <C-W>h
map <C-l> <C-W>l
set noruler
set noshowmode
set hidden