From d3ff5513b7d7707273a1d47e52832ec1a3aa0005 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 9 Nov 2015 20:34:05 +0100 Subject: visual block working with cursor keys again reason was the setting behave=mswin (just for reference) --- .vim/colors/coderonline.vim | 38 ++++++++++++++++++++++++++++++++++++++ .vim/vimrc | 12 +++++++++--- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/.vim/colors/coderonline.vim b/.vim/colors/coderonline.vim index eb8baa6..ce58bed 100644 --- a/.vim/colors/coderonline.vim +++ b/.vim/colors/coderonline.vim @@ -140,3 +140,41 @@ highlight! link SpellRare Todo " *hl-SpellBad* +" ====================== Important bits ====================== +"exe 'hi Normal guifg='.s:white .' guibg='.s:darkgrey +"exe 'hi String guifg='.s:green .' guibg='.s:darkgrey .' gui=bold' +"exe 'hi Function guifg='.s:violet .' guibg='.s:darkgrey .' gui=none' +"exe 'hi Operator guifg='.s:light_orange .' guibg='.s:darkgrey .' gui=none' +"exe 'hi Type guifg='.s:yellow .' guibg='.s:darkgrey .' gui=bold' +"exe 'hi Number guifg='.s:orange .' guibg='.s:darkgrey .' gui=none' +"exe 'hi Constant guifg='.s:red .' guibg='.s:darkgrey .' gui=none' +"exe 'hi Macro guifg='.s:magenta .' guibg='.s:darkgrey .' gui=none' +"exe 'hi PreProc guifg='.s:grey_blue .' guibg='.s:darkgrey .' gui=none' +"exe 'hi Keyword guifg='.s:light_orange .' guibg='.s:darkgrey .' gui=none' +"exe 'hi Comment guifg='.s:white .' guibg='.s:darkgrey .' gui=italic' +"exe 'hi TODO guifg='.s:grey_blue .' guibg='.s:darkgrey .' gui=italic,bold' +" Lay out our palette +let s:grey_blue = '#8a9597' +let s:light_grey_blue = '#a0a8b0' +let s:dark_grey_blue = '#34383c' +let s:mid_grey_blue = '#64686c' +let s:beige = '#ceb67f' +let s:light_orange = '#ebc471' +let s:yellow = '#e3d796' +let s:violet = '#a982c8' +let s:magenta = '#a933ac' +let s:green = '#e0a96f' +let s:lightgreen = '#c2c98f' +let s:red = '#d08356' +let s:cyan = '#74dad9' +let s:darkgrey = '#1a1a1a' +let s:grey = '#303030' +let s:lightgrey = '#605958' +let s:white = '#fffedc' +let s:orange = '#d08356' + +" ~~~ These are specific to color_coded ~~~ +exe 'hi Member guifg=#0000aa gui=italic' +exe 'hi Variable guifg=#8800aa gui=none' +exe 'hi Namespace guifg=#aa0000 gui=none' +exe 'hi EnumConstant guifg=#00aaaa gui=none' 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 Plugin 'cscope_plus.vim' | " run cscope -R -b in project folder then use Plugin 'autoload_cscope.vim' | " CTRL+\ s searches word under cursor, CTRL+T back Plugin 'tpope/vim-fugitive' | " the most complete GIT integration plugin +Plugin 'jeaye/color_coded' | " semantic highlighting with vim +Plugin 'terryma/vim-multiple-cursors' | " displays visual block mode as cursors Plugin 'taglist-plus' | " quick code navigator let Tlist_Compact_Format = 1 | " @@ -18,7 +20,7 @@ let Tlist_GainFocus_On_ToggleOpen = 1 | " let Tlist_Close_On_Select = 1 | " Plugin 'Valloric/YouCompleteMe' | " syntax checker and code completion -let g:ycm_global_ycm_extra_conf = '' | " fallback, right one should be in the applications path +let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py' | " fallback, right one should be in the applications path let g:ycm_confirm_extra_conf = 0 | " disable 'do you really want to execute .py?' let g:ycm_key_select_completion = '' | " key completion key 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 call vundle#end() | " required by Vundle filetype plugin indent on | " required by Vundle -behave mswin "================================================================================ " custom config colorscheme coderonline @@ -179,6 +180,11 @@ noremap :call ExtendedHome() nnoremap u +"map el +"map hgel +"vnoremap e +"vnoremap b + " plugin hotkeys map :TlistToggle| " bind TagList to Hotkey Ctrl+L @@ -215,9 +221,9 @@ nnoremap :!make| " classic key binding: press F5 to compil "nnoremap "nnoremap ":inoremap pumvisible() ? "\" : "\u\" -"map OA k|map OB j|map OC l|map OD h| " allow cursor keys in insert mode "inoremap pumvisible() ? "\" : "\" " breaks cursor keys! " binding ESC can easily break cursor key movement on the console (tricky, because gvim works) "inoremap "inoremap " +"map OA k|map OB j|map OC l|map OD h| " allow cursor keys in insert mode -- cgit v1.2.3