aboutsummaryrefslogtreecommitdiff
path: root/.vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vim/vimrc')
-rw-r--r--.vim/vimrc12
1 files changed, 9 insertions, 3 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 5d3417b..44982f2 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -11,6 +11,8 @@ Plugin 'VundleVim/Vundle.vim' | " Vundle itself (require
11Plugin 'cscope_plus.vim' | " run cscope -R -b in project folder then use 11Plugin 'cscope_plus.vim' | " run cscope -R -b in project folder then use
12Plugin 'autoload_cscope.vim' | " CTRL+\ s searches word under cursor, CTRL+T back 12Plugin 'autoload_cscope.vim' | " CTRL+\ s searches word under cursor, CTRL+T back
13Plugin 'tpope/vim-fugitive' | " the most complete GIT integration plugin 13Plugin 'tpope/vim-fugitive' | " the most complete GIT integration plugin
14Plugin 'jeaye/color_coded' | " semantic highlighting with vim
15Plugin 'terryma/vim-multiple-cursors' | " displays visual block mode as cursors
14 16
15Plugin 'taglist-plus' | " quick code navigator 17Plugin 'taglist-plus' | " quick code navigator
16let Tlist_Compact_Format = 1 | " 18let Tlist_Compact_Format = 1 | "
@@ -18,7 +20,7 @@ let Tlist_GainFocus_On_ToggleOpen = 1 | "
18let Tlist_Close_On_Select = 1 | " 20let Tlist_Close_On_Select = 1 | "
19 21
20Plugin 'Valloric/YouCompleteMe' | " syntax checker and code completion 22Plugin 'Valloric/YouCompleteMe' | " syntax checker and code completion
21let g:ycm_global_ycm_extra_conf = '' | " fallback, right one should be in the applications path 23let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py' | " fallback, right one should be in the applications path
22let g:ycm_confirm_extra_conf = 0 | " disable 'do you really want to execute .py?' 24let g:ycm_confirm_extra_conf = 0 | " disable 'do you really want to execute .py?'
23let g:ycm_key_select_completion = '<Tab>' | " key completion key 25let g:ycm_key_select_completion = '<Tab>' | " key completion key
24let g:ycm_error_symbol = '✖' | " insert this as an error symbol in the gutter bar 26let g:ycm_error_symbol = '✖' | " insert this as an error symbol in the gutter bar
@@ -32,7 +34,6 @@ let html_use_css = 1 | " when using :TOhtml no
32 34
33call vundle#end() | " required by Vundle 35call vundle#end() | " required by Vundle
34filetype plugin indent on | " required by Vundle 36filetype plugin indent on | " required by Vundle
35behave mswin
36"================================================================================ 37"================================================================================
37" custom config 38" custom config
38colorscheme coderonline 39colorscheme coderonline
@@ -179,6 +180,11 @@ noremap <silent> <Home> :call ExtendedHome()<CR>
179nnoremap <C-z> u 180nnoremap <C-z> u
180 181
181 182
183"map <C-Right> el
184"map <C-left> hgel
185"vnoremap <C-S-Right> e
186"vnoremap <C-S-left> b
187
182 188
183" plugin hotkeys 189" plugin hotkeys
184map <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L 190map <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L
@@ -215,9 +221,9 @@ nnoremap <F5> :!make<CR>| " classic key binding: press F5 to compil
215"nnoremap <C-Tab> <C-PageDown> 221"nnoremap <C-Tab> <C-PageDown>
216"nnoremap <C-S-Tab> <C-PageUp> 222"nnoremap <C-S-Tab> <C-PageUp>
217":inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>" 223":inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
218"map <Esc>OA k|map <Esc>OB j|map <Esc>OC l|map <Esc>OD h| " allow cursor keys in insert mode
219"inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>" " breaks cursor keys! 224"inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>" " breaks cursor keys!
220" binding ESC can easily break cursor key movement on the console (tricky, because gvim works) 225" binding ESC can easily break cursor key movement on the console (tricky, because gvim works)
221"inoremap <C-Space> <C-x><C-o> 226"inoremap <C-Space> <C-x><C-o>
222"inoremap <C-@> <C-Space> 227"inoremap <C-@> <C-Space>
223" 228"
229"map <Esc>OA k|map <Esc>OB j|map <Esc>OC l|map <Esc>OD h| " allow cursor keys in insert mode
..