diff options
author | Max Christian Pohle | 2015-11-09 20:34:05 +0100 |
---|---|---|
committer | Max Christian Pohle | 2015-11-09 20:34:05 +0100 |
commit | d3ff5513b7d7707273a1d47e52832ec1a3aa0005 (patch) | |
tree | fb05972fd053e60d2aedb11e38b3fb5f3de05cc7 /.vim/vimrc | |
parent | f75072a092ba37f512225902294be6f43b3aad22 (diff) | |
download | vim-d3ff5513b7d7707273a1d47e52832ec1a3aa0005.tar.bz2 vim-d3ff5513b7d7707273a1d47e52832ec1a3aa0005.zip |
visual block working with cursor keys again
reason was the setting behave=mswin (just for reference)
Diffstat (limited to '.vim/vimrc')
-rw-r--r-- | .vim/vimrc | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -11,6 +11,8 @@ Plugin 'VundleVim/Vundle.vim' | " Vundle itself (require | |||
11 | Plugin 'cscope_plus.vim' | " run cscope -R -b in project folder then use | 11 | Plugin 'cscope_plus.vim' | " run cscope -R -b in project folder then use |
12 | Plugin 'autoload_cscope.vim' | " CTRL+\ s searches word under cursor, CTRL+T back | 12 | Plugin 'autoload_cscope.vim' | " CTRL+\ s searches word under cursor, CTRL+T back |
13 | Plugin 'tpope/vim-fugitive' | " the most complete GIT integration plugin | 13 | Plugin 'tpope/vim-fugitive' | " the most complete GIT integration plugin |
14 | Plugin 'jeaye/color_coded' | " semantic highlighting with vim | ||
15 | Plugin 'terryma/vim-multiple-cursors' | " displays visual block mode as cursors | ||
14 | 16 | ||
15 | Plugin 'taglist-plus' | " quick code navigator | 17 | Plugin 'taglist-plus' | " quick code navigator |
16 | let Tlist_Compact_Format = 1 | " | 18 | let Tlist_Compact_Format = 1 | " |
@@ -18,7 +20,7 @@ let Tlist_GainFocus_On_ToggleOpen = 1 | " | |||
18 | let Tlist_Close_On_Select = 1 | " | 20 | let Tlist_Close_On_Select = 1 | " |
19 | 21 | ||
20 | Plugin 'Valloric/YouCompleteMe' | " syntax checker and code completion | 22 | Plugin 'Valloric/YouCompleteMe' | " syntax checker and code completion |
21 | let g:ycm_global_ycm_extra_conf = '' | " fallback, right one should be in the applications path | 23 | let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py' | " fallback, right one should be in the applications path |
22 | let g:ycm_confirm_extra_conf = 0 | " disable 'do you really want to execute .py?' | 24 | let g:ycm_confirm_extra_conf = 0 | " disable 'do you really want to execute .py?' |
23 | let g:ycm_key_select_completion = '<Tab>' | " key completion key | 25 | let g:ycm_key_select_completion = '<Tab>' | " key completion key |
24 | let g:ycm_error_symbol = '✖' | " insert this as an error symbol in the gutter bar | 26 | let 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 | ||
33 | call vundle#end() | " required by Vundle | 35 | call vundle#end() | " required by Vundle |
34 | filetype plugin indent on | " required by Vundle | 36 | filetype plugin indent on | " required by Vundle |
35 | behave mswin | ||
36 | "================================================================================ | 37 | "================================================================================ |
37 | " custom config | 38 | " custom config |
38 | colorscheme coderonline | 39 | colorscheme coderonline |
@@ -179,6 +180,11 @@ noremap <silent> <Home> :call ExtendedHome()<CR> | |||
179 | nnoremap <C-z> u | 180 | nnoremap <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 |
184 | map <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L | 190 | map <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 | ||