-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.myvimrc
134 lines (101 loc) · 2.72 KB
/
.myvimrc
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
set nocompatible
filetype plugin on
set omnifunc=syntaxcomplete#Complete
let g:tube_terminal = "xterm"
let current_compiler = "gcc"
let g:syntastic_cpp_compiler = 'gcc'
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++ -Wall -Werror -Wextra'
let g:syntastic_check_on_open=1
let g:syntastic_enable_signs=1
let g:syntastic_cpp_check_header = 1
let g:syntastic_cpp_remove_include_errors = 1
let g:syntastic_c_include_dirs = ['../../../include', '../../include','../include','./include']
let g:gundo_width = 60
let g:gundo_preview_height = 40
let g:gundo_right = 1
let g:multi_cursor_next_key='<C-d>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-l>'
let g:multi_cursor_quit_key='<Esc>'
let g:multi_cursor_start_key='<F6>'
let g:current_path_for_nerd_init=expand('%:p:h')
let g:ctrlp_map = '<C-f>'
let g:ctrlp_cmd = 'CtrlP'
call pathogen#infect()
call pathogen#helptags()
syntax on
colorscheme molokai
set encoding=utf-8
set mouse=a
set ai
set nu
set cc=80
set ts=4
set t_Co=256
set shiftwidth=4
set cursorline
set whichwrap+=<,>,h,l,[,]
hi CursorLine term=bold cterm=bold guibg=Grey40
set noswapfile
set splitright
set list listchars=tab:»·,trail:·
noremap <Space><Space> :tabedit ~/.myvimrc<CR>
noremap <C-h> :GundoToggle<CR>
noremap <S-Tab> :tabprevious<CR>
noremap <Tab> :tabnext<CR>
noremap <C-d> :vs
noremap <S-d> :split
noremap <C-t> :tabedit
noremap <C-k> :!(make)<CR>
noremap <C-g> :NERDTreeToggle<CR>
inoremap <C-k> <Esc>:help key-notation<CR>
inoremap <C-t> <Esc>:tabedit
noremap <S-Right> <C-w><Right>
noremap <S-Left> <C-w><Left>
noremap <S-Up> <C-w><Up>
noremap <S-Down> <C-w><Down>
inoremap <C-v> <Esc>pi
inoremap <C-c> <Esc>yi
inoremap <C-x> <Esc>xi
inoremap <C-u> <Esc><C-r>i
inoremap <C-a> <Esc>gg<S-v>G
noremap <C-a> gg<S-v>G
noremap <silent> <C-s> :w!<CR>
noremap <C-p> :CtrlP<CR>
inoremap <C-p> <Esc>:CtrlP<CR>
noremap <C-o> oDEBUG
inoremap <C-o> <Esc>oDEBUG
inoremap <silent> <C-s> <Esc>:w!<CR>
vnoremap <Tab> >
vnoremap <S-Tab> <
set autochdir
set backspace=indent,eol,start
autocmd VimEnter * call s:actionForOpen()
function! s:actionForOpen()
let filename = expand('%:t')
NERDTree
if !empty(filename)
wincmd l
endif
endfunction
autocmd BufCreate * call s:addingNewTab()
function! s:addingNewTab()
let filename = expand('%:t')
if winnr('$') < 2 && exists('t:NERDTreeBufName') == 0
NERDTree
if !empty(filename)
wincmd l
endif
endif
endfunction
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
function! s:CloseIfOnlyNerdTreeLeft()
if exists("t:NERDTreeBufName")
if bufwinnr(t:NERDTreeBufName) != -1
if winnr("$") == 1
q
endif
endif
endif
endfunction
source ~/.Sublivim/config_perso